Skip to content

Commit

Permalink
Added sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
MeBeQuack committed Dec 11, 2023
1 parent 31e4bdf commit 2854b1b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Binary file added assets/audio/main-theme.ogg
Binary file not shown.
9 changes: 9 additions & 0 deletions src/ambient.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ fn startup(
..default()
});

commands.spawn(AudioBundle {
source: asset_server.load("audio/main-theme.ogg"),
settings: PlaybackSettings {
mode: PlaybackMode::Loop,
..Default::default()
},
..default()
});

commands.spawn(AudioBundle {
source: asset_server.load("audio/sheep.ogg"),
settings: PlaybackSettings {
Expand Down
2 changes: 1 addition & 1 deletion src/wolf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ fn wolf_spawner(
sheep_transform.translation.normalize() * level_size.0 * 2.0,
)
.with_rotation(get_sprite_rotation())
.with_scale(Vec3::new(1.0, 1.0, 1.0) * 3.0),
.with_scale(Vec3::new(1.0, 1.0, 1.0) * 2.0),
..default()
},
TryToCatchSheep {
Expand Down

0 comments on commit 2854b1b

Please sign in to comment.