From f237cf9eff2e7136621444e6f21a30bdcd08657d Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Mon, 6 Jul 2020 14:11:42 -0500 Subject: [PATCH] Dont add MovementComponent to animation example --- examples/animation/src/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/animation/src/main.cpp b/examples/animation/src/main.cpp index 6842696..b05efba 100644 --- a/examples/animation/src/main.cpp +++ b/examples/animation/src/main.cpp @@ -19,14 +19,12 @@ class PlayerEntity : public simpleengine::Entity { private: sf::Sprite sprite; sf::Texture texture; - float movement_speed = 95; + float movement_speed = 150; sf::Vector2u window_size; std::unique_ptr move_anim_component; public: explicit PlayerEntity(sf::Vector2u window_size) : window_size(window_size) { - AddComponent(std::make_unique(*this, movement_speed)); - texture.loadFromFile("player_sheet.png"); sprite.setTexture(texture);