Commit e17f6b7b authored by Viktor Lidholt's avatar Viktor Lidholt

Adds background music for demo game

parent 4530e457
...@@ -54,6 +54,10 @@ main() async { ...@@ -54,6 +54,10 @@ main() async {
await _sounds["explosion"].load(); await _sounds["explosion"].load();
await _sounds["laser"].load(); await _sounds["laser"].load();
SoundTrackPlayer stPlayer = SoundTrackPlayer.sharedInstance();
SoundTrack music = await stPlayer.load('https://github.com/slembcke/GalacticGuardian.spritebuilder/raw/GDC/Source/Resources/TempMusic.aac');
stPlayer.play(music);
runApp(_app); runApp(_app);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment