diff options
Diffstat (limited to 'test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java')
-rw-r--r-- | test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java b/test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java index 95dbd80..3c198e0 100644 --- a/test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java +++ b/test/src/ch/asynk/gdx/boardgame/test/MenuScreen.java @@ -3,6 +3,7 @@ package ch.asynk.gdx.boardgame.test; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g2d.Sprite; import com.badlogic.gdx.graphics.OrthographicCamera; +import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import ch.asynk.gdx.boardgame.ui.Alignment; import ch.asynk.gdx.boardgame.ui.Menu; @@ -34,6 +35,8 @@ public class MenuScreen extends AbstractScreen this.camera.position.set(bg.getWidth() / 2f, bg.getHeight() / 2f, 0); } + @Override protected boolean animate(float delta) { return true; } + @Override protected void draw(SpriteBatch batch) { batch.draw(bg, 0, 0); @@ -41,6 +44,11 @@ public class MenuScreen extends AbstractScreen root.draw(batch); } + @Override protected void drawDebug(ShapeRenderer shapeRenderer) + { + root.drawDebug(shapeRenderer); + } + private void drawCorners(SpriteBatch batch) { float right = root.getInnerX() + root.getInnerWidth() - corner.getWidth(); |