Zoom in slightly on the map

This commit is contained in:
2022-08-17 12:31:36 +02:00
parent b285bd0734
commit b6ecb26799

View File

@@ -27,6 +27,7 @@ public class DemoRunner implements GameRunner {
this.screen = context.getScreen();
configureScreen();
configureCamera();
initPlayer();
resetPlayer();
newGame();
@@ -40,6 +41,10 @@ public class DemoRunner implements GameRunner {
screen.setPosition((resolution.x() - 800)/2, (resolution.y() - 600)/2);
}
private void configureCamera() {
context.getCamera().setScale(2f);
}
private void initPlayer() {
this.player = new Player(context, context.createEntity("815a5c5c-4979-42f5-a42a-ccbbff9a97e5"));
}