Add music and voice assets
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user