summaryrefslogtreecommitdiff
path: root/src/game.hpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-08-31 14:00:32 -0400
committerJonathan Bradley <jcb@pikum.xyz>2023-09-06 17:19:09 -0400
commit6a5c90864dcddd924488c4b5ded34ab6bd7863dd (patch)
treeb2c70330bcfa3631cd41730f52ff82229e596841 /src/game.hpp
parent9372b51357e6179935339691f36e811b84934e8b (diff)
first pass add ImGui console
Diffstat (limited to 'src/game.hpp')
-rw-r--r--src/game.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.hpp b/src/game.hpp
index fad551b..7159e0c 100644
--- a/src/game.hpp
+++ b/src/game.hpp
@@ -4,6 +4,8 @@
#include <chrono>
#include <cstdint>
+#include "event.hpp"
+#include "imgui.h"
#include "ecs.hpp"
using GameTimeDuration = std::chrono::duration<int64_t, std::nano>;
@@ -15,6 +17,7 @@ struct GameSettings {
bool isGameRunning = true;
bool isGamePaused = false;
bool isFramerateUnlocked = true;
+ bool isShowingEditor = true;
int64_t targetFPS = 144;
int64_t minFPS = 20;
double deltaPerFrame = 1 / double(targetFPS);
@@ -23,6 +26,7 @@ struct GameSettings {
extern GameSettings pkeSettings;
+void GameInit();
void GameTick(double delta);
#endif /* PKE_GAME_HPP */