diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-12 09:53:02 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-12 09:53:02 -0500 |
commit | 3996ccb4e2a0d81500d1b1370b2b97256d1ee465 (patch) | |
tree | e422ab35c9edbb034e44eab00f7a13666eeea6f8 /src/main.cpp | |
parent | de7ee5ef022a8ccaece0ea5f5402adedeafe36b4 (diff) | |
download | ether-3996ccb4e2a0d81500d1b1370b2b97256d1ee465.tar.gz ether-3996ccb4e2a0d81500d1b1370b2b97256d1ee465.tar.bz2 ether-3996ccb4e2a0d81500d1b1370b2b97256d1ee465.zip |
added transition and the world music
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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) | |||
419 | game.muxer.setMusicLevel(0); | 419 | game.muxer.setMusicLevel(0); |
420 | } else if (zoomLevel < 3) { | 420 | } else if (zoomLevel < 3) { |
421 | game.muxer.setMusicLevel(1); | 421 | game.muxer.setMusicLevel(1); |
422 | } else { | 422 | } else if (zoomLevel < 5) { |
423 | game.muxer.setMusicLevel(2); | 423 | game.muxer.setMusicLevel(2); |
424 | } else if (zoomLevel < 7) { | ||
425 | game.muxer.setMusicLevel(3); | ||
426 | } else { | ||
427 | game.muxer.setMusicLevel(4); | ||
424 | } | 428 | } |
425 | } | 429 | } |
426 | 430 | ||
@@ -493,6 +497,7 @@ int main(int, char**) | |||
493 | quit = true; | 497 | quit = true; |
494 | } else { | 498 | } else { |
495 | losing = LoseState::PoppingLamps; | 499 | losing = LoseState::PoppingLamps; |
500 | game.muxer.stopMusic(); | ||
496 | } | 501 | } |
497 | } else if (e.type == SDL_KEYDOWN) | 502 | } else if (e.type == SDL_KEYDOWN) |
498 | { | 503 | { |
@@ -505,6 +510,7 @@ int main(int, char**) | |||
505 | quit = true; | 510 | quit = true; |
506 | } else { | 511 | } else { |
507 | losing = LoseState::PoppingLamps; | 512 | losing = LoseState::PoppingLamps; |
513 | game.muxer.stopMusic(); | ||
508 | } | 514 | } |
509 | 515 | ||
510 | break; | 516 | break; |