Create new Forrest map

This commit is contained in:
2022-09-06 15:05:47 +02:00
parent 1d5afb0530
commit 6fefa32c7d
8 changed files with 29 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -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 {
}

View File

@@ -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() {

Binary file not shown.

After

Width:  |  Height:  |  Size: 928 KiB