mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-04-14 06:33:34 +02:00
Spielemaschine auf neue Standardebenen angepasst
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user