Create Game Menu

This commit is contained in:
2022-08-17 14:23:49 +02:00
parent bef6296b22
commit 7acbc45663
6 changed files with 156 additions and 1 deletions

View File

@@ -37,6 +37,10 @@ public abstract class BaseMapHandler implements MapHandler {
@Override
public void input(Input input) {
if(context.isPaused()) {
return;
}
if(input.isKeyPressed(Key.KEY_DOWN)) {
mainLayer.pushMovement(player.prepareMovement(Direction.DOWN));
} else if(input.isKeyPressed(Key.KEY_UP)) {