-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
40 lines (31 loc) · 1.03 KB
/
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
#include <iostream>
#include "lib/gameEngine/gameEngine.h"
int main(int argc, char *argv[]) {
cout << "Aircraft Game!" << endl;
cout << "Michelis Andreas [2022 2013 00097]" << endl;
cout << endl;
cout << "Controls:" << endl;
cout << "\tW: Speed up" << endl;
cout << "\tA: Turn left" << endl;
cout << "\tS: Slow down" << endl;
cout << "\tD: Turn right" << endl;
cout << endl;
cout << "Press ENTER to continue..." << endl;
cin.get();
gameEngine::Init(
new vec2(40, 40),
new vec2(600, 600),
"Aircraft Game - Michelis Andreas [2022 2013 00097]",
new unsigned int[3]{GLUT_DEPTH, GLUT_DOUBLE, GLUT_RGBA}, 3,
&argc, argv
);
gameEngine::SetupCallback(Setup);
gameEngine::CloseCallback(Close);
gameEngine::DisplayCallback(Display);
gameEngine::ResizeCallback(Resize);
gameEngine::IdleCallback(Idle);
gameEngine::KeyDownCallback(KeyDown);
gameEngine::KeyUpCallback(KeyUp);
gameEngine::StartLoop();
return 0;
}