-
Notifications
You must be signed in to change notification settings - Fork 6
balloon_counter
The BalloonCounter displays the number of remaining hits needed to pop a balloon note. It appears when a balloon note is entered, counts down with each hit, and then fades out when the balloon is popped or missed. Owned by player as optional<BalloonCounter>.
BalloonCounter(int count, bool is_2p);| Parameter | Description |
|---|---|
count |
Total hits required to pop the balloon |
is_2p |
Adjusts the display position for 2P layouts |
| Member | Type | Description |
|---|---|---|
balloon_count |
int |
Remaining hits needed to pop |
balloon_total |
int |
Original total hits (set at construction) |
is_popped |
bool |
Set to true when the balloon is popped |
is_2p |
bool |
Whether this counter is in the P2 position |
stretch |
TextStretchAnimation* |
Short scale pulse on each hit |
fade |
FadeAnimation* |
Fade-out played when the balloon ends |
void update_count(int count);Updates balloon_count and triggers the stretch animation. Called each time the player hits the balloon.
void update(double current_ms, int count);Advances stretch and fade. If count drops to zero and is_popped is not yet set, starts fade and sets is_popped = true.
void draw(float y);Draws the remaining hit count at its configured position, offset by y in 2P mode.
bool is_finished() const;Returns true when fade has completed, indicating the counter can be discarded.
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