Browse Source

added dependencies

Kajetan Johannes Hammerle 5 years ago
parent
commit
ef28b70cb0

BIN
.gitignore


BIN
lib/SnuviText.jar


BIN
lib/lwjgl-glfw-natives-linux.jar


BIN
lib/lwjgl-glfw-natives-macos.jar


BIN
lib/lwjgl-glfw-natives-windows.jar


BIN
lib/lwjgl-glfw.jar


BIN
lib/lwjgl-natives-linux.jar


BIN
lib/lwjgl-natives-macos.jar


BIN
lib/lwjgl-natives-windows.jar


BIN
lib/lwjgl-opengl-natives-linux.jar


BIN
lib/lwjgl-opengl-natives-macos.jar


BIN
lib/lwjgl-opengl-natives-windows.jar


BIN
lib/lwjgl-opengl.jar


BIN
lib/lwjgl.jar


BIN
manifest.mf


BIN
resources/tiles.xcf


+ 4 - 0
resources/water/water_frame1.png


+ 22 - 0
slot2.txt

@@ -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)

+ 0 - 0
src/me/hammerle/supersnuvi/gamelogic/Point.java