From f0830e11b81dcbbcac0e44a24bf6d7211530ae28 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Sun, 13 Nov 2022 18:01:33 +0100 Subject: add assets --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.cpp') 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}; }; -- cgit v1.2.3