feat(ui): merge score panels, move message below board

This commit is contained in:
Henri Bourcereau 2026-04-29 21:52:47 +02:00
parent c69891605e
commit d3455def33
5 changed files with 555 additions and 174 deletions

View file

@ -146,6 +146,14 @@ mod inner {
});
}
/// Brief high tick for the jackpot-style points counter (one call per increment).
pub fn play_points_tick() {
with_ctx(|ctx| {
play_tone(ctx, 880.0, 0.18, 0.055, 0.000, OscillatorType::Sine);
play_tone(ctx, 1320.0, 0.07, 0.035, 0.000, OscillatorType::Sine);
});
}
/// Triumphant four-note fanfare (C5 E5 G5 C6).
pub fn play_hole_scored() {
with_ctx(|ctx| {
@ -167,7 +175,7 @@ mod inner {
#[cfg(target_arch = "wasm32")]
pub use inner::{
play_checker_move, play_dice_roll, play_dice_roll_cinematic, play_hole_scored,
play_points_scored,
play_points_scored, play_points_tick,
};
#[cfg(not(target_arch = "wasm32"))]
@ -179,4 +187,6 @@ pub fn play_dice_roll_cinematic() {}
#[cfg(not(target_arch = "wasm32"))]
pub fn play_points_scored() {}
#[cfg(not(target_arch = "wasm32"))]
pub fn play_points_tick() {}
#[cfg(not(target_arch = "wasm32"))]
pub fn play_hole_scored() {}