Skip to content
Snippets Groups Projects
Commit 67d1b9a4 authored by Gehrung Jonas's avatar Gehrung Jonas
Browse files

ADD: SFX: Bomb Sound #22

parent 60b1e636
No related branches found
No related tags found
5 merge requests!74V1,!73Initial commit,!71Merge DataBase into Development,!54Update: coreMaps.json (added new maps),!45Soundeffects finally ready :) 🔊 #22
......@@ -388,7 +388,7 @@ class Player implements IEntity {
List<IEntity> gameplayObjects = runtimeInfo.getGameplayObjects();
if (inputHandler.isBomb() && PLAYER_MODE == PlayerMode.PLAYER_ONE && bombPlacementRate == 0 ||
inputHandler.isSdBomb() && PLAYER_MODE == PlayerMode.PLAYER_TWO && bombPlacementRate == 0) {
sfx.playSoundEffectOnce(SFX.BOMB);
if (isBigBombItemFrame) {
log.debug("We have Itemframes in the List");
bombPlacementRate = 100;
......@@ -611,7 +611,6 @@ class Player implements IEntity {
@Override
public void updateEntityWalkAnimation() {
spriteCounter++;
if (spriteCounter > 10) {
if (spriteNumber == 1) {
spriteNumber = 2;
......
......@@ -6,8 +6,8 @@ public enum SFX {
COIN_COLLECTED("src/main/resources/sound/sfx/otSFX/powerups/drop-coins.mp3"),
//Bomb
BOMB_FUSE("src/main/resources/sound/sfx/otSFX/bomb/Fuse.wav"),
BOMB("src/main/resources/sound/sfx/otSFX/bomb/Bomb2.wav"),
BOMB("src/main/resources/sound/sfx/otSFX/bomb/BombSound.wav"),
//Attack Sounds
SWORD_HIT("src/main/resources/sound/sfx/otSFX/attack/Sword_hit1.wav"),
......
......@@ -12,7 +12,7 @@ import java.util.Random;
import java.util.stream.Collectors;
import java.util.stream.Stream;
public class SoundFileManager {
class SoundFileManager {
private static final Logger log = LogManager.getLogger(SoundFileManager.class);
protected List<Path> getFilePathsFromResources(Path folderPath) throws IOException {
List<Path> result;
......
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment