summaryrefslogtreecommitdiff
path: root/src/game.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.hpp')
-rw-r--r--src/game.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/game.hpp b/src/game.hpp
new file mode 100644
index 0000000..80c971f
--- /dev/null
+++ b/src/game.hpp
@@ -0,0 +1,20 @@
+#ifndef PKE_GAME_HPP
+#define PKE_GAME_HPP
+
+#include <chrono>
+#include <cstdint>
+
+using GameTimeDuration = std::chrono::duration<int64_t, std::nano>;
+using GameTimePoint = std::chrono::steady_clock::time_point;
+
+struct GameSettings {
+ bool isGameRunning = true;
+ bool isGamePaused = false;
+ bool isFramerateUnlocked = true;
+ int64_t targetFPS = 144;
+ GameTimeDuration nanosecondsPerFrame = GameTimeDuration(std::chrono::nanoseconds::period::den / targetFPS);
+};
+
+extern GameSettings pkeSettings;
+
+#endif /* PKE_GAME_HPP */