From b8e2c6ccbc75e39ccc08b84f90102d4a9a3d884b Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Sat, 12 Aug 2023 21:35:47 -0400 Subject: added pkeSettings --- src/game.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/game.hpp (limited to 'src/game.hpp') 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 +#include + +using GameTimeDuration = std::chrono::duration; +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 */ -- cgit v1.2.3