-
Notifications
You must be signed in to change notification settings - Fork 6
judgment
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(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.
| 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 |
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.
Building
libs
- animation
- audio
- config
- filesystem
- global_data
- input
- logging
- ray
- scores
- screen
- script
- song_parser
- text
- texture
- video
- webcam
libs/parsers
objects
objects/game
- player
- background
- gauge
- judgment
- combo
- branch_indicator
- ending_animations
- gogo_time
- fireworks
- song_info
- transition
- result_transition
- judge_counter
- score_counter
- score_counter_animation
- balloon_counter
- drumroll_counter
- kusudama_counter
- drum_hit_effect
- lane_hit_effect
- gauge_hit_effect
- combo_announce
- note_arc
objects/global
objects/title
objects/entry
objects/settings
objects/result
objects/song_select
- player
- navigator
- box_base
- box_song
- box_folder
- neiro
- modifier
- ura_switch
- diff_sort
- search_box
- dan_transition
- genre_bg
- score_history
- song_select_script
scenes