Skip to content
Snippets Groups Projects
Commit 496f0099 authored by Jesper Kloster Ellingsen's avatar Jesper Kloster Ellingsen
Browse files

add: angle in player constructor

parent 9ea69f86
No related branches found
No related tags found
No related merge requests found
......@@ -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"))));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment