Skip to content

fireworks

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

The Fireworks class plays a single-use explosion animation that fires when the player clears a song. It is held as optional<Fireworks> by player and is created inside spawn_ending_anim().

Fireworks

Construction

Fireworks();

Starts the explosion_anim immediately.

Members

Member Type Description
explosion_anim TextureChangeAnimation* Cycles through the fireworks explosion frames

Methods

void update(double current_ms);

Advances explosion_anim.

void draw();

Draws the current explosion frame at its configured screen position.

bool is_finished();

Returns true when explosion_anim has played through all its frames, signalling that the object can be discarded.

Clone this wiki locally