Spielemaschine auf neue Standardebenen angepasst
This commit is contained in:
parent
c989e69f9f
commit
fb88f8a17f
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue