From 8713d03831226dcd559c6a1e2b1c7b0d7c660bac Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Wed, 16 Mar 2022 11:53:46 -0400 Subject: added signs (which can't be read yet) --- src/game.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/game.h') diff --git a/src/game.h b/src/game.h index f307156..71685e6 100644 --- a/src/game.h +++ b/src/game.h @@ -13,7 +13,7 @@ #include "consts.h" constexpr int TilesetIndex(int x, int y) { - return x + y * 24; + return x + y * 25; } enum class LoseState { @@ -23,6 +23,13 @@ enum class LoseState { Outro }; +enum class SignInstructionState { + Hidden, + FadingIn, + Visible, + FadingOut +}; + struct Input { bool left = false; bool right = false; @@ -100,6 +107,11 @@ public: Timer losePopPlayerTimer = {3000}; //Timer zoomTimer = {62}; + std::vector signTexts; + int nextSignIndex = 0; + SignInstructionState signInstructionState = SignInstructionState::Hidden; + Interpolation signFade; + private: void tick( -- cgit 1.4.1