35 releases
new 0.15.0 | Nov 29, 2024 |
---|---|
0.15.0-rc.2 | Oct 27, 2024 |
0.14.0 | Jul 4, 2024 |
0.13.1 | Mar 18, 2024 |
0.3.0 | Nov 3, 2020 |
#2595 in Game dev
43,067 downloads per month
Used in 42 crates
(5 directly)
5MB
93K
SLoC
Bevy Audio
lib.rs
:
Audio support for the game engine Bevy
fn main() {
App::new()
.add_plugins((MinimalPlugins, AssetPlugin::default(), AudioPlugin::default()))
.add_systems(Startup, play_background_audio)
.run();
}
fn play_background_audio(asset_server: Res<AssetServer>, mut commands: Commands) {
commands.spawn((
AudioPlayer::new(asset_server.load("background_audio.ogg")),
PlaybackSettings::LOOP,
));
}
Dependencies
~14–45MB
~794K SLoC