30 lines
493 B
C++
30 lines
493 B
C++
#include <iostream>
|
|
#include <stdexcept>
|
|
//#include <csignal>
|
|
#include <vector>
|
|
#include <memory>
|
|
|
|
#include "Game.hpp"
|
|
|
|
using std::cout;
|
|
using std::endl;
|
|
|
|
|
|
int main(int argc, char** argv) {
|
|
GAME_STATUS status = GAME_INIT;
|
|
|
|
cout << "Init game instance" << endl;
|
|
auto arcadeGame = std::make_unique<Game>(true);
|
|
|
|
for ( ;; ) {
|
|
status = arcadeGame->Update();
|
|
|
|
if (status == GAME_QUIT)
|
|
break;
|
|
|
|
arcadeGame->Render();
|
|
}
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|