This commit is contained in:
DarthMooMancer
2025-11-06 20:18:34 -05:00
parent ee6f003d31
commit a22574ce6e
3 changed files with 4 additions and 7 deletions
+1 -4
View File
@@ -15,16 +15,13 @@ Engine::Engine() {
win = std::make_unique<Window>();
}
Engine::~Engine() {
endwin();
}
void Engine::run() {
while (exit_code() && process_input()) {
win->draw_display();
std::cout << "Current Player: " << state.temp->id << "\n";
std::this_thread::sleep_for(std::chrono::milliseconds((int) (150))); // 1000 / fps; 200ms = 5fps
}
endwin();
}
bool Engine::exit_code() {