-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.cpp
54 lines (41 loc) · 843 Bytes
/
Main.cpp
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include "DarkGDK.h"
#include "music.h"
#include "player.h"
#include "world.h"
#include "game.h"
#include "menu.h"
void DarkGDK ( void )
{
gInit();
dbSyncOn ( );
dbSyncRate ( 60 );
dbRandomize(dbTimer());
hndMusic();
fillWorld();
//Create our objects (defined in game.h/player.h)
gorillaMunch gmn("sprites/trev2.png");
Enemy lg1("sprites/rustle.png");
prize trevor("sprites/munch.png");
dbLoadImage("sprites/play.png",15);
dbLoadImage("sprites/howtoplay.png",14);
dbLoadImage("sprites/cursor.png",16);
while ( LoopGDK ( ) )
{
if(menu == false)
{
MainMenu();
}
if(menu ==true){
gmn.move();
lg1.move(gmn.gx,gmn.gy);
drawJimmies(jimmies,25);
lg1.loseGame();
trevor.hndPrize();
hndJimmies();
}
// update the screen
dbSync ( );
}
// return back to windows
return;
}