add ambient audio track

This commit is contained in:
2025-03-11 21:30:22 +01:00
parent 802da8a70b
commit 9fb84c3e00
2 changed files with 9 additions and 0 deletions

Binary file not shown.

View File

@@ -145,6 +145,15 @@ fn music(asset_server: Res<AssetServer>, mut commands: Commands) {
..default() ..default()
}, },
)); ));
commands.spawn((
AudioPlayer::new(asset_server.load("sfx/ambient/downtown.ogg")),
PlaybackSettings {
mode: PlaybackMode::Loop,
volume: Volume::new(1.),
..default()
},
));
} }
fn write_trenchbroom_config(server: Res<TrenchBroomServer>) { fn write_trenchbroom_config(server: Res<TrenchBroomServer>) {