maps are more efficient to make and run on memory

This commit is contained in:
DarthMooMancer
2025-10-26 16:47:16 -04:00
parent 5e5f712a84
commit cd19e841a5
6 changed files with 135 additions and 105 deletions
+3 -2
View File
@@ -3,9 +3,10 @@
#include "scheduler.hpp"
#include <chrono>
#include <thread>
void Timer::update_timers(bool &running, float &dash_timer) {
void Timer::update_timers(bool &running, Times &times) {
while (running) {
std::this_thread::sleep_for(std::chrono::seconds(1));
dash_timer--;
times.dash_cooldown--;
times.level_switch_cooldown--;
}
}