added boots and sounds

This commit is contained in:
2025-11-27 17:11:44 +01:00
parent f3335f9df4
commit 9cf5c85727
25 changed files with 27 additions and 0 deletions

Binary file not shown.

BIN
assets/sounds/Dungeon.wav Normal file

Binary file not shown.

Binary file not shown.

BIN
assets/sounds/Merchant.wav Normal file

Binary file not shown.

BIN
assets/sounds/blocked.wav Normal file

Binary file not shown.

BIN
assets/sounds/burning.wav Normal file

Binary file not shown.

BIN
assets/sounds/chipwall.wav Normal file

Binary file not shown.

BIN
assets/sounds/coin.wav Normal file

Binary file not shown.

BIN
assets/sounds/cursor.wav Normal file

Binary file not shown.

BIN
assets/sounds/cuttree.wav Normal file

Binary file not shown.

BIN
assets/sounds/dooropen.wav Normal file

Binary file not shown.

BIN
assets/sounds/fanfare.wav Normal file

Binary file not shown.

BIN
assets/sounds/gameover.wav Normal file

Binary file not shown.

Binary file not shown.

BIN
assets/sounds/levelup.wav Normal file

Binary file not shown.

BIN
assets/sounds/parry.wav Normal file

Binary file not shown.

BIN
assets/sounds/powerup.wav Normal file

Binary file not shown.

Binary file not shown.

BIN
assets/sounds/sleep.wav Normal file

Binary file not shown.

BIN
assets/sounds/speak.wav Normal file

Binary file not shown.

BIN
assets/sounds/stairs.wav Normal file

Binary file not shown.

BIN
assets/sounds/unlock.wav Normal file

Binary file not shown.

View File

@@ -1,5 +1,6 @@
package de.miaurizius.jgame2d.core; package de.miaurizius.jgame2d.core;
import de.miaurizius.jgame2d.object.BootsObj;
import de.miaurizius.jgame2d.object.ChestObj; import de.miaurizius.jgame2d.object.ChestObj;
import de.miaurizius.jgame2d.object.DoorObj; import de.miaurizius.jgame2d.object.DoorObj;
import de.miaurizius.jgame2d.object.KeyObj; import de.miaurizius.jgame2d.object.KeyObj;
@@ -40,6 +41,10 @@ public class AssetSetter {
panel.obj[6] = new ChestObj(); panel.obj[6] = new ChestObj();
panel.obj[6].worldX = 10 * panel.tileSize; panel.obj[6].worldX = 10 * panel.tileSize;
panel.obj[6].worldY = 7 * 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;
} }
} }

View File

@@ -104,6 +104,10 @@ public class Player extends Entity {
hasKey--; hasKey--;
} }
break; break;
case "boots":
speed += 1;
panel.obj[index] = null;
break;
} }
} }

View File

@@ -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();
}
}
}