Kajetan Johannes Hammerle 3 years ago
parent
commit
3bc527d4c3

+ 0 - 4
.gitignore

@@ -1,5 +1 @@
 /build
-/dist
-/nbproject
-/test
-build.xml

BIN
levels/00-Tech_Demo.map


BIN
levels_uncompressed/01-Parabola.map


BIN
levels_uncompressed/02-Out_of_Reach.map


BIN
levels_uncompressed/03-Higher_Ground.map


BIN
levels_uncompressed/04-Like_Ice.map


+ 0 - 3
manifest.mf

@@ -1,3 +0,0 @@
-Manifest-Version: 1.0
-X-COMMENT: Main-Class will be added automatically by build
-

+ 0 - 15
options.txt

@@ -1,15 +0,0 @@
-key.combat=65
-key.combat.attack=72
-key.combat.block=71
-key.combat.dash=68
-key.combat.dodge=70
-key.combat.switchface=83
-key.down=264
-key.enter=257
-key.escape=256
-key.jump=32
-key.left=263
-key.right=262
-key.run=340
-key.up=265
-sound=false

+ 0 - 0
resources/fog/fog.png → resources/fog/fog.png


+ 0 - 0
sounds/dash.wav → resources/sounds/dash.wav


+ 0 - 0
sounds/dodge.wav → resources/sounds/dodge.wav


+ 0 - 0
sounds/jump.wav → resources/sounds/jump.wav


+ 0 - 0
sounds/jump3.wav → resources/sounds/jump3.wav


+ 0 - 0
sounds/jump_on_bounce_shroom.wav → resources/sounds/jump_on_bounce_shroom.wav


+ 0 - 0
sounds/londoner_jump.wav → resources/sounds/londoner_jump.wav


+ 0 - 0
sounds/menu_music.wav → resources/sounds/menu_music.wav


+ 0 - 0
sounds/mirror_break.wav → resources/sounds/mirror_break.wav


+ 0 - 0
sounds/mirror_crack.wav → resources/sounds/mirror_crack.wav


+ 0 - 0
sounds/song1.wav → resources/sounds/song1.wav


+ 0 - 0
sounds/stone_crumbling.wav → resources/sounds/stone_crumbling.wav


+ 0 - 0
sounds/sword_pull.wav → resources/sounds/sword_pull.wav


+ 0 - 0
sounds/sword_sheath.wav → resources/sounds/sword_sheath.wav


+ 0 - 0
sounds/sword_slash.wav → resources/sounds/sword_slash.wav


+ 0 - 0
sounds/walk.wav → resources/sounds/walk.wav


+ 0 - 0
sounds/walk_water.wav → resources/sounds/walk_water.wav


BIN
resources/spike_trap/spike_trap_frame1.png


BIN
resources/tiles.xcf


+ 0 - 14
resources/water/water_frame1.png

@@ -1,14 +0,0 @@
-level.00-Tech_Demo.map=true
-level.00-Tech_Demo.map.bottles=9
-level.00-Tech_Demo.map.time=1.5374999999999965
-level.01-Parabola.map=true
-level.01-Parabola.map.bottles=4
-level.01-Parabola.map.time=1.6249999999999962
-level.01-Tech_Demo.map=true
-level.01-Tech_Demo.map.time=3.6499977
-level.02-Out_of_Reach.map=true
-level.02-Out_of_Reach.map.bottles=10
-level.02-Out_of_Reach.map.time=9.674999999999985
-level.04-Like_Ice.map=true
-level.04-Like_Ice.map.bottles=13
-level.04-Like_Ice.map.time=20.69997

+ 0 - 4
slot2.txt

@@ -1,4 +0,0 @@
-level.00-Tech Demo=true
-level.03-Higher_Ground.map=true
-level.03-Higher_Ground.map.bottles=5
-level.03-Higher_Ground.map.time=43.64962

+ 22 - 0
src/me/hammerle/supersnuvi/Game.java

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