It's basically just that.. i have this:
void Game::Initialize()
{
dbHideMouse();
dbSyncRate(300);
dbCreateAnimatedSprite ( Enemy1Img, "Art\\Spaceship_1.bmp", 16,16, Enemy1Img);
for (unsigned char i = 0; i < 255; i++)
bullet[i] = 0;
player.Initialize(this);
for(unsigned char row = 0; row < 5; row++)
{
for(unsigned char column = 0; column < 10; column ++)
{
enemy[row][column] = 0;
}
}
CreateEnemy(20,20,0,0,0);
}
and..
void Enemy::Draw()
{
switch(type)
{
case 0:
dbSetSpriteFrame(Enemy1Img,0);
dbSprite(Enemy1Img,x-8,y-8,Enemy1Img);
break;
case 1:
break;
};
}
Here's the whole thing. You can open it with visual c++ 6
http://www.ihud.com/file.php?file=1132481037/Invaders.rar