Dont add MovementComponent to animation example

This commit is contained in:
SeanOMik 2020-07-06 14:11:42 -05:00
parent 542974caa7
commit f237cf9eff
No known key found for this signature in database
GPG Key ID: FA4D55AC05268A88
1 changed files with 1 additions and 3 deletions

View File

@ -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<simpleengine::SideScrollerMovementAnimationComponent> move_anim_component;
public:
explicit PlayerEntity(sf::Vector2u window_size) : window_size(window_size) {
AddComponent(std::make_unique<simpleengine::MovementComponent>(*this, movement_speed));
texture.loadFromFile("player_sheet.png");
sprite.setTexture(texture);