From ad9f6c40ebaf5de440cf81df705133ca0305df72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 13 Sep 2014 23:53:11 +0200 Subject: set initial zoom to 1, reduce loading delay --- core/src/ch/asynk/tankontank/screens/GameScreen.java | 2 +- core/src/ch/asynk/tankontank/screens/LoadScreen.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/ch/asynk/tankontank/screens/GameScreen.java b/core/src/ch/asynk/tankontank/screens/GameScreen.java index c416043..1206950 100644 --- a/core/src/ch/asynk/tankontank/screens/GameScreen.java +++ b/core/src/ch/asynk/tankontank/screens/GameScreen.java @@ -27,7 +27,7 @@ import ch.asynk.tankontank.actors.HexMap; public class GameScreen extends AbstractScreen { - static private final float ZOOM_MAX = 0.2f; + static private final float ZOOM_MAX = 0.1f; static private final float ZOOM_GESTURE_FACTOR = 300.f; static private final float ZOOM_SCROLL_FACTOR = 10.0f; diff --git a/core/src/ch/asynk/tankontank/screens/LoadScreen.java b/core/src/ch/asynk/tankontank/screens/LoadScreen.java index b98eaf1..5cef26a 100644 --- a/core/src/ch/asynk/tankontank/screens/LoadScreen.java +++ b/core/src/ch/asynk/tankontank/screens/LoadScreen.java @@ -44,7 +44,7 @@ public class LoadScreen extends AbstractScreen if (game.manager.update()) { delay += delta; - if (delay >= 1.0f) { + if (delay >= 0.2f) { Gdx.app.debug("LoadScreen", "assets loaded : " + (Gdx.app.getJavaHeap()/1024.0f) + "KB"); game.setScreen(new GameScreen(game)); dispose(); -- cgit v1.1-2-g2b99