DEADSOFTWARE

Start making survival mode
[cavedroid.git] / core / src / ru / deadsoftware / cavecraft / game / objects / Player.java
index 74f7249c751030d1778e03b55b2c11acec8d1337..4c7d962ca37c86d2dae698016bd45b83aa350bdc 100644 (file)
@@ -15,8 +15,10 @@ public class Player implements Serializable {
     public boolean canJump;
     public int[] inv;
     public boolean flyMode = false;
+    public int gameMode;
 
-    public Player(Vector2 spawnPoint) {
+    public Player(Vector2 spawnPoint, int gameMode) {
+        this.gameMode = gameMode;
         pos = spawnPoint.cpy();
         move = new Vector2(0, 0);
         width = 4;