GP32 what kind of animation does gdl use???


hi

to make animation for gdl, just create a bitmap with all anim frame inside, first frame at left, last at right
you can include many anims in the bmp and, cut all anims on load

convert your bmp in .h or .gpg (or another format if you can load it) and put img data pointer, size, transp color, anim type, time, .. to load_anim function, that all.

it's the same way for font and tiles bitmap

exemples :
bg_tile.png

ennemi.png

shoot.png
 
awsome thanks but, could i have a code example of how i load the animation? i am going to use gdl for my first game (which might not get finished) in c++.
THANKS A LOT
 
Back
Top