Add note array and view.

This commit is contained in:
2026-01-25 03:26:34 +08:00
parent f16cf0fb96
commit 051ca8bcd8
16 changed files with 196 additions and 91 deletions

18
rhythm_game/note/note.gd Normal file
View File

@@ -0,0 +1,18 @@
class_name Note extends Object
enum TYPE {
TAP = 0,
HOLD_START = 1,
HOLD_END = 2
}
var hit_beat: float
var type: TYPE
var lane: int
func _init(p_hit_beat: float = -99.0, p_lane: int = 0, p_type: TYPE = TYPE.TAP) -> void:
hit_beat = p_hit_beat
lane = p_lane
type = p_type