From 3996ccb4e2a0d81500d1b1370b2b97256d1ee465 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 12 Mar 2022 09:53:02 -0500 Subject: added transition and the world music --- src/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index cd1a8c2..1805357 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -419,8 +419,12 @@ void setZoom(Game& game, size_t zoom) game.muxer.setMusicLevel(0); } else if (zoomLevel < 3) { game.muxer.setMusicLevel(1); - } else { + } else if (zoomLevel < 5) { game.muxer.setMusicLevel(2); + } else if (zoomLevel < 7) { + game.muxer.setMusicLevel(3); + } else { + game.muxer.setMusicLevel(4); } } @@ -493,6 +497,7 @@ int main(int, char**) quit = true; } else { losing = LoseState::PoppingLamps; + game.muxer.stopMusic(); } } else if (e.type == SDL_KEYDOWN) { @@ -505,6 +510,7 @@ int main(int, char**) quit = true; } else { losing = LoseState::PoppingLamps; + game.muxer.stopMusic(); } break; -- cgit 1.4.1