summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
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);