Save the level when pressing escape in a level
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user