Skip to content

Commit

Permalink
Fixed sound bug which caused exception
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniSoda17 committed Sep 29, 2023
1 parent f9f7b2c commit 369e870
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
Binary file modified source/core/assets/sounds/mobs/fireWormRoar.mp3
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,12 @@ private void spawnWave() {
case 1:
case 2:
spawnWaterQueen();
spawnWaterSlime();
spawnWizard();
logger.info("Lol");

break;
case 3:
spawnWaterSlime();
spawnIceBaby();
logger.info("Lol");
// mobBoss2 = spawnMobBoss2();
Expand All @@ -237,7 +238,6 @@ private void spawnWave() {
break;
case 5:
case 6:
spawnWizard();
spawnSkeleton();
case 7:
spawnDemonBoss();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ void animateWalk() {

void animateAttack() {
animator.startAnimation("fire_worm_attack");
attackSound.setVolume(1000, 5.5f);
attackSound.play();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ void animateAttack() {

void animateDeath() {
animator.startAnimation("skeleton_death");
deathSound.setVolume(1000, 5.5f);
deathSound.play();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ void animateWalk() {

void animateAttack() {
animator.startAnimation("water_queen_attack");
attackSound.setVolume(1000, 5.5f);
attackSound.play();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ void animateWalk() {

void animateAttack() {
animator.startAnimation("wizard_attack");
attackSound.setVolume(1000, 5.5f);
attackSound.play();
}

Expand Down

0 comments on commit 369e870

Please sign in to comment.