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