|
@@ -50,6 +50,16 @@ public class LevelData
|
|
|
this.height = height;
|
|
|
this.layers = layer;
|
|
|
this.tiles = new int[layer][width][height];
|
|
|
+ for(int l = 0; l < layer; l++)
|
|
|
+ {
|
|
|
+ for(int x = 0; x < width; x++)
|
|
|
+ {
|
|
|
+ for(int y = 0; y < height; y++)
|
|
|
+ {
|
|
|
+ tiles[l][x][y] = -1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
// -------------------------------------------------------------------------
|
|
@@ -274,6 +284,18 @@ public class LevelData
|
|
|
|
|
|
//save();
|
|
|
}
|
|
|
+
|
|
|
+ int x = bIndex + 1;
|
|
|
+ for(int y = 0; y < width; y++)
|
|
|
+ {
|
|
|
+ for(int z = 0; z < height; z++)
|
|
|
+ {
|
|
|
+ if(tiles[x][y][z] == -1)
|
|
|
+ {
|
|
|
+ tiles[x][y][z] = 0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
return true;
|
|
|
}
|
|
|
catch(IOException ex)
|