low global volume
This commit is contained in:
@@ -161,6 +161,8 @@ fn main() {
|
|||||||
brightness: 400.,
|
brightness: 400.,
|
||||||
});
|
});
|
||||||
app.insert_resource(ClearColor(Color::BLACK));
|
app.insert_resource(ClearColor(Color::BLACK));
|
||||||
|
//TODO: let use control this
|
||||||
|
app.insert_resource(GlobalVolume::new(0.1));
|
||||||
|
|
||||||
app.add_systems(
|
app.add_systems(
|
||||||
Startup,
|
Startup,
|
||||||
@@ -213,7 +215,7 @@ fn music(assets: Res<AudioAssets>, mut commands: Commands) {
|
|||||||
AudioPlayer::new(assets.music.clone()),
|
AudioPlayer::new(assets.music.clone()),
|
||||||
PlaybackSettings {
|
PlaybackSettings {
|
||||||
mode: PlaybackMode::Loop,
|
mode: PlaybackMode::Loop,
|
||||||
volume: Volume::new(0.4),
|
volume: Volume::new(0.6),
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
));
|
));
|
||||||
|
|||||||
Reference in New Issue
Block a user