diff options
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Ctrl.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Ctrl.java b/core/src/ch/asynk/tankontank/game/Ctrl.java index 867e88a..b0f383d 100644 --- a/core/src/ch/asynk/tankontank/game/Ctrl.java +++ b/core/src/ch/asynk/tankontank/game/Ctrl.java @@ -38,6 +38,11 @@ public class Ctrl implements Disposable this.cfg = game.config; game.ctrl = this; + this.player = battle.getFirstPlayer(); + this.opponent = battle.getSecondPlayer(); + this.map = battle.getMap(); + battle.setup(map, player, opponent); + this.selectState = new StateSelect(this, map); this.pathState = new StateMove(); this.rotateState = new StateRotate(); @@ -47,11 +52,6 @@ public class Ctrl implements Disposable this.state = selectState; - this.player = battle.getFirstPlayer(); - this.opponent = battle.getSecondPlayer(); - this.map = battle.getMap(); - battle.setup(map, player, opponent); - this.hud = new Hud(this, game); player.turnStart(); |