Files
godot-4-key-rhythm-game/rhythm_game/note/visual/hold/hold_note.gd

19 lines
279 B
GDScript3
Raw Normal View History

class_name HoldNote extends NoteVisual
2026-02-01 23:14:52 +08:00
@export var start: Node2D
@export var end: Node2D
var start_id: int
var end_id: int
2026-02-01 23:14:52 +08:00
func reset() -> void:
start_id = -1
end_id = -1
func in_use() -> bool:
return start_id >= 0 or end_id >= 0
func update(beat: float) -> void:
pass