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.

Patater's Introduction to Nintendo DS Programming > sprite[solved]

#165470 - Tommmie - Mon Dec 22, 2008 11:34 am

sorry for my noobish question, but i'm switching over from palib to ndslib. i read the tutorial and i think it's clear for me. but when i tried to make a simple & efficient functions to load sprite it goes wrong. because the original code in the tutorial was very long, i wanted to make it shorter something like this:

Code:
void initSprites(OAMTable * oam, SpriteInfo *spriteInfo, int spritenumber)


but i can't get it to work, when the code compiles there shows only one sprite up(i wanted to create two moon sprites)


Last edited by Tommmie on Wed Dec 24, 2008 7:31 pm; edited 1 time in total

#165511 - silent_code - Wed Dec 24, 2008 12:59 am

Please post your implementation and the two calls.
_________________
July 5th 08: "Volumetric Shadow Demo" 1.6.0 (final) source released
June 5th 08: "Zombie NDS" WIP released!
It's all on my page, just click WWW below.

#165520 - Tommmie - Wed Dec 24, 2008 8:54 am

sorry, i solved it already