Add nodes for creating note arrays in-editor.
This commit is contained in:
5
rhythm_game/note/editor/editor_note.gd
Normal file
5
rhythm_game/note/editor/editor_note.gd
Normal file
@@ -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
|
||||||
1
rhythm_game/note/editor/editor_note.gd.uid
Normal file
1
rhythm_game/note/editor/editor_note.gd.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://cgif6nuped1v1
|
||||||
10
rhythm_game/note/editor/editor_note_array.gd
Normal file
10
rhythm_game/note/editor/editor_note_array.gd
Normal file
@@ -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)
|
||||||
1
rhythm_game/note/editor/editor_note_array.gd.uid
Normal file
1
rhythm_game/note/editor/editor_note_array.gd.uid
Normal file
@@ -0,0 +1 @@
|
|||||||
|
uid://b1x25i77v5nag
|
||||||
Reference in New Issue
Block a user