blob: 41573506f8d0e5ba6c11c39a3b92711f3d9cc747 (
plain) (
blame)
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
|
#include <ctime>
#include <list>
#include "renderer.h"
#include <cstdlib>
#include "game.h"
#include "muxer.h"
int main()
{
srand(time(NULL));
GLFWwindow* window = initRenderer();
initMuxer();
// Put this in a block so game goes out of scope before we destroy the renderer
{
Game game {"res/maps.xml"};
game.execute(window);
}
destroyMuxer();
destroyRenderer();
return 0;
}
|