diff --git a/mygame/app/main.rb b/mygame/app/main.rb index ea50bde..4617457 100644 --- a/mygame/app/main.rb +++ b/mygame/app/main.rb @@ -275,6 +275,9 @@ def update if geometry.find_intersect_rect player, state.power_ups player.vel.y += controls_settings.bounce_up_speed + audio[:powerup] ||= { + input: "sound/powerup.wav" + } end player.bounce_at = state.tick_count @@ -308,7 +311,7 @@ def update # win if player.intersect_rect? state.goal audio[:win] = { - input: "sound/win.wav" + input: "sound/fanfare.ogg" } @next_scene = IntroScene.new WIN_TEXTS end diff --git a/mygame/sound/fanfare.ogg b/mygame/sound/fanfare.ogg new file mode 100644 index 0000000..2c6561e Binary files /dev/null and b/mygame/sound/fanfare.ogg differ diff --git a/mygame/sound/powerup.wav b/mygame/sound/powerup.wav new file mode 100644 index 0000000..024a804 Binary files /dev/null and b/mygame/sound/powerup.wav differ