X-Git-Url: http://deadsoftware.ru/gitweb?p=cavedroid.git;a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavecraft%2Fgame%2Fobjects%2FPlayer.java;h=74f7249c751030d1778e03b55b2c11acec8d1337;hp=ad5faafeba30e00907637a1fc1e4ed9aef77b6cd;hb=be2690f1dee10f68a5ce6d576ace13c825ac5d15;hpb=18f9e2e6b8a17746e80f8332a7a57f6296678bdd diff --git a/core/src/ru/deadsoftware/cavecraft/game/objects/Player.java b/core/src/ru/deadsoftware/cavecraft/game/objects/Player.java index ad5faaf..74f7249 100644 --- a/core/src/ru/deadsoftware/cavecraft/game/objects/Player.java +++ b/core/src/ru/deadsoftware/cavecraft/game/objects/Player.java @@ -9,7 +9,7 @@ public class Player implements Serializable { public static int ANIM_SPEED = 6; - public Vector2 position; + public Vector2 pos; public Vector2 move; public int width, height, dir, texWidth; public boolean canJump; @@ -17,7 +17,7 @@ public class Player implements Serializable { public boolean flyMode = false; public Player(Vector2 spawnPoint) { - position = spawnPoint.cpy(); + pos = spawnPoint.cpy(); move = new Vector2(0, 0); width = 4; height = 30; @@ -26,7 +26,7 @@ public class Player implements Serializable { } public Rectangle getRect() { - return new Rectangle(position.x + 2, position.y, width, height); + return new Rectangle(pos.x + 2, pos.y, width, height); } }