Implement note spawner.

This commit is contained in:
2026-02-01 23:17:51 +08:00
parent 3a9d3046b2
commit 7bc4246375
8 changed files with 151 additions and 75 deletions

View File

@@ -8,9 +8,9 @@ class_name LaneView extends NoteView
func get_data() -> NoteSubset:
return _lane_notes
func update_current_beat(beat: float) -> void:
_current_beat = beat
_update_view_relative_to_notes(_lane_notes)
func update(beat: float) -> void:
_update_view_relative_to_notes(_lane_notes, beat)
_previous_beat = beat
# ======== Implementation ======== #
var _lane_notes: NoteSubset
@@ -18,4 +18,4 @@ var _lane_notes: NoteSubset
func _set_data(p_notes: NoteArray) -> void:
notes = p_notes
_lane_notes = NoteSubset.get_notes_in_lane(p_notes, lane)
_reset_view()
reset_view()