-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
29 lines (25 loc) · 814 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
#include "Game.h"
/**
* Our implementation of Pacman in 3D. This is based loosely on the game.
* The game engine is written in C++ with rendering supported by OpenGL.
* Model importing is done through Assimp and GLFW supports I/O. Images
* are loaded through the stb_image header library. Project is built with CMake.
*
*
* @name Pacman3D.exe
* @author(s) Elvis Arifagic, Jørgen Eriksen, Salvador Bascunan.
*/
int main()
{
auto mainWindow = std::make_shared<GLWindow>(800, 600); // make the window.
mainWindow->initialise();
auto pacmangame = std::make_unique<Game>();
pacmangame->generateGame(mainWindow); // create the game.
while (!mainWindow->shouldClose())
{
glfwPollEvents();
pacmangame->updateGame(mainWindow);
mainWindow->swapBuffer();
}
return EXIT_SUCCESS;
}