diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-17 22:28:13 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-17 22:28:13 +0100 |
commit | 3cea5d4d0b1599b030e2e96ab30f80695b3e2d13 (patch) | |
tree | 9dfada11bfffed29a66871ba45bb127da46fa4cf /core | |
parent | 7177b519162874e81de863d18cfca424ca88f726 (diff) | |
download | RustAndDust-3cea5d4d0b1599b030e2e96ab30f80695b3e2d13.zip RustAndDust-3cea5d4d0b1599b030e2e96ab30f80695b3e2d13.tar.gz |
GameScreen: reorder constructor
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/screens/GameScreen.java | 15 |
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()); } |