This commit is contained in:
DarthMooMancer
2025-10-24 14:37:31 -04:00
parent cebb2e0ce9
commit cb391573e2
8 changed files with 77 additions and 54 deletions
+11
View File
@@ -0,0 +1,11 @@
// timer for player cooldown
//
#include "scheduler.hpp"
#include <chrono>
#include <thread>
void Timer::update_timers(bool &running, float &dash_timer) {
while (running) {
std::this_thread::sleep_for(std::chrono::seconds(1));
dash_timer--;
}
}