Page 4 of 18

Re: Newb at game making Sprite and game map developing

PostPosted: Fri Jul 08, 2016 9:10 pm
by Sorunome
How about the one i already linked you previously in this thread? https://github.com/Rodot/BitmapEncoder

Re: Newb at game making Sprite and game map developing

PostPosted: Fri Jul 08, 2016 11:08 pm
by Duhjoker
Oh my god I feel so stupid!!!! I remember trying to use this when I was trying to make sprites by binary I had forgot all about it. Thank you for pointing this out to me again.

I am so sorry!!!

Re: Newb at game making Sprite and game map developing

PostPosted: Fri Jul 08, 2016 11:12 pm
by Duhjoker
Does th code need to be listed vertically or can I copy it horazontally into the map file?

What It spits out for my 16x16 Sprite is two vertical columns 16 tall.

Re: Newb at game making Sprite and game map developing

PostPosted: Sat Jul 09, 2016 12:47 am
by Duhjoker
Ok when I type the code generated by the bitmap encoder I get a negative image when I test it n simbuino.

They look right in the bit map encoder but when tested its two tone black and white n negative.

Re: Newb at game making Sprite and game map developing

PostPosted: Sat Jul 09, 2016 3:16 am
by Duhjoker
Do i need to set the colors some how for the sprite to show up right?

Re: Newb at game making Sprite and game map developing

PostPosted: Sat Jul 09, 2016 7:04 am
by Sorunome
You need to set the foreground to black and the background to white. You can find in the wiki how to do that, e.g. the reference page i already linked

Re: Newb at game making Sprite and game map developing

PostPosted: Sat Jul 09, 2016 7:16 am
by Duhjoker
Thank you again!

Re: Newb at game making Sprite and game map developing

PostPosted: Sat Jul 09, 2016 10:24 pm
by Duhjoker
Spent all day yesterday coding my sprites. For some reason some sprites will only come out as "0xFF". Ive tried deleting them and remaking them but they still only come out as "0xFf".

Is there a maximum amount of character sprites. The link character himself has at least 10 including sheild, no shield, left face, right face, attack left, attack right etc.

Re: Newb at game making Sprite and game map developing

PostPosted: Sun Jul 10, 2016 1:00 am
by albertinjo
Duhjoker wrote: Is there a maximum amount of character sprites. The link character himself has at least 10 including sheild, no shield, left face, right face, attack left, attack right etc.

Greetings!
You are limited by 32kB of Gamebuino's flash memory. So, the maximum number of sprites you can put in that depends on two main things:
1) size of the sprites
2) amount of code you plan to put in the flash memory --> sprites and code (by that I mean: program logic that makes everything move) are stored in the same place (32 kB flash memory). If you make your game more complex, you'll hew fewer space for sprites.

Re: Newb at game making Sprite and game map developing

PostPosted: Sun Jul 10, 2016 1:17 am
by Duhjoker
Any plans to upgrade the sd card?

Is there a flip function? I can squeeze more by flipping some.