diff --git a/rhythm_game/rhythm_game.tscn b/rhythm_game/rhythm_game.tscn index 307f7a9..c6c6103 100644 --- a/rhythm_game/rhythm_game.tscn +++ b/rhythm_game/rhythm_game.tscn @@ -2,14 +2,17 @@ [ext_resource type="Script" uid="uid://102cl75cfpgw" path="res://rhythm_game/music_sync/event_layout.gd" id="1_jnfl3"] [ext_resource type="Script" uid="uid://s16dt0bu0jrg" path="res://rhythm_game/music_sync/conductor.gd" id="2_62aw1"] +[ext_resource type="Script" uid="uid://dpu6645p40p43" path="res://rhythm_game/note/visual/note_spawner.gd" id="2_nuoj2"] [ext_resource type="AudioStream" uid="uid://btmy8ffph5gn3" path="res://chart/test_nibelungen/audio.mp3" id="3_txi6k"] +[ext_resource type="Script" uid="uid://u42y08gn6bi7" path="res://rhythm_game/lane/lane.gd" id="4_obbjr"] [ext_resource type="Resource" uid="uid://b34uhnkvwfyc1" path="res://chart/test_nibelungen/tempo.tres" id="5_10cpq"] [ext_resource type="Script" uid="uid://rg6orh6kutai" path="res://resource_type/music.gd" id="5_nsyv8"] +[ext_resource type="Script" uid="uid://cgif6nuped1v1" path="res://rhythm_game/note/editor/editor_note.gd" id="5_wq11w"] [ext_resource type="AudioStream" uid="uid://be8dyt7nfpffw" path="res://sfx/sfx_cowbell.ogg" id="6_ecbku"] [ext_resource type="Script" uid="uid://bbpyym0kgujev" path="res://rhythm_game/metronome.gd" id="7_nsyv8"] -[ext_resource type="Script" uid="uid://8isyo4pxyj1r" path="res://rhythm_game/note/array/note_array.gd" id="9_10cpq"] [ext_resource type="Script" uid="uid://c7h7ue6kjgoha" path="res://rhythm_game/note/view/note_view.gd" id="9_74aio"] [ext_resource type="Script" uid="uid://clog51kfg2rsb" path="res://rhythm_game/note/visual/note_pool.gd" id="10_74aio"] +[ext_resource type="Script" uid="uid://b1x25i77v5nag" path="res://rhythm_game/note/editor/editor_note_array.gd" id="12_obbjr"] [sub_resource type="Resource" id="Resource_10cpq"] script = ExtResource("5_nsyv8") @@ -21,6 +24,57 @@ metadata/_custom_type_script = "uid://rg6orh6kutai" [node name="RhythmGame" type="Node2D" unique_id=1479619523] script = ExtResource("1_jnfl3") +[node name="NoteSpawner" type="Node" parent="." unique_id=885666554 node_paths=PackedStringArray("lanes", "pool", "notes")] +script = ExtResource("2_nuoj2") +lanes = { +0: NodePath("../Lane0"), +1: NodePath("../Lane1"), +2: NodePath("../Lane2"), +3: NodePath("../Lane3") +} +pool = NodePath("NotePool") +notes = NodePath("Notes") +metadata/_custom_type_script = "uid://dpu6645p40p43" + +[node name="NotePool" type="Node" parent="NoteSpawner" unique_id=621311008] +script = ExtResource("10_74aio") +metadata/_custom_type_script = "uid://clog51kfg2rsb" + +[node name="Notes" type="Node" parent="NoteSpawner" unique_id=936018806] +script = ExtResource("12_obbjr") + +[node name="Note1" type="Node" parent="NoteSpawner/Notes" unique_id=577206015] +script = ExtResource("5_wq11w") + +[node name="Note2" type="Node" parent="NoteSpawner/Notes" unique_id=1051280322] +script = ExtResource("5_wq11w") +hit_beat = 5.0 + +[node name="Note3" type="Node" parent="NoteSpawner/Notes" unique_id=1001463669] +script = ExtResource("5_wq11w") +hit_beat = 6.0 +lane = 2 + +[node name="Lane0" type="Node2D" parent="." unique_id=178768598] +position = Vector2(394, 308) +script = ExtResource("4_obbjr") +metadata/_custom_type_script = "uid://u42y08gn6bi7" + +[node name="Lane1" type="Node2D" parent="." unique_id=1477988197] +position = Vector2(516, 312) +script = ExtResource("4_obbjr") +metadata/_custom_type_script = "uid://u42y08gn6bi7" + +[node name="Lane2" type="Node2D" parent="." unique_id=1586197762] +position = Vector2(634, 311) +script = ExtResource("4_obbjr") +metadata/_custom_type_script = "uid://u42y08gn6bi7" + +[node name="Lane3" type="Node2D" parent="." unique_id=1689399295] +position = Vector2(778, 313) +script = ExtResource("4_obbjr") +metadata/_custom_type_script = "uid://u42y08gn6bi7" + [node name="Conductor" type="Node" parent="." unique_id=1726392948] script = ExtResource("2_62aw1") autostart = true @@ -32,17 +86,8 @@ stream = ExtResource("6_ecbku") script = ExtResource("7_nsyv8") metadata/_custom_type_script = "uid://bbpyym0kgujev" -[node name="AllChartNotes" type="Node" parent="." unique_id=2044386757] -script = ExtResource("9_10cpq") -metadata/_custom_type_script = "uid://8isyo4pxyj1r" - -[node name="VisibleNotes" type="Node" parent="." unique_id=149671562 node_paths=PackedStringArray("notes")] +[node name="VisibleNotes" type="Node" parent="." unique_id=149671562] script = ExtResource("9_74aio") -notes = NodePath("../AllChartNotes") metadata/_custom_type_script = "uid://c7h7ue6kjgoha" -[node name="NotePool" type="Node" parent="." unique_id=621311008] -script = ExtResource("10_74aio") -metadata/_custom_type_script = "uid://clog51kfg2rsb" - [connection signal="ticked" from="Conductor" to="Metronome" method="on_conductor_ticked"]