summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2022-11-13 18:01:33 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2022-11-13 18:24:37 +0100
commitf0830e11b81dcbbcac0e44a24bf6d7211530ae28 (patch)
tree46de5d16944683ee4eba5bff8909c2cbca813bb5 /src
parent3293d06b364bc91348f6a305f97e607ff610eb98 (diff)
add assets
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index c72d597..dcedb03 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -33,13 +33,12 @@ class Unit: Entity{
Unit(){
- spritesheet_.loadFromFile("angle1_all.png");
+ spritesheet_.loadFromFile("assets/img/Player/Player Angle 1 Sheet.png");
standing_animation = Graphics::Animation(spritesheet_, 6, 60, 44, 48, 0);
walking_animation = Graphics::Animation(spritesheet_, 8, 60, 44, 48, 1);
shooting_animation = Graphics::OneShotAnimation(spritesheet_, 6, 60, 44, 48, 2);
complaining_animation = Graphics::OneShotAnimation(spritesheet_, 1, 60, 44, 48, 3);
dying_animation = Graphics::OneShotAnimation(spritesheet_, 14, 60, 44, 48, 4);
-
position = sf::Vector2f{0,0};
speed = sf::Vector2f{0,0};
};