feat: added bird struct and movement, added pause feature, separated fps method to tick()

This commit is contained in:
DarthMooMancer
2025-09-03 21:02:45 -04:00
parent 2a728c5fda
commit e9571d65b4
8 changed files with 42 additions and 12 deletions
+6 -1
View File
@@ -9,10 +9,15 @@ int main() {
Input input;
Bird bird;
bool running = true;
bool pause = false;
std::thread input_thread(&Input::get_input, &input, std::ref(running), std::ref(bird));
std::thread input_thread(&Input::get_input, &input, std::ref(running), std::ref(pause), std::ref(bird));
while (running) {
if(pause) {
continue;
}
bird.move();
window.update_display(bird);
}