From 31dc0e443efc0aae48e11a0d98e699dbed5c7dcf Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 10 Feb 2021 12:11:27 -0500 Subject: Added fade out around map change Also moved script system first in the loop so that the camera can catch up before rendering. Also added a map change from map 2 back to map 1. --- src/game.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game.h') diff --git a/src/game.h b/src/game.h index 8ea7576..bb88dec 100644 --- a/src/game.h +++ b/src/game.h @@ -79,6 +79,10 @@ public: const Font& getFont() const { return font_; } + double getFadeoutProgress() const { return fadeout_; } + + void setFadeoutProgress(double val) { fadeout_ = val; } + private: void clearSprites(); @@ -94,6 +98,7 @@ private: std::map spritesByAlias_; std::unique_ptr map_; Font font_; + double fadeout_ = 0.0; }; #endif /* end of include guard: GAME_H_E6F1396E */ -- cgit 1.4.1