From b2f0190f6b2a227a21dd4909476171f7cc371a2d Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 19 Mar 2022 16:46:19 -0400 Subject: menu! --- src/game.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/game.h') diff --git a/src/game.h b/src/game.h index 5f13672..839be67 100644 --- a/src/game.h +++ b/src/game.h @@ -12,6 +12,7 @@ #include "interpolation.h" #include "consts.h" #include "sign.h" +#include "menu.h" class Renderer; @@ -23,7 +24,8 @@ enum class LoseState { None, PoppingLamps, PoppingPlayer, - Outro + Outro, + Done }; struct Input { @@ -60,8 +62,10 @@ public: std::mt19937& rng; Muxer& muxer; + Renderer& renderer; bool quit = false; + bool quitting = false; // <- whether we will quit after losing, vs starting a new game LoseState losing = LoseState::None; Map map; @@ -110,6 +114,8 @@ public: Interpolation signFade; Sign sign; + Menu menu; + private: void tickDirty(bool onlyDark); -- cgit 1.4.1