Create an audio clip that can be referenced. Source Academy assets can be found at https://source-academy-assets.s3-ap-southeast-1.amazonaws.com/ with Ctrl+f '.mp3'. Phaser audio assets can be found at https://labs.phaser.io/assets/audio. Phaser sound effects assets can be found at https://labs.phaser.io/assets/audio/SoundEffects/. If Phaser assets are unavailable, go to https://github.com/photonstorm/phaser3-examples/tree/master/public/assets to get the asset path and append it to https://labs.phaser.io/assets/. This function should not be called in your update function.
https://labs.phaser.io/assets/
The URL of the audio clip.
A number between 0 to 1, representing the volume level of the audio clip.
The AudioClip reference
const audioClip = create_audio('bgm/GalacticHarmony.mp3', 0.5); Copy
const audioClip = create_audio('bgm/GalacticHarmony.mp3', 0.5);
Create an audio clip that can be referenced. Source Academy assets can be found at https://source-academy-assets.s3-ap-southeast-1.amazonaws.com/ with Ctrl+f '.mp3'. Phaser audio assets can be found at https://labs.phaser.io/assets/audio. Phaser sound effects assets can be found at https://labs.phaser.io/assets/audio/SoundEffects/. If Phaser assets are unavailable, go to https://github.com/photonstorm/phaser3-examples/tree/master/public/assets to get the asset path and append it to
https://labs.phaser.io/assets/. This function should not be called in your update function.