This commit is contained in:
DarthMooMancer committed 2025-11-06 20:18:34 -05:00
1 parent ee6f003d31
commit a22574ce6e
3 files changed
+4 -7

No files matched your search

+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() {