-
Notifications
You must be signed in to change notification settings - Fork 6
score_counter
Anthony Samms edited this page Jun 2, 2026
·
1 revision
The ScoreCounter displays the player's current score as a large animated number. A squash-and-stretch pulse plays whenever the score increases. Owned by player.
ScoreCounter(int score, bool is_2p);| Parameter | Description |
|---|---|
score |
Initial score value (usually 0) |
is_2p |
Adjusts position for the two-player layout |
| Member | Type | Description |
|---|---|---|
score |
int |
Currently displayed score value |
is_2p |
bool |
Whether this counter is in the P2 position |
stretch |
TextStretchAnimation* |
Short scale pulse played on each score increase |
void update_count(int score);Updates score and restarts the stretch animation. Called whenever player records a judgment.
void update(double current_ms);Advances the stretch animation.
void draw(float y);Renders the score digits at the configured position, offset vertically by y in 2P mode, and scaled by the current stretch value.
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