summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2022-11-13 20:39:55 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2022-11-13 20:39:55 +0100
commit1c2a216055a107c1ce8d9d6845be80df0e0764f4 (patch)
treeb99b8166a4c503cb3905181449ed4d88b7c85043 /src/main.cpp
parentf139e6c1dcdfaa79967e4f7e6c3961677019b02d (diff)
Add flipped animations ftw
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
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<int> animation_frame_count { 6, 8, 6, 1, 14 };
gph::Animation walking_animation;
gph::Animation standing_animation;
- gph::OneShotAnimation shooting_animation;
+ gph::FlippedAnimation<gph::OneShotAnimation> 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<gph::OneShotAnimation>(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);