V1
This commit is contained in:
parent
ec64df0eec
commit
de8b0708c7
17 changed files with 434 additions and 136 deletions
|
@ -21,9 +21,9 @@ public class Player extends PhysicalEntity {
|
|||
private final PhysicalEntity brosse;
|
||||
private final float longueurBalai;
|
||||
|
||||
public Player(float x, float y){
|
||||
public Player(String path, float x, float y){
|
||||
super(x, y, 0, 0, 3, 0, 0, 10);
|
||||
this.tile = new PlayerTile("res/textures/perso.png", x, y);
|
||||
this.tile = new PlayerTile(path, x, y);
|
||||
|
||||
this.setSizeXY(this.tile.getTexture().width, this.tile.getTexture().height);
|
||||
|
||||
|
|
Reference in a new issue