diff --git a/assets/sounds/BlueBoyAdventure.wav b/assets/sounds/BlueBoyAdventure.wav new file mode 100644 index 0000000..0d8d630 Binary files /dev/null and b/assets/sounds/BlueBoyAdventure.wav differ diff --git a/assets/sounds/Dungeon.wav b/assets/sounds/Dungeon.wav new file mode 100644 index 0000000..a358730 Binary files /dev/null and b/assets/sounds/Dungeon.wav differ diff --git a/assets/sounds/FinalBattle.wav b/assets/sounds/FinalBattle.wav new file mode 100644 index 0000000..e2c652e Binary files /dev/null and b/assets/sounds/FinalBattle.wav differ diff --git a/assets/sounds/Merchant.wav b/assets/sounds/Merchant.wav new file mode 100644 index 0000000..4593d3d Binary files /dev/null and b/assets/sounds/Merchant.wav differ diff --git a/assets/sounds/blocked.wav b/assets/sounds/blocked.wav new file mode 100644 index 0000000..11c3cdd Binary files /dev/null and b/assets/sounds/blocked.wav differ diff --git a/assets/sounds/burning.wav b/assets/sounds/burning.wav new file mode 100644 index 0000000..28803ca Binary files /dev/null and b/assets/sounds/burning.wav differ diff --git a/assets/sounds/chipwall.wav b/assets/sounds/chipwall.wav new file mode 100644 index 0000000..547500d Binary files /dev/null and b/assets/sounds/chipwall.wav differ diff --git a/assets/sounds/coin.wav b/assets/sounds/coin.wav new file mode 100644 index 0000000..777c959 Binary files /dev/null and b/assets/sounds/coin.wav differ diff --git a/assets/sounds/cursor.wav b/assets/sounds/cursor.wav new file mode 100644 index 0000000..9fd44b3 Binary files /dev/null and b/assets/sounds/cursor.wav differ diff --git a/assets/sounds/cuttree.wav b/assets/sounds/cuttree.wav new file mode 100644 index 0000000..08e5ea0 Binary files /dev/null and b/assets/sounds/cuttree.wav differ diff --git a/assets/sounds/dooropen.wav b/assets/sounds/dooropen.wav new file mode 100644 index 0000000..d54c1e5 Binary files /dev/null and b/assets/sounds/dooropen.wav differ diff --git a/assets/sounds/fanfare.wav b/assets/sounds/fanfare.wav new file mode 100644 index 0000000..4690a59 Binary files /dev/null and b/assets/sounds/fanfare.wav differ diff --git a/assets/sounds/gameover.wav b/assets/sounds/gameover.wav new file mode 100644 index 0000000..cd7dfe9 Binary files /dev/null and b/assets/sounds/gameover.wav differ diff --git a/assets/sounds/hitmonster.wav b/assets/sounds/hitmonster.wav new file mode 100644 index 0000000..353e7f7 Binary files /dev/null and b/assets/sounds/hitmonster.wav differ diff --git a/assets/sounds/levelup.wav b/assets/sounds/levelup.wav new file mode 100644 index 0000000..a6f6a82 Binary files /dev/null and b/assets/sounds/levelup.wav differ diff --git a/assets/sounds/parry.wav b/assets/sounds/parry.wav new file mode 100644 index 0000000..a33ca3a Binary files /dev/null and b/assets/sounds/parry.wav differ diff --git a/assets/sounds/powerup.wav b/assets/sounds/powerup.wav new file mode 100644 index 0000000..107dafa Binary files /dev/null and b/assets/sounds/powerup.wav differ diff --git a/assets/sounds/receivedamage.wav b/assets/sounds/receivedamage.wav new file mode 100644 index 0000000..20bc8fa Binary files /dev/null and b/assets/sounds/receivedamage.wav differ diff --git a/assets/sounds/sleep.wav b/assets/sounds/sleep.wav new file mode 100644 index 0000000..a001f89 Binary files /dev/null and b/assets/sounds/sleep.wav differ diff --git a/assets/sounds/speak.wav b/assets/sounds/speak.wav new file mode 100644 index 0000000..06a6274 Binary files /dev/null and b/assets/sounds/speak.wav differ diff --git a/assets/sounds/stairs.wav b/assets/sounds/stairs.wav new file mode 100644 index 0000000..e71bb45 Binary files /dev/null and b/assets/sounds/stairs.wav differ diff --git a/assets/sounds/unlock.wav b/assets/sounds/unlock.wav new file mode 100644 index 0000000..afecc5b Binary files /dev/null and b/assets/sounds/unlock.wav differ diff --git a/src/de/miaurizius/jgame2d/core/AssetSetter.java b/src/de/miaurizius/jgame2d/core/AssetSetter.java index 887bf9e..9654cdb 100644 --- a/src/de/miaurizius/jgame2d/core/AssetSetter.java +++ b/src/de/miaurizius/jgame2d/core/AssetSetter.java @@ -1,5 +1,6 @@ package de.miaurizius.jgame2d.core; +import de.miaurizius.jgame2d.object.BootsObj; import de.miaurizius.jgame2d.object.ChestObj; import de.miaurizius.jgame2d.object.DoorObj; import de.miaurizius.jgame2d.object.KeyObj; @@ -40,6 +41,10 @@ public class AssetSetter { panel.obj[6] = new ChestObj(); panel.obj[6].worldX = 10 * panel.tileSize; panel.obj[6].worldY = 7 * panel.tileSize; + + panel.obj[7] = new BootsObj(); + panel.obj[7].worldX = 37 * panel.tileSize; + panel.obj[7].worldY = 42 * panel.tileSize; } } diff --git a/src/de/miaurizius/jgame2d/entity/Player.java b/src/de/miaurizius/jgame2d/entity/Player.java index ed09cc1..677fe7f 100644 --- a/src/de/miaurizius/jgame2d/entity/Player.java +++ b/src/de/miaurizius/jgame2d/entity/Player.java @@ -104,6 +104,10 @@ public class Player extends Entity { hasKey--; } break; + case "boots": + speed += 1; + panel.obj[index] = null; + break; } } diff --git a/src/de/miaurizius/jgame2d/object/BootsObj.java b/src/de/miaurizius/jgame2d/object/BootsObj.java new file mode 100644 index 0000000..405a890 --- /dev/null +++ b/src/de/miaurizius/jgame2d/object/BootsObj.java @@ -0,0 +1,18 @@ +package de.miaurizius.jgame2d.object; + +import javax.imageio.ImageIO; +import java.io.FileInputStream; +import java.io.IOException; + +public class BootsObj extends SuperObject { + + public BootsObj() { + name = "boots"; + try { + image = ImageIO.read(new FileInputStream("assets/objects/boots.png")); + } catch(IOException e) { + e.printStackTrace(); + } + } + +}