summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-10-01 14:48:34 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-10-01 14:48:34 +0200
commit4a464543960fec0649091a634a35c286301841fb (patch)
tree2f9714c6b78a27346bc2d10e53121a465a238043 /test/src
parent24ebbfb2e0905e168e4269b968d563e9ee05d3b0 (diff)
downloadgdx-boardgame-4a464543960fec0649091a634a35c286301841fb.zip
gdx-boardgame-4a464543960fec0649091a634a35c286301841fb.tar.gz
LoadingScreen : code cleanup
Diffstat (limited to 'test/src')
-rw-r--r--test/src/ch/asynk/gdx/board/test/LoadingScreen.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/src/ch/asynk/gdx/board/test/LoadingScreen.java b/test/src/ch/asynk/gdx/board/test/LoadingScreen.java
index a4a33c2..61dce4c 100644
--- a/test/src/ch/asynk/gdx/board/test/LoadingScreen.java
+++ b/test/src/ch/asynk/gdx/board/test/LoadingScreen.java
@@ -11,12 +11,14 @@ import com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion;
public class LoadingScreen implements Screen
{
+ private static final String DOM = "LoadingScreen";
+
private final GdxBoardTest app;
private final SpriteBatch batch;
private final Color c;
private final OrthographicCamera camera;
- private final float BLINK_AFTER = 2f;
+ private final float BLINK_AFTER = 1f;
private final float ALPHA_FACTOR = 1.5f;
private boolean paused;
@@ -75,7 +77,7 @@ public class LoadingScreen implements Screen
if (!isLoaded) {
if (app.assets.update()) {
- GdxBoardTest.debug("LoadingScreen", "assets loaded");
+ GdxBoardTest.debug(DOM, "assets loaded");
isLoaded = true;
percent = 1f;
} else {
@@ -154,12 +156,12 @@ public class LoadingScreen implements Screen
@Override public void pause()
{
paused = true;
- GdxBoardTest.debug("pause() ");
+ GdxBoardTest.debug("LoadingScreen", "pause() ");
}
@Override public void resume()
{
- GdxBoardTest.debug("resume() ");
+ GdxBoardTest.debug("LoadingScreen", "resume() ");
resize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
paused = false;
}