Skip to content

result_transition

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

The ResultTransition plays a brief slide animation that repositions the player's UI panel at the end of a song, preparing the layout for the result screen. Owned by game.

ResultTransition

Construction

ResultTransition(PlayerNum player_num);

Creates a MoveAnimation that slides the player UI from its gameplay position to the result position. The direction and target depend on player_num (P1 slides left, P2 right in 2P mode).

Members

Member Type Description
is_finished bool Set to true when the slide animation completes
is_started bool Set to true after start() is called
player_num PlayerNum Which player this transition belongs to
move MoveAnimation* Slide animation

Methods

void start();

Begins the slide animation. Called by GameScreen::end_song() once the song finishes.

void update(double current_ms);

Advances the move animation and sets is_finished = true when it completes.

void draw();

Renders the player panel at its current animated position. Called from GameScreen::draw_overlay().

Clone this wiki locally