summary refs log tree commit diff stats
path: root/src/game.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-03-16 11:53:46 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2022-03-16 11:53:46 -0400
commit8713d03831226dcd559c6a1e2b1c7b0d7c660bac (patch)
treefd0c1e7ff253e3c69646d727bc49a112a71f5ca9 /src/game.h
parent4b52f51404aca45a7d5d8e5998649ff67df97bbd (diff)
downloadether-8713d03831226dcd559c6a1e2b1c7b0d7c660bac.tar.gz
ether-8713d03831226dcd559c6a1e2b1c7b0d7c660bac.tar.bz2
ether-8713d03831226dcd559c6a1e2b1c7b0d7c660bac.zip
added signs (which can't be read yet)
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h14
1 files changed, 13 insertions, 1 deletions
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 @@
13#include "consts.h" 13#include "consts.h"
14 14
15constexpr int TilesetIndex(int x, int y) { 15constexpr int TilesetIndex(int x, int y) {
16 return x + y * 24; 16 return x + y * 25;
17} 17}
18 18
19enum class LoseState { 19enum class LoseState {
@@ -23,6 +23,13 @@ enum class LoseState {
23 Outro 23 Outro
24}; 24};
25 25
26enum class SignInstructionState {
27 Hidden,
28 FadingIn,
29 Visible,
30 FadingOut
31};
32
26struct Input { 33struct Input {
27 bool left = false; 34 bool left = false;
28 bool right = false; 35 bool right = false;
@@ -100,6 +107,11 @@ public:
100 Timer losePopPlayerTimer = {3000}; 107 Timer losePopPlayerTimer = {3000};
101 //Timer zoomTimer = {62}; 108 //Timer zoomTimer = {62};
102 109
110 std::vector<std::string> signTexts;
111 int nextSignIndex = 0;
112 SignInstructionState signInstructionState = SignInstructionState::Hidden;
113 Interpolation signFade;
114
103private: 115private:
104 116
105 void tick( 117 void tick(