I took at look at this:
dbLoadImage("shot.bmp",5);
dbLoadImage("alienfighter.bmp",3);
dbSprite(2,200,200,2);
dbSprite ( 3, dbRnd ( 640 ), -dbRnd ( 1500 ), 3 );
dbRandomize( dbTimer());
dbLoadImage("explosion.bmp",6);
while ( LoopGDK ( ) ) // main loop
{
for ( int i = 2; i < 30; i++ )
if ( dbSpriteY ( 3 ) > 500 )
dbSprite ( 3, dbRnd ( 640 ), -dbRnd ( 1500 ), 3 );
void moving();
dbMoveSprite(3,-3);
and THAT IS NOT C++!
Please go to
www.cprogramming.com !!! read their tutorials then buy a book on game programming, such as Windows Game Programming (any of them, thin or thick) by Andre L and get through the sections that explain why you should use int bullet = 1; load image("bullet.jpg", bullet) instead of ("bullet.jpg", 1).
Afterwards, begin coding. It will take you a day to read the book, but it will save you years!
The tutorial will explain why your program doesn't run... please just read it, the first 11 or more tutorials at Cprogramming.com that is.
Signed
------