Add audio, select animation via help not working...
parent
f3b795f9c6
commit
035e4114ba
@ -0,0 +1,13 @@
|
||||
use bevy::prelude::*;
|
||||
|
||||
pub struct AudioPlugin;
|
||||
|
||||
impl Plugin for AudioPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.add_systems(Startup, load_audio);
|
||||
}
|
||||
}
|
||||
|
||||
fn load_audio(assets: Res<AssetServer>, mut commands: Commands) {
|
||||
commands.spawn(AudioPlayer::new(assets.load("its-the-balatro-music.ogg")));
|
||||
}
|
||||
Loading…
Reference in New Issue