From 514b240348a7c401fa6725ae74540d5f3ee29cfb Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 19 Mar 2022 21:07:50 -0400 Subject: added fade in to new game and fixed music on new game --- src/game.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/game.h') diff --git a/src/game.h b/src/game.h index 839be67..3b092dd 100644 --- a/src/game.h +++ b/src/game.h @@ -21,6 +21,7 @@ constexpr int TilesetIndex(int x, int y) { } enum class LoseState { + NewGame, None, PoppingLamps, PoppingPlayer, @@ -66,7 +67,10 @@ public: bool quit = false; bool quitting = false; // <- whether we will quit after losing, vs starting a new game - LoseState losing = LoseState::None; + LoseState losing = LoseState::NewGame; + + Interpolation initialFade; + bool startedMusic = false; Map map; std::list kickups; -- cgit 1.4.1