Zoom in slightly on the map
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user