From 5931470800c43260f600303d1231dbaf586f26fc Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 9 Feb 2021 22:28:27 -0500 Subject: Map changing! Also removed some dependencies on the Renderer. More changes need to be made. Fading to black before the change would be good. And making sure the characters are facing the right direction. Maybe that code shouldn't live in Game, either. Later we also want to combine the tilesets for these two maps (and any others that are on Tanetane). --- src/camera_system.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/camera_system.h') diff --git a/src/camera_system.h b/src/camera_system.h index 3eb8374..77d813f 100644 --- a/src/camera_system.h +++ b/src/camera_system.h @@ -26,12 +26,14 @@ public: void tick(double dt) override; + void clearSpriteCache() override; + private: Game& game_; vec2i pos_; vec2i fov_ { CANVAS_WIDTH, CANVAS_HEIGHT }; - int followingSprite_; + int followingSprite_ = -1; bool locked_ = true; }; -- cgit 1.4.1