sound ?
This commit is contained in:
parent
350b963e09
commit
6328756c2b
|
@ -8,9 +8,10 @@ use crate::PlayerState;
|
||||||
|
|
||||||
pub fn audio_setup(asset_server: Res<AssetServer>, mut commands: Commands) {
|
pub fn audio_setup(asset_server: Res<AssetServer>, mut commands: Commands) {
|
||||||
commands.spawn(AudioBundle {
|
commands.spawn(AudioBundle {
|
||||||
source: asset_server.load("assets/Banjo.ogg"),
|
source: asset_server.load("Banjo.ogg"),
|
||||||
..default()
|
settings: PlaybackSettings::LOOP,
|
||||||
});
|
});
|
||||||
|
info!("audio started");
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn setup(mut commands: Commands, _asset_server: Res<AssetServer>) {
|
pub fn setup(mut commands: Commands, _asset_server: Res<AssetServer>) {
|
||||||
|
|
Loading…
Reference in a new issue