Skip to content

combo_announce

Anthony Samms edited this page Jun 2, 2026 · 1 revision

A ComboAnnounce plays a voiced audio announcement and a brief on-screen graphic when the player reaches a combo milestone. Typical milestones are 100, 300, 500, 1000, etc. Owned by player as optional<ComboAnnounce>.

ComboAnnounce

Construction

ComboAnnounce(int combo, double current_ms, PlayerNum player_num);
Parameter Description
combo The combo milestone that triggered this announcement
current_ms Current song timestamp; used to compute the display duration
player_num Which player; selects the correct voice audio file

Members

Member Type Description
player_num PlayerNum Player identity; used to choose the voice clip
combo int The milestone value being announced
wait double Timestamp after which the voice audio is played
fade FadeAnimation* Controls the visibility of the on-screen graphic
audio_played bool Set to true once the voice clip has been triggered
is_finished bool Set to true when fade completes; signals removal to Player

Methods

void update(double current_ms);

Advances fade. When current_ms >= wait and audio_played is false, plays the voice audio and sets audio_played = true. Sets is_finished = true when fade completes.

void draw(float y);

Draws the combo milestone graphic at the configured position, offset by y for 2P.

Clone this wiki locally