Skip to content

Commit

Permalink
music (wip; credit to slowdive)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkter committed Jan 28, 2024
1 parent 5fbe2bc commit d5f055e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Binary file added assets/sounds/chained_to_a_cloud_2.wav
Binary file not shown.
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,15 @@ pub fn spawn_fade_to_black(commands: &mut Commands) {

fn setup(
mut commands: Commands,
asset_server: Res<AssetServer>,
mut rapier_config: ResMut<RapierConfiguration>,
) {
rapier_config.gravity = Vec2::new(0.0, -100.0);
commands.spawn(Camera2dBundle::default());
commands.spawn(AudioBundle {
source: asset_server.load("sounds/chained_to_a_cloud_2.wav"),
settings: PlaybackSettings::LOOP,
});
}

fn check_restart(
Expand Down

0 comments on commit d5f055e

Please sign in to comment.