-
Notifications
You must be signed in to change notification settings - Fork 6
judge_counter
Anthony Samms edited this page Jun 2, 2026
·
1 revision
The JudgeCounter displays a running tally of the player's GOOD, OK, BAD, and drumroll hit counts in a compact bar at the top of the screen. It is owned by player as optional<JudgeCounter>.
JudgeCounter();Initialises all counts to zero.
| Member | Type | Description |
|---|---|---|
good |
int |
Current GOOD count |
ok |
int |
Current OK count |
bad |
int |
Current BAD count |
drumrolls |
int |
Current drumroll count |
orange |
ray::Color |
Colour used for GOOD/OK |
white |
ray::Color |
Colour used for BAD |
void update(int good, int ok, int bad, int drumrolls);Replaces the stored counts with the values from player::get_good() etc. Called each frame.
void draw();Renders the four counters in a horizontal row at the configured screen position. Each counter calls the private draw_counter() helper.
void draw_counter(float counter, float x, float y, float margin, ray::Color color);Draws a single numeric counter as right-aligned digits at (x, y), spaced by margin, tinted with color.
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