mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
15 lines
352 B
Rust
15 lines
352 B
Rust
use bevy::prelude::*;
|
|
|
|
fn main() {
|
|
App::build()
|
|
.add_default_plugins()
|
|
.add_startup_system(setup.system())
|
|
.run();
|
|
}
|
|
|
|
fn setup(asset_server: Res<AssetServer>, audio_output: Res<AudioOutput>) {
|
|
let music = asset_server
|
|
.load("assets/sounds/Windless Slopes.mp3")
|
|
.unwrap();
|
|
audio_output.play(music);
|
|
}
|