Create new Forrest map
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package com.bartlomiejpluta.demo.map;
|
||||
|
||||
import com.bartlomiejpluta.demo.map.BaseMapHandler;
|
||||
import com.bartlomiejpluta.base.api.context.Context;
|
||||
import com.bartlomiejpluta.base.api.input.Input;
|
||||
import com.bartlomiejpluta.base.api.map.model.GameMap;
|
||||
import com.bartlomiejpluta.base.api.screen.Screen;
|
||||
|
||||
public class ForrestHandler extends BaseMapHandler {
|
||||
}
|
||||
@@ -34,12 +34,12 @@ public class DemoRunner implements GameRunner {
|
||||
|
||||
private void configureScreen() {
|
||||
var resolution = screen.getCurrentResolution();
|
||||
screen.setSize(1800, 1000);
|
||||
screen.setSize(800, 600);
|
||||
screen.setPosition((resolution.x() - 1800) / 2, (resolution.y() - 1000) / 2);
|
||||
}
|
||||
|
||||
private void configureCamera() {
|
||||
context.getCamera().setScale(1.5f);
|
||||
context.getCamera().setScale(2.5f);
|
||||
}
|
||||
|
||||
private void initMenu() {
|
||||
|
||||
Reference in New Issue
Block a user