Nana is centered
Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com> Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
64a12df0b8
commit
0cf0268351
BIN
maps/world1.map
BIN
maps/world1.map
Binary file not shown.
@ -10,8 +10,8 @@ public class Player extends Object{
|
||||
public Player(Panel panel) {
|
||||
super(panel);
|
||||
this.setSprite(Sprite.NANA_SMALL);
|
||||
setX(Math.random()*RabiClone.BASE_WIDTH);
|
||||
setY(Math.random()*RabiClone.BASE_HEIGHT);
|
||||
setX(RabiClone.BASE_WIDTH/2-getSprite().getWidth()/2);
|
||||
setY(RabiClone.BASE_HEIGHT*(2/3d)-getSprite().getHeight()/2);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user