Original Post
Okay ... This one really bugs me. How do I keep track of my enemies?
It looks like I could do something like this
class CEnemy
{
int xpos, ypos;
int xvel, yvel;
int health;
int frame;
int maxframes;
SDL_Surface image[maxframes];
}
class CNinjas
{
CEnemy base;
}
But what the fuck do I do with this? Do I just loop trough all enemies asuming i do something like CEnemies ninjas[10] and then modify the values (based on what ??) and then I just render them?
Wouldnt this cost an extreme ammount of speed?
Argh!