diff --git a/core/src/ru/deadsoftware/cavecraft/game/objects/Player.java b/core/src/ru/deadsoftware/cavecraft/game/objects/Player.java
index bcebde6f3d6198ae7ecba5185c4d3ff445ccabe6..415ed3d5d46cbef214ac6a847583b71fc15a33e6 100644 (file)
public class Player {
+ public static int ANIM_SPEED = 6;
+
public Vector2 position;
public Vector2 moveX, moveY;
public int width, height, dir, texWidth;
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;