DEADSOFTWARE

Add pigs
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / game / objects / Player.java
index bcebde6f3d6198ae7ecba5185c4d3ff445ccabe6..415ed3d5d46cbef214ac6a847583b71fc15a33e6 100644 (file)
@@ -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;