Save the level when pressing escape in a level
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
2023-05-18 17:55:58 +02:00
parent d611d52bb8
commit a394ad009f
2 changed files with 23 additions and 1 deletions

View File

@@ -12,8 +12,11 @@ public class GameUI extends Group{
public final static int SPACE_SIZE = 5;
private final Vec2 piece_pos_click = new Vec2();
private Map level;
public GameUI(Map level) throws FileNotFoundException {
super();
this.level = level;
MatrixShape grid = new MatrixShape(level);
@@ -77,8 +80,11 @@ public class GameUI extends Group{
}
}
});
getChildren().add(_piece);
}
}
public Map getLevel() {
return level;
}
}