Browse Source

:truck: Move music line to a dedicated scene

DricomDragon 2 years ago
parent
commit
5e181dee7e
2 changed files with 16 additions and 11 deletions
  1. 13 0
      godot/component/entity/line/Line.tscn
  2. 3 11
      godot/world.tscn

+ 13 - 0
godot/component/entity/line/Line.tscn

@@ -0,0 +1,13 @@
+[gd_scene load_steps=3 format=3 uid="uid://bw4uy776cvn5o"]
+
+[ext_resource type="Script" path="res://component/entity/line/Line.gd" id="1_8tuj7"]
+
+[sub_resource type="Curve2D" id="Curve2D_dtvs1"]
+_data = {
+"points": PackedVector2Array(0, 0, 0, 0, 246, 1065, 0, 0, 0, 0, 469, 582, 0, 0, 0, 0, 116, 294, 0, 0, 0, 0, 33, 85, 0, 0, 0, 0, 645, 6, 0, 0, 0, 0, 1881, 227, 0, 0, 0, 0, 979, 300, 0, 0, 0, 0, 138, 895, 0, 0, 0, 0, 1489, 609, 0, 0, 0, 0, 1892, 766, 0, 0, 0, 0, 923, 1018, 0, 0, 0, 0, 338, 1044)
+}
+point_count = 12
+
+[node name="BassLine2" type="Path2D"]
+curve = SubResource("Curve2D_dtvs1")
+script = ExtResource("1_8tuj7")

+ 3 - 11
godot/world.tscn

@@ -1,21 +1,13 @@
-[gd_scene load_steps=4 format=3 uid="uid://bs8crkburdpjc"]
+[gd_scene load_steps=3 format=3 uid="uid://bs8crkburdpjc"]
 
-[ext_resource type="Script" path="res://component/entity/line/Line.gd" id="1_8gyrh"]
 [ext_resource type="PackedScene" uid="uid://bs4hylgxwbr8y" path="res://component/entity/star/Star.tscn" id="1_wa4bn"]
-
-[sub_resource type="Curve2D" id="Curve2D_dtvs1"]
-_data = {
-"points": PackedVector2Array(0, 0, 0, 0, 246, 1065, 0, 0, 0, 0, 469, 582, 0, 0, 0, 0, 116, 294, 0, 0, 0, 0, 33, 85, 0, 0, 0, 0, 645, 6, 0, 0, 0, 0, 1881, 227, 0, 0, 0, 0, 979, 300, 0, 0, 0, 0, 138, 895, 0, 0, 0, 0, 1489, 609, 0, 0, 0, 0, 1892, 766, 0, 0, 0, 0, 923, 1018, 0, 0, 0, 0, 338, 1044)
-}
-point_count = 12
+[ext_resource type="PackedScene" uid="uid://bw4uy776cvn5o" path="res://component/entity/line/Line.tscn" id="3_l2vrj"]
 
 [node name="World" type="Node2D"]
 
 [node name="Lines" type="Node2D" parent="."]
 
-[node name="BassLine" type="Path2D" parent="Lines"]
-curve = SubResource("Curve2D_dtvs1")
-script = ExtResource("1_8gyrh")
+[node name="BassLine" parent="Lines" instance=ExtResource("3_l2vrj")]
 
 [node name="ProtoStar" parent="Lines/BassLine" instance=ExtResource("1_wa4bn")]
 position = Vector2(246, 1065)