DEADSOFTWARE

Better spawn point pick
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / game / objects / Player.java
index bcebde6f3d6198ae7ecba5185c4d3ff445ccabe6..92c81716c3b13c1007e2b3758ae342f5aa3fb82d 100644 (file)
@@ -15,8 +15,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;