diff --git a/core/src/de/samdev/colorrunner/game/renderer/AbstractGameRenderer.java b/core/src/de/samdev/colorrunner/game/renderer/AbstractGameRenderer.java index b7485f0..471ec52 100644 --- a/core/src/de/samdev/colorrunner/game/renderer/AbstractGameRenderer.java +++ b/core/src/de/samdev/colorrunner/game/renderer/AbstractGameRenderer.java @@ -88,7 +88,7 @@ public abstract class AbstractGameRenderer { } protected void beginHud(){ fontBatch.begin(); - font.setColor(1, 0, 1, 1); + font.setColor(0, 1, 1, 1); hudTextCount = 0; } @@ -99,7 +99,7 @@ public abstract class AbstractGameRenderer { } protected void renderHud(String s){ Vector3 coords = cam.unproject(new Vector3(10, 10, 0)); - font.draw(fontBatch, s, coords.x + hudTextCount++ * 20, coords.y); + font.draw(fontBatch, s, coords.x+ 75 + hudTextCount++ * 40, coords.y); } protected void endDebug() { diff --git a/core/src/de/samdev/colorrunner/game/renderer/CRGameRenderer.java b/core/src/de/samdev/colorrunner/game/renderer/CRGameRenderer.java index 5e20f63..1fb4da8 100644 --- a/core/src/de/samdev/colorrunner/game/renderer/CRGameRenderer.java +++ b/core/src/de/samdev/colorrunner/game/renderer/CRGameRenderer.java @@ -29,7 +29,7 @@ public class CRGameRenderer extends AbstractGameRenderer { gameworld.camViewBoundaries = getCamViewRectangle(); renderMain(); - + renderHud(); if (CRGame.DEBUG) renderDebugBoxes(); diff --git a/core/src/de/samdev/colorrunner/game/world/CRGameWorld.java b/core/src/de/samdev/colorrunner/game/world/CRGameWorld.java index 8bc75f6..5d3054c 100644 --- a/core/src/de/samdev/colorrunner/game/world/CRGameWorld.java +++ b/core/src/de/samdev/colorrunner/game/world/CRGameWorld.java @@ -1,5 +1,7 @@ package de.samdev.colorrunner.game.world; +import com.badlogic.gdx.Game; +import com.badlogic.gdx.Gdx; import com.badlogic.gdx.math.Rectangle; import java.util.ArrayList; @@ -9,6 +11,7 @@ import de.samdev.colorrunner.game.world.entities.CRGameEntity; import de.samdev.colorrunner.game.world.entities.gameentities.PlayerEntity; import de.samdev.colorrunner.game.world.map.provider.MapProvider; import de.samdev.colorrunner.input.GameInputListener; +import de.samdev.colorrunner.screens.menu.MainMenu; public class CRGameWorld implements GameInputListener { public PlayerEntity player; @@ -47,7 +50,7 @@ public class CRGameWorld implements GameInputListener { if(player.getPosition().y < - 10) { - //((Game) Gdx.app.getApplicationListener()).setScreen(new GameScreen()); + ((Game) Gdx.app.getApplicationListener()).setScreen(new MainMenu()); } mapprovider.update(this, player.bounds);