34 lines
744 B
C++
34 lines
744 B
C++
#include <iostream>
|
|
#include <iomanip>
|
|
#include <stdexcept>
|
|
#include <vector>
|
|
#include <memory>
|
|
|
|
#include "Game.hpp"
|
|
#include "Engine/Utils/Timers.hpp"
|
|
|
|
using std::cout, std::endl, std::fixed, std::setprecision;
|
|
|
|
|
|
int main(int argc, char** argv) {
|
|
SysTimer mSysTimer;
|
|
cout << fixed << setprecision(6);
|
|
|
|
GAME_STATUS status = GAME_INIT;
|
|
|
|
cout << "[" << mSysTimer.GetElapsedTimeS() << "] Init game instance" << endl;
|
|
auto arcadeGame = std::make_unique<Game>(true);
|
|
|
|
for ( ;; ) {
|
|
status = arcadeGame->Update(mSysTimer);
|
|
|
|
if (status == GAME_QUIT)
|
|
break;
|
|
|
|
arcadeGame->Render(mSysTimer);
|
|
}
|
|
|
|
cout << "[" << mSysTimer.GetElapsedTimeS() << "] Bye bye!" << endl;
|
|
return EXIT_SUCCESS;
|
|
}
|