int main(int argc, char* argv[]) { Init(); Intro(); while ( Menu() ) { ResetGame(); auto t1 = std::chrono::system_clock::now(); auto t2 = t1; while (!gameOver) { t2 = std::chrono::system_clock::now(); std::chrono::duration<float> elapsedTime = t2 - t1; t1 = t2; float fElapsedTime = elapsedTime.count(); onGameUpdate(fElapsedTime); ScreenBuffer::drawToConsole(); } AudioPlayer::PlayEffect("Bound-Console-Game/GameData/Music/Die.wav"); GameOver(); } Depose(); return 0; }