1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
#include "DarkGDK.h"
#include "player1.h"
int player_1 = 1;
int player_2 = 2;
int p1s = 5;
int p2s = 5;
void DarkGDK(void)
{
//Configurations
dbSyncOn();
dbSyncRate(60);
dbDisableEscapeKey();
dbSetImageColorKey(95, 95, 95);
//Loading Images
dbLoadImage("background.bmp", 1);
dbLoadImage("vertical wall.bmp", 2);
dbLoadImage("horizontal wall.bmp", 3);
dbCreateAnimatedSprite(99, "player0.bmp", 5, 2, 4);
//Creating Sprites
dbSprite(1,0,0,4); //background
dbSprite(99, 200, 100,4); //player
dbSprite(3, 0, 0, 2);
dbSprite(5, 0, 0, 3);
dbSprite(6, 635, 0, 2);
dbSprite(7, 0, 475, 3);
while(LoopGDK())
{
if(dbEscapeKey() == 1)
{
break;
}
dbSync();
}
return;
}
| |