added boots and sounds
This commit is contained in:
BIN
assets/sounds/BlueBoyAdventure.wav
Normal file
BIN
assets/sounds/BlueBoyAdventure.wav
Normal file
Binary file not shown.
BIN
assets/sounds/Dungeon.wav
Normal file
BIN
assets/sounds/Dungeon.wav
Normal file
Binary file not shown.
BIN
assets/sounds/FinalBattle.wav
Normal file
BIN
assets/sounds/FinalBattle.wav
Normal file
Binary file not shown.
BIN
assets/sounds/Merchant.wav
Normal file
BIN
assets/sounds/Merchant.wav
Normal file
Binary file not shown.
BIN
assets/sounds/blocked.wav
Normal file
BIN
assets/sounds/blocked.wav
Normal file
Binary file not shown.
BIN
assets/sounds/burning.wav
Normal file
BIN
assets/sounds/burning.wav
Normal file
Binary file not shown.
BIN
assets/sounds/chipwall.wav
Normal file
BIN
assets/sounds/chipwall.wav
Normal file
Binary file not shown.
BIN
assets/sounds/coin.wav
Normal file
BIN
assets/sounds/coin.wav
Normal file
Binary file not shown.
BIN
assets/sounds/cursor.wav
Normal file
BIN
assets/sounds/cursor.wav
Normal file
Binary file not shown.
BIN
assets/sounds/cuttree.wav
Normal file
BIN
assets/sounds/cuttree.wav
Normal file
Binary file not shown.
BIN
assets/sounds/dooropen.wav
Normal file
BIN
assets/sounds/dooropen.wav
Normal file
Binary file not shown.
BIN
assets/sounds/fanfare.wav
Normal file
BIN
assets/sounds/fanfare.wav
Normal file
Binary file not shown.
BIN
assets/sounds/gameover.wav
Normal file
BIN
assets/sounds/gameover.wav
Normal file
Binary file not shown.
BIN
assets/sounds/hitmonster.wav
Normal file
BIN
assets/sounds/hitmonster.wav
Normal file
Binary file not shown.
BIN
assets/sounds/levelup.wav
Normal file
BIN
assets/sounds/levelup.wav
Normal file
Binary file not shown.
BIN
assets/sounds/parry.wav
Normal file
BIN
assets/sounds/parry.wav
Normal file
Binary file not shown.
BIN
assets/sounds/powerup.wav
Normal file
BIN
assets/sounds/powerup.wav
Normal file
Binary file not shown.
BIN
assets/sounds/receivedamage.wav
Normal file
BIN
assets/sounds/receivedamage.wav
Normal file
Binary file not shown.
BIN
assets/sounds/sleep.wav
Normal file
BIN
assets/sounds/sleep.wav
Normal file
Binary file not shown.
BIN
assets/sounds/speak.wav
Normal file
BIN
assets/sounds/speak.wav
Normal file
Binary file not shown.
BIN
assets/sounds/stairs.wav
Normal file
BIN
assets/sounds/stairs.wav
Normal file
Binary file not shown.
BIN
assets/sounds/unlock.wav
Normal file
BIN
assets/sounds/unlock.wav
Normal file
Binary file not shown.
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -104,6 +104,10 @@ public class Player extends Entity {
|
||||
hasKey--;
|
||||
}
|
||||
break;
|
||||
case "boots":
|
||||
speed += 1;
|
||||
panel.obj[index] = null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
18
src/de/miaurizius/jgame2d/object/BootsObj.java
Normal file
18
src/de/miaurizius/jgame2d/object/BootsObj.java
Normal 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();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user