Skip to content

judgment

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

A Judgment is a short-lived pop-up animation that appears at the judgment zone each time a note is evaluated. It displays either GOOD, OK, or BAD, with a separate visual for big notes. Multiple Judgment instances can be alive simultaneously; player keeps them in draw_judge_list and removes them when is_finished() returns true.

Judgment

Construction

Judgment(Judgments type, bool big);
Parameter Description
type GOOD, OK, or BAD
big Whether this judgment is for a big (large) note

On construction all four animations are started immediately.

Members

Member Type Description
type Judgments The judgment result
big bool Whether this judgment is for a big note
fade_animation_1 FadeAnimation* First fade layer (e.g. fade-in)
fade_animation_2 FadeAnimation* Second fade layer (e.g. fade-out after a hold)
move_animation MoveAnimation* Upward drift applied while the judgment is visible
texture_animation TextureChangeAnimation* Cycles through the judgment sprite frames

Methods

void update(double current_ms);

Advances all four animations.

void draw(float judge_x, float judge_y);

Draws the judgment texture at (judge_x, judge_y) offset by the current move animation position, blended with the current fade values.

bool is_finished() const;

Returns true when both fade animations have completed, indicating the judgment can be removed from the list.

Clone this wiki locally