From 1c2a216055a107c1ce8d9d6845be80df0e0764f4 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Sun, 13 Nov 2022 20:39:55 +0100 Subject: Add flipped animations ftw --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 1987af4..94bf125 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -23,7 +23,7 @@ class Unit: Entity{ std::vector animation_frame_count { 6, 8, 6, 1, 14 }; gph::Animation walking_animation; gph::Animation standing_animation; - gph::OneShotAnimation shooting_animation; + gph::FlippedAnimation shooting_animation; gph::OneShotAnimation complaining_animation; gph::OneShotAnimation dying_animation; gph::Animation* current_animation = &standing_animation; @@ -38,7 +38,7 @@ class Unit: Entity{ spritesheet_.loadFromFile("assets/img/Player/Player Angle 1 Sheet.png"); standing_animation = gph::Animation(spritesheet_, 6, 60, 44, 48, 0); walking_animation = gph::Animation(spritesheet_, 8, 60, 44, 48, 1); - shooting_animation = gph::OneShotAnimation(spritesheet_, 6, 60, 44, 48, 2); + shooting_animation = gph::FlippedAnimation(spritesheet_, 6, 60, 44, 48, 2); complaining_animation = gph::OneShotAnimation(spritesheet_, 1, 60, 44, 48, 3); dying_animation = gph::OneShotAnimation(spritesheet_, 14, 60, 44, 48, 4); -- cgit v1.2.3