-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.cpp
42 lines (34 loc) · 819 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
#include <string>
#include <cassert>
#include "src/WindowController.h"
#include "src/PhysicsEngine.h"
#include "src/GraphicsRenderer.h"
#include "src/GameLogic.h"
#include "src/Util.h"
#include "src/Overlay.h"
#include <iostream>
using namespace window;
using namespace physics;
using namespace graphics;
using namespace std;
using namespace logic;
int main(int argc, char *argv[])
{
alutInit(&argc, argv);
SoundManager::getInstance().start("./Assets/TacticalSpace.ogg");
try
{
GameLogic::get().start();
GameLogic::get().run();
}
catch(std::exception &e)
{
printf("%s CAUGHT AN EXCEPTION", e.what());
}
SoundManager::getInstance().stop();
usleep(250);
SoundManager::getInstance().close();
usleep(250);
alutExit();
return 0;
}