diff --git a/core/src/com/zombreros/game/model/entity/Player.java b/core/src/com/zombreros/game/model/entity/Player.java index a2c022377af62c91ca690eeb067f616246cc999e..bff21a3b53afdcb43efc10199106cc86689a7541 100644 --- a/core/src/com/zombreros/game/model/entity/Player.java +++ b/core/src/com/zombreros/game/model/entity/Player.java @@ -12,9 +12,9 @@ import com.zombreros.game.model.component.VelocityComponent; public class Player extends Entity { - public Player(int x, int y){ + public Player(int x, int y, int angle){ add(new PositionComponent(x, y)); - add(new RotationComponent((float)45)); + add(new RotationComponent((float) angle)); //add(new VelocityComponent(3,3)); //add(new TextureComponent(zombreros.getAssetManager().get("badlogic.jpg", Texture.class)); add(new TextureComponent(new TextureRegion(new Texture("manBrown_silencer.png"))));