gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > sprites

#928 - whodoo - Sun Jan 12, 2003 2:42 pm

I got some sprite-sizes defined in a headerfile when using sprites..like 8x8 16x16 64x64 and so on..but can I have which size I want? like 24x13 or whateever?...

e.g. #define SIZE_16 0x4000

but I wanna use a 24x13 sprite..like

#define MY_SIZE .......

#929 - Touchstone - Sun Jan 12, 2003 2:47 pm

Sprite sizes have to be a multiple of 8 since they are built from tiles. There are also some restrictions in width/height ratio to but I don't know them of the top of my head.
_________________
You can't beat our meat

#932 - Splam - Sun Jan 12, 2003 3:15 pm

You can have sprites in the following sizes.

8x8
16x8
8x16
16x16
32x8
8x32
32x16
16x32
32x32
64x32
32x64
64x64

Plus you can set the double size flag (but you only need to do that if you want to scale or rotate a sprite and doing so would make it go outside of its limits)

#935 - lordmetroid - Sun Jan 12, 2003 4:27 pm

One would also be able to put multiple sprites together to create huge creatures....
_________________
*Spam*
Open Solutions for an open mind, www.areta.org

Areta is an organization of coders codeing mostly open source project, but there is alot of sections like GBA dev, Language learning communities, RPG communities, etc...

#937 - Splam - Sun Jan 12, 2003 4:33 pm

Yeah, you could make a sprite the size of the screen (for those end of level baddies ) :)