-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.cpp
More file actions
35 lines (28 loc) · 717 Bytes
/
test.cpp
File metadata and controls
35 lines (28 loc) · 717 Bytes
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
#include "gamestate.h"
int width = 1280, height = 720;
GameState* game;
void iDraw()
{
iClear();
drawFrame(game);
}
void iMouseMove(int mx, int my) {}
void iMouse(int button, int state, int mx, int my) {}
void iPassiveMouseMove(int, int) {}
void iResize(int w, int h) {}
void iKeyboard(unsigned char key)
{
if (key == 'Q') exit(0);
keyDown(game, key);
}
void iSpecialKeyboard(unsigned char key) { keyDown(game, key); }
void iKeyboardUp(unsigned char key) { keyUp(game, key); }
void iSpecialKeyboardUp(unsigned char key) { keyUp(game, key); }
int main()
{
loadAssets();
game = createGame(1);
iSetTransparency(1);
iInitializeEx(width, height, 0, "Catch the Egg");
return 0;
}