Add music and voice assets

This commit is contained in:
2026-06-22 00:21:45 +09:00
parent 674fbe6659
commit e45ad9e5ea
26 changed files with 652 additions and 50 deletions

View File

@@ -1,4 +1,6 @@
import Phaser from 'phaser';
import { musicTracks, voiceTracks } from './game/audio/audioAssets';
import { soundDirector } from './game/audio/SoundDirector';
import { BattleScene } from './game/scenes/BattleScene';
import { BootScene } from './game/scenes/BootScene';
import { StoryScene } from './game/scenes/StoryScene';
@@ -24,6 +26,9 @@ const config: Phaser.Types.Core.GameConfig = {
scene: [BootScene, TitleScene, StoryScene, BattleScene]
};
soundDirector.registerMusicTracks(musicTracks);
soundDirector.registerVoiceTracks(voiceTracks);
const game = new Phaser.Game(config);
if (import.meta.env.DEV) {