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 > sprite problem

#5012 - dieudunet - Thu Apr 17, 2003 3:04 pm

Could someone say me how can i say to gba that my gba is 16*32 or 32*64 and not only 8*8 or 16*16 or 32*32 or 64*64

cause in my sprite.h i do not have an attribute call SIZE_16*16

thanks

#5013 - niltsair - Thu Apr 17, 2003 3:20 pm

It's by using the Size_X in conjonction to the shaping attribute of the sprite.

#####SIZE_8===SIZE_16===SIZE_32===SIZE_64
SQUARE#8x8--------16x16---------32x32--------64x64
TALL###8x16--------8x32---------16x32--------32x64
WIDE##16x8---------32x8---------32x16--------64x32

I took this from the PernProject website, excellent for gettings the fundamentals of GBA programming. Here's the page :
http://www.thepernproject.com/index2.htm

#5014 - Daikath - Thu Apr 17, 2003 3:27 pm

You get to atteibute shape and one line of pixels

You can set Square, horinzontal and vertical.

Size Square Horizontal Vertical

0 8x8 16x8 8x16
1 16x16 32x8 8x32
2 32x32 32x16 16x32
3 64x64 64x32 32x64
_________________
?There are no stupid questions but there are a LOT of inquisitive idiots.?

#5015 - Daikath - Thu Apr 17, 2003 3:30 pm

Heh niltsair's post wasnt there when i pressed the post reply button :).
_________________
?There are no stupid questions but there are a LOT of inquisitive idiots.?