Initial commit. Implement music sync features.
This commit is contained in:
37
rhythm_game/rhythm_game.tscn
Normal file
37
rhythm_game/rhythm_game.tscn
Normal file
@@ -0,0 +1,37 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://dwro2d0482v0p"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dlnnbx2wvn66t" path="res://rhythm_game/note_layout.gd" id="1_cr5rn"]
|
||||
[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="AudioStream" uid="uid://btmy8ffph5gn3" path="res://chart/test_nibelungen/audio.mp3" id="3_txi6k"]
|
||||
[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="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"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_10cpq"]
|
||||
script = ExtResource("5_nsyv8")
|
||||
stream = ExtResource("3_txi6k")
|
||||
offset = -0.17
|
||||
tempo = ExtResource("5_10cpq")
|
||||
metadata/_custom_type_script = "uid://rg6orh6kutai"
|
||||
|
||||
[node name="RhythmGame" type="Node2D"]
|
||||
script = ExtResource("1_jnfl3")
|
||||
|
||||
[node name="Conductor" type="Node" parent="."]
|
||||
script = ExtResource("2_62aw1")
|
||||
autostart = true
|
||||
music = SubResource("Resource_10cpq")
|
||||
metadata/_custom_type_script = "uid://s16dt0bu0jrg"
|
||||
|
||||
[node name="NoteLayout" type="Node" parent="."]
|
||||
script = ExtResource("1_cr5rn")
|
||||
metadata/_custom_type_script = "uid://dlnnbx2wvn66t"
|
||||
|
||||
[node name="Metronome" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("6_ecbku")
|
||||
script = ExtResource("7_nsyv8")
|
||||
metadata/_custom_type_script = "uid://bbpyym0kgujev"
|
||||
|
||||
[connection signal="ticked" from="Conductor" to="Metronome" method="on_conductor_ticked"]
|
||||
Reference in New Issue
Block a user