Spielemaschine auf neue Standardebenen angepasst

This commit is contained in:
ngb 2022-06-30 21:29:38 +02:00
parent c989e69f9f
commit fb88f8a17f
1 changed files with 2 additions and 6 deletions

View File

@ -9,23 +9,19 @@ public class Spielemaschine extends Zeichenmaschine {
private LinkedList<Updatable> updatables;
private GraphicsLayer mainLayer;
public Spielemaschine( String title ) {
this(STD_WIDTH, STD_HEIGHT, title);
}
private GraphicsLayer mainLayer;
public Spielemaschine( int width, int height, String title ) {
super(width, height, title, false);
drawables = new LinkedList<>();
updatables = new LinkedList<>();
canvas.removeLayers(drawing, shapes);
drawing = null;
shapes = null;
mainLayer = new GraphicsLayer();
canvas.addLayer(mainLayer);
}