[PR #2369] [MERGED] Play the bubble pop sound when an air bubble bursts #4249

Closed
opened 2026-11-03 04:15:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2369
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/air-bubble-pop-sound


📝 Commits (2)

  • 0cc3f56 Play the bubble pop sound when an air bubble bursts
  • 1447034 Merge main into fix/air-bubble-pop-sound

📊 Changes

2 files changed (+28 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+13 -0)
📝 crates/horizon-client/src/hud_layout.rs (+15 -0)

📄 Description

What and why

When you run out of breath underwater, vanilla plays a pop sound for every air bubble that bursts, getting louder and higher as the bubbles run out. Horizon only drew the bursting sprite, so the pops were silent. The HUD now asks for the sound when a bubble starts bursting, once per bubble, and plays it for this player only.

Vanilla reference

  • Hud.extractAirBubbles: resets lastBubblePopSoundPlayed when not underwater and calls playAirBubblePoppedSound for the bursting bubble.
  • Hud.playAirBubblePoppedSound: ui.hud.bubble_pop, volume 0.5 + 0.1 * max(0, empty - 3 + 1), pitch 1.0 + 0.1 * max(0, empty - 5 + 1), played through Player.playSound (PLAYERS source).

Self-check

cargo check -p horizon-client passes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2369 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/air-bubble-pop-sound` --- ### 📝 Commits (2) - [`0cc3f56`](https://github.com/horizon-rust/horizon/commit/0cc3f567fc6acdffbfa80c7de1a535f3c75c2564) Play the bubble pop sound when an air bubble bursts - [`1447034`](https://github.com/horizon-rust/horizon/commit/14470343d1a132fbe110ec27d75ab74e531e79be) Merge main into fix/air-bubble-pop-sound ### 📊 Changes **2 files changed** (+28 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+13 -0) 📝 `crates/horizon-client/src/hud_layout.rs` (+15 -0) </details> ### 📄 Description ## What and why When you run out of breath underwater, vanilla plays a pop sound for every air bubble that bursts, getting louder and higher as the bubbles run out. Horizon only drew the bursting sprite, so the pops were silent. The HUD now asks for the sound when a bubble starts bursting, once per bubble, and plays it for this player only. ## Vanilla reference - `Hud.extractAirBubbles`: resets `lastBubblePopSoundPlayed` when not underwater and calls `playAirBubblePoppedSound` for the bursting bubble. - `Hud.playAirBubblePoppedSound`: `ui.hud.bubble_pop`, volume `0.5 + 0.1 * max(0, empty - 3 + 1)`, pitch `1.0 + 0.1 * max(0, empty - 5 + 1)`, played through `Player.playSound` (PLAYERS source). ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:15:47 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4249
No description provided.