#19204 - mr_schmoe - Wed Apr 14, 2004 1:36 am
Ok, basically it's like this. I have an include file sprites.h and the definitions in a cpp file sprites.cpp. The idea is have a sprite class for each sprite in the game. But to copy the attribute data to the OAM it's generally a good idea to have the OAM variable in one long array (i.e. OAMentry sprites[128]; ) so's you can copy it to the actual OAM memory right quickly like. So, what I was thinking is have the OAM variable declared and defined in the sprite.cpp and the sprite class just have a pointer to it's particular sprite number in the OAM. I don't want to start an argument on the way I want to handle the sprites, that was just to give you an idea what I was talking about.