diff --git a/assets/sounds/effects/sfx_deathscream_alien4.mp3 b/assets/sounds/effects/sfx_deathscream_alien4.mp3 new file mode 100644 index 0000000..0d5cd3f Binary files /dev/null and b/assets/sounds/effects/sfx_deathscream_alien4.mp3 differ diff --git a/assets/sounds/effects/sfx_deathscream_alien4.wav b/assets/sounds/effects/sfx_deathscream_alien4.wav deleted file mode 100755 index efa2898..0000000 Binary files a/assets/sounds/effects/sfx_deathscream_alien4.wav and /dev/null differ diff --git a/assets/sounds/effects/sfx_deathscream_human12.mp3 b/assets/sounds/effects/sfx_deathscream_human12.mp3 new file mode 100644 index 0000000..28e6f19 Binary files /dev/null and b/assets/sounds/effects/sfx_deathscream_human12.mp3 differ diff --git a/assets/sounds/effects/sfx_deathscream_human12.wav b/assets/sounds/effects/sfx_deathscream_human12.wav deleted file mode 100755 index d5b167e..0000000 Binary files a/assets/sounds/effects/sfx_deathscream_human12.wav and /dev/null differ diff --git a/assets/sounds/effects/sfx_menu_select1.mp3 b/assets/sounds/effects/sfx_menu_select1.mp3 new file mode 100644 index 0000000..305b3a3 Binary files /dev/null and b/assets/sounds/effects/sfx_menu_select1.mp3 differ diff --git a/assets/sounds/effects/sfx_menu_select1.wav b/assets/sounds/effects/sfx_menu_select1.wav deleted file mode 100755 index 0ae70b6..0000000 Binary files a/assets/sounds/effects/sfx_menu_select1.wav and /dev/null differ diff --git a/assets/sounds/effects/sfx_movement_footstepsloop4_fast.mp3 b/assets/sounds/effects/sfx_movement_footstepsloop4_fast.mp3 new file mode 100644 index 0000000..3e8901a Binary files /dev/null and b/assets/sounds/effects/sfx_movement_footstepsloop4_fast.mp3 differ diff --git a/assets/sounds/effects/sfx_movement_footstepsloop4_fast.wav b/assets/sounds/effects/sfx_movement_footstepsloop4_fast.wav deleted file mode 100755 index df9767c..0000000 Binary files a/assets/sounds/effects/sfx_movement_footstepsloop4_fast.wav and /dev/null differ diff --git a/assets/sounds/effects/sfx_wpn_dagger.mp3 b/assets/sounds/effects/sfx_wpn_dagger.mp3 new file mode 100644 index 0000000..d1efc3f Binary files /dev/null and b/assets/sounds/effects/sfx_wpn_dagger.mp3 differ diff --git a/assets/sounds/effects/sfx_wpn_dagger.wav b/assets/sounds/effects/sfx_wpn_dagger.wav deleted file mode 100755 index bf9f0e4..0000000 Binary files a/assets/sounds/effects/sfx_wpn_dagger.wav and /dev/null differ diff --git a/index.ts b/index.ts index aa07909..4bedb12 100644 --- a/index.ts +++ b/index.ts @@ -21,6 +21,9 @@ export const config: Types.Core.GameConfig = { render: { pixelArt: true, }, + audio: { + disableWebAudio: true, + }, }; const game = new Game(config); diff --git a/src/scenes/Intro.ts b/src/scenes/Intro.ts index 658e958..bed4453 100644 --- a/src/scenes/Intro.ts +++ b/src/scenes/Intro.ts @@ -36,7 +36,7 @@ export class Intro extends Scene { this.load.audio('thriller', 'assets/sounds/thriller.mp3'); this.load.audio( 'menu-select', - 'assets/sounds/effects/sfx_menu_select1.wav' + 'assets/sounds/effects/sfx_menu_select1.mp3' ); this.load.image('background', 'assets/backgrounds/map.png'); this.load.image('fullHeart', 'assets/heart.png'); @@ -49,19 +49,19 @@ export class Intro extends Scene { this.load.audio('battle-main', 'assets/sounds/battle_main.mp3'); this.load.audio( 'enemy-death', - 'assets/sounds/effects/sfx_deathscream_alien4.wav' + 'assets/sounds/effects/sfx_deathscream_alien4.mp3' ); this.load.audio( 'player-impact', - 'assets/sounds/effects/sfx_deathscream_human12.wav' + 'assets/sounds/effects/sfx_deathscream_human12.mp3' ); this.load.audio( 'element-switch', - 'assets/sounds/effects/sfx_wpn_dagger.wav' + 'assets/sounds/effects/sfx_wpn_dagger.mp3' ); this.load.audio( 'footsteps', - 'assets/sounds/effects/sfx_movement_footstepsloop4_fast.wav' + 'assets/sounds/effects/sfx_movement_footstepsloop4_fast.mp3' ); this.load.spritesheet('firespirit', 'assets/objects/firespirit.png', { frameWidth: 10, diff --git a/src/scenes/Room.ts b/src/scenes/Room.ts index 50abb12..d07cbf8 100644 --- a/src/scenes/Room.ts +++ b/src/scenes/Room.ts @@ -83,7 +83,7 @@ export class Room extends Scene { this._healthbar.ouch(); this._player.onHit(); this.cameras.main.shake(100, 0.01); - this.sound.add('player-impact', { volume: 2 }).play(); + this.sound.add('player-impact').play(); } );