v0.3.2b: fixed some bugs with groups and changed level visuals

This commit is contained in:
Evan Debenham 2015-11-07 19:23:20 -05:00
parent 1c1c7dc4b1
commit 519e1252cb

View File

@ -163,7 +163,7 @@ public abstract class Level implements Bundlable {
protected ArrayList<Item> itemsToSpawn = new ArrayList<>();
protected Group visuals = new Group();
protected Group visuals;
public int color1 = 0x004400;
public int color2 = 0x88CC44;
@ -488,7 +488,11 @@ public abstract class Level implements Bundlable {
}
public Group addVisuals() {
visuals.clear();
if (visuals == null || visuals.parent == null){
visuals = new Group();
} else {
visuals.clear();
}
for (int i=0; i < LENGTH; i++) {
if (pit[i]) {
visuals.add( new WindParticle.Wind( i ) );