From 501ff6a7dc58a87349706f247fe85942834502da Mon Sep 17 00:00:00 2001 From: Turtike Date: Wed, 4 Feb 2026 00:07:13 +0800 Subject: [PATCH] Add nodes for creating note arrays in-editor. --- rhythm_game/note/editor/editor_note.gd | 5 +++++ rhythm_game/note/editor/editor_note.gd.uid | 1 + rhythm_game/note/editor/editor_note_array.gd | 10 ++++++++++ rhythm_game/note/editor/editor_note_array.gd.uid | 1 + 4 files changed, 17 insertions(+) create mode 100644 rhythm_game/note/editor/editor_note.gd create mode 100644 rhythm_game/note/editor/editor_note.gd.uid create mode 100644 rhythm_game/note/editor/editor_note_array.gd create mode 100644 rhythm_game/note/editor/editor_note_array.gd.uid diff --git a/rhythm_game/note/editor/editor_note.gd b/rhythm_game/note/editor/editor_note.gd new file mode 100644 index 0000000..32af579 --- /dev/null +++ b/rhythm_game/note/editor/editor_note.gd @@ -0,0 +1,5 @@ +class_name EditorNote extends Node + +@export var hit_beat: float = 0.0 +@export var type: Note.TYPE = Note.TYPE.TAP +@export var lane: int = 0 diff --git a/rhythm_game/note/editor/editor_note.gd.uid b/rhythm_game/note/editor/editor_note.gd.uid new file mode 100644 index 0000000..2d4a3f7 --- /dev/null +++ b/rhythm_game/note/editor/editor_note.gd.uid @@ -0,0 +1 @@ +uid://cgif6nuped1v1 diff --git a/rhythm_game/note/editor/editor_note_array.gd b/rhythm_game/note/editor/editor_note_array.gd new file mode 100644 index 0000000..f0b009c --- /dev/null +++ b/rhythm_game/note/editor/editor_note_array.gd @@ -0,0 +1,10 @@ +class_name EditorNoteArray extends NoteArray + +func _ready() -> void: + for note: EditorNote in get_children(): + if note == null: + return + # TODO: Make this insert sorted. + _beats.append(note.hit_beat) + _types.append(note.type) + _lanes.append(note.lane) diff --git a/rhythm_game/note/editor/editor_note_array.gd.uid b/rhythm_game/note/editor/editor_note_array.gd.uid new file mode 100644 index 0000000..f2b76c8 --- /dev/null +++ b/rhythm_game/note/editor/editor_note_array.gd.uid @@ -0,0 +1 @@ +uid://b1x25i77v5nag