Basic arena working that lets me work on the boss fight system quicker.

This commit is contained in:
Zed A. Shaw 2025-10-16 12:00:33 -04:00
parent 7f10c5b3d7
commit a578c49a77
11 changed files with 110 additions and 217 deletions

View file

@ -49,7 +49,10 @@ struct Stats {
inline void sample_time(TimeBullshit start) {
auto end = std::chrono::high_resolution_clock::now();
auto elapsed = std::chrono::duration<double>(end - start);
sample(1/elapsed.count());
if(elapsed.count() > 0.0) {
sample(1.0/elapsed.count());
}
}
void dump(std::string msg="");