Adjust game volume
This commit is contained in:
1 parent
c2cb433409
commit
96a15ccb0d
13 files changed
+62
-49
No files matched your search
@@ -55,7 +55,7 @@ export default class PokeballTray extends Phaser.GameObjects.Container {
|
||||
ball.setFrame(ballFrame);
|
||||
});
|
||||
|
||||
this.scene.sound.play('pb_tray_enter');
|
||||
(this.scene as BattleScene).playSound('pb_tray_enter');
|
||||
|
||||
this.scene.tweens.add({
|
||||
targets: this,
|
||||
@@ -69,7 +69,7 @@ export default class PokeballTray extends Phaser.GameObjects.Container {
|
||||
x: `${this.player ? '-' : '+'}=104`,
|
||||
duration: b * 100,
|
||||
ease: 'Sine.easeIn',
|
||||
onComplete: () => this.scene.sound.play(b < party.length ? 'pb_tray_ball' : 'pb_tray_empty')
|
||||
onComplete: () => (this.scene as BattleScene).playSound(b < party.length ? 'pb_tray_ball' : 'pb_tray_empty')
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user