summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/src/ch/asynk/tankontank/screens/GameScreen.java15
1 files changed, 7 insertions, 8 deletions
diff --git a/core/src/ch/asynk/tankontank/screens/GameScreen.java b/core/src/ch/asynk/tankontank/screens/GameScreen.java
index f1eff5a..e8dc6f2 100644
--- a/core/src/ch/asynk/tankontank/screens/GameScreen.java
+++ b/core/src/ch/asynk/tankontank/screens/GameScreen.java
@@ -48,19 +48,18 @@ public class GameScreen implements Screen
public GameScreen(final TankOnTank game)
{
+ DEBUG = game.config.debug;
+
this.game = game;
+ this.blocked = false;
this.ctrl = new Ctrl(game, game.config.battle);
+ this.cam = new GameCamera(ctrl.map.getWidth(), ctrl.map.getHeight(), ZOOM_OUT_MAX, ZOOM_IN_MAX);
- DEBUG = game.config.debug;
-
- cam = new GameCamera(ctrl.map.getWidth(), ctrl.map.getHeight(), ZOOM_OUT_MAX, ZOOM_IN_MAX);
-
- mapBatch = new SpriteBatch();
- hudBatch = new SpriteBatch();
- if (DEBUG) debugShapes = new ShapeRenderer();
+ this.mapBatch = new SpriteBatch();
+ this.hudBatch = new SpriteBatch();
+ if (DEBUG) this.debugShapes = new ShapeRenderer();
- blocked = false;
Gdx.input.setInputProcessor(getMultiplexer());
}