-
Notifications
You must be signed in to change notification settings - Fork 6
drum_hit_effect
Anthony Samms edited this page Jun 2, 2026
·
1 revision
A DrumHitEffect is a short flash that appears on the drum pad graphic when the player presses a key. One instance is created per key press and added to player::draw_drum_hit_list. Instances are removed when is_finished() returns true.
DrumHitEffect(DrumType type, Side side);| Parameter | Description |
|---|---|
type |
DON (red) or KAT (blue) |
side |
LEFT or RIGHT drum pad |
Starts fade immediately on construction.
| Member | Type | Description |
|---|---|---|
type |
DrumType |
DON or KAT; selects the drum flash texture |
side |
Side |
Which side of the drum pad to light up |
fade |
FadeAnimation* |
Controls opacity over the effect's lifetime |
void update(double current_ms);Advances fade.
void draw(float y);Draws the drum flash texture on the correct side of the drum graphic, offset by y in 2P layouts.
bool is_finished() const;Returns true when fade has completed.
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