mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-04-14 14:43:33 +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 LinkedList<Updatable> updatables;
|
||||||
|
|
||||||
|
private GraphicsLayer mainLayer;
|
||||||
|
|
||||||
public Spielemaschine( String title ) {
|
public Spielemaschine( String title ) {
|
||||||
this(STD_WIDTH, STD_HEIGHT, title);
|
this(STD_WIDTH, STD_HEIGHT, title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private GraphicsLayer mainLayer;
|
|
||||||
|
|
||||||
public Spielemaschine( int width, int height, String title ) {
|
public Spielemaschine( int width, int height, String title ) {
|
||||||
super(width, height, title, false);
|
super(width, height, title, false);
|
||||||
|
|
||||||
drawables = new LinkedList<>();
|
drawables = new LinkedList<>();
|
||||||
updatables = new LinkedList<>();
|
updatables = new LinkedList<>();
|
||||||
|
|
||||||
canvas.removeLayers(drawing, shapes);
|
|
||||||
drawing = null;
|
|
||||||
shapes = null;
|
|
||||||
|
|
||||||
mainLayer = new GraphicsLayer();
|
mainLayer = new GraphicsLayer();
|
||||||
canvas.addLayer(mainLayer);
|
canvas.addLayer(mainLayer);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user