Skip to content

lane_hit_effect

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

A LaneHitEffect is a brief flash displayed in the note lane at the judgment zone each time a note is hit. It conveys the note colour (DON/KAT) and the judgment quality (GOOD/OK/BAD). Owned by player as optional<LaneHitEffect> and replaced on each new hit.

LaneHitEffect

Construction

LaneHitEffect(DrumType type, Judgments judgment);
Parameter Description
type DON or KAT; controls the flash colour
judgment GOOD, OK, or BAD; controls opacity

Starts fade immediately.

Members

Member Type Description
type DrumType Selects DON or KAT flash texture
judgment Judgments Used to pick the correct flash intensity or texture
fade FadeAnimation* Controls opacity over the effect's lifetime

Methods

void update(double current_ms);

Advances fade.

void draw(float y);

Draws the lane flash texture at the judgment zone position, offset by y in 2P mode.

bool is_finished() const;

Returns true when fade has completed.

Clone this wiki locally