-
Notifications
You must be signed in to change notification settings - Fork 6
high_score_indicator
Displays a "new high score" badge that slides up and fades out when the player's current score exceeds their previous personal best. Created by player the first time the score animation advances past the first field, provided a new record was set.
HighScoreIndicator(int old_score, int new_score, bool is_2p);Computes score_diff = new_score - old_score. Loads a MoveAnimation (slot 18) and a FadeAnimation (slot 19), then starts both immediately.
| Member | Type | Description |
|---|---|---|
is_2p |
bool |
Selects 2P texture index |
score_diff |
int |
Amount by which the old score was beaten |
move |
MoveAnimation* |
Vertical slide animation (slot 18) |
fade |
FadeAnimation* |
Opacity animation (slot 19) |
void update(double current_ms);Advances move and fade.
void draw();Draws the localized high-score label texture ("score/high_score_<language>") displaced vertically by move->attribute and faded by fade->attribute. Below it draws the score difference digit-by-digit using SCORE::HIGH_SCORE_NUM, right-to-left with spacing from SC::HIGH_SCORE_INDICATOR_MARGIN.
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