X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=core%2Fsrc%2Fru%2Fdeadsoftware%2Fcavecraft%2Fgame%2Fobjects%2FPlayer.java;h=415ed3d5d46cbef214ac6a847583b71fc15a33e6;hb=385255cc7b49fbfd3290497367cbc69919b24d4f;hp=bcebde6f3d6198ae7ecba5185c4d3ff445ccabe6;hpb=40312aaac2ec8bd1247ad5979f7bd1d8e47ecae3;p=cavedroid.git diff --git a/core/src/ru/deadsoftware/cavecraft/game/objects/Player.java b/core/src/ru/deadsoftware/cavecraft/game/objects/Player.java index bcebde6..415ed3d 100644 --- a/core/src/ru/deadsoftware/cavecraft/game/objects/Player.java +++ b/core/src/ru/deadsoftware/cavecraft/game/objects/Player.java @@ -8,6 +8,8 @@ import ru.deadsoftware.cavecraft.game.WorldGen; public class Player { + public static int ANIM_SPEED = 6; + public Vector2 position; public Vector2 moveX, moveY; public int width, height, dir, texWidth; @@ -15,8 +17,8 @@ public class Player { public int[] inventory; public boolean flyMode = false; - public Player(int x, int y) { - position = new Vector2(x, y); + public Player(Vector2 spawnPoint) { + position = spawnPoint.cpy(); moveX = new Vector2(0, 0); moveY = new Vector2(0, 0); width = 4;