summary refs log tree commit diff stats
path: root/src/renderer.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-03-19 21:07:50 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2022-03-19 21:07:50 -0400
commit514b240348a7c401fa6725ae74540d5f3ee29cfb (patch)
tree6c4dd02b3aacc1bf57f8e4c2b2b46ed34fa73fdd /src/renderer.cpp
parent5c92093bd82b54e79c63937cb0dbefabc5f47624 (diff)
downloadether-514b240348a7c401fa6725ae74540d5f3ee29cfb.tar.gz
ether-514b240348a7c401fa6725ae74540d5f3ee29cfb.tar.bz2
ether-514b240348a7c401fa6725ae74540d5f3ee29cfb.zip
added fade in to new game
and fixed music on new game
Diffstat (limited to 'src/renderer.cpp')
-rw-r--r--src/renderer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/renderer.cpp b/src/renderer.cpp index b24ddbf..b6a9b4a 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp
@@ -396,6 +396,12 @@ void Renderer::renderGame(
396 396
397 SDL_RenderCopy(ren_.get(), canvas.get(), &zoomRect, nullptr); 397 SDL_RenderCopy(ren_.get(), canvas.get(), &zoomRect, nullptr);
398 398
399 if (game.losing == LoseState::NewGame) {
400 SDL_SetRenderDrawBlendMode(ren_.get(), SDL_BLENDMODE_BLEND);
401 SDL_SetRenderDrawColor(ren_.get(), 0, 0, 0, game.initialFade.getProgress(255, 0));
402 SDL_RenderFillRect(ren_.get(), nullptr);
403 }
404
399 texture_ptr overlays( 405 texture_ptr overlays(
400 SDL_CreateTexture( 406 SDL_CreateTexture(
401 ren_.get(), 407 ren_.get(),