Add candy popup sound
parent
9fc6bdde21
commit
71705dd6d4
Binary file not shown.
|
@ -223,6 +223,7 @@ export class LoadingScene extends SceneBase {
|
||||||
this.loadSe('sparkle');
|
this.loadSe('sparkle');
|
||||||
this.loadSe('restore');
|
this.loadSe('restore');
|
||||||
this.loadSe('shine');
|
this.loadSe('shine');
|
||||||
|
this.loadSe('shing');
|
||||||
this.loadSe('charge');
|
this.loadSe('charge');
|
||||||
this.loadSe('beam');
|
this.loadSe('beam');
|
||||||
this.loadSe('upgrade');
|
this.loadSe('upgrade');
|
||||||
|
|
|
@ -69,6 +69,8 @@ export default class CandyBar extends Phaser.GameObjects.Container {
|
||||||
if (this.tween)
|
if (this.tween)
|
||||||
this.tween.stop();
|
this.tween.stop();
|
||||||
|
|
||||||
|
(this.scene as BattleScene).playSound('shing');
|
||||||
|
|
||||||
this.tween = this.scene.tweens.add({
|
this.tween = this.scene.tweens.add({
|
||||||
targets: this,
|
targets: this,
|
||||||
x: (this.scene.game.canvas.width / 6) - (this.bg.width - 5),
|
x: (this.scene.game.canvas.width / 6) - (this.bg.width - 5),
|
||||||
|
|
|
@ -258,7 +258,7 @@ class SessionSlot extends Phaser.GameObjects.Container {
|
||||||
async setupWithData(data: SessionSaveData) {
|
async setupWithData(data: SessionSaveData) {
|
||||||
this.remove(this.loadingLabel, true);
|
this.remove(this.loadingLabel, true);
|
||||||
|
|
||||||
const gameModeLabel = addTextObject(this.scene, 8, 5, `${gameModes[data.gameMode].getName()} - Wave ${data.waveIndex}`, TextStyle.WINDOW);
|
const gameModeLabel = addTextObject(this.scene, 8, 5, `${gameModes[data.gameMode]?.getName() || 'Unknown'} - Wave ${data.waveIndex}`, TextStyle.WINDOW);
|
||||||
this.add(gameModeLabel);
|
this.add(gameModeLabel);
|
||||||
|
|
||||||
const timestampLabel = addTextObject(this.scene, 8, 19, new Date(data.timestamp).toLocaleString(), TextStyle.WINDOW);
|
const timestampLabel = addTextObject(this.scene, 8, 19, new Date(data.timestamp).toLocaleString(), TextStyle.WINDOW);
|
||||||
|
|
Loading…
Reference in New Issue