basic movement

This commit is contained in:
2026-03-14 22:27:54 +01:00
parent b19f595daf
commit 2983b919cd
24 changed files with 368 additions and 57 deletions

View File

@@ -7,6 +7,7 @@
#include <mutex>
#include <chrono>
#include <functional>
#include <object/camera.hpp>
namespace Game {
using clock = std::chrono::steady_clock;
@@ -22,7 +23,7 @@ namespace Game {
void setTargetUpdatesPerSecond(int target) { mTargetUpdatesPerSecond = target; }
int getTargetUpdatesPerSecond() { return mTargetUpdatesPerSecond; }
private:
int mTargetUpdatesPerSecond = 60;
int mTargetUpdatesPerSecond = TARGET_UPDATE_RATE;
clock::time_point mLastUpdate;
};
}