Pārlūkot izejas kodu

:tada: Add a random pouet level

DricomDragon 2 gadi atpakaļ
vecāks
revīzija
703840d145
2 mainītis faili ar 62 papildinājumiem un 6 dzēšanām
  1. 44 0
      godot/run/levels/pouet.tscn
  2. 18 6
      godot/run/menu.tscn

+ 44 - 0
godot/run/levels/pouet.tscn

@@ -0,0 +1,44 @@
+[gd_scene load_steps=6 format=3 uid="uid://d1jspijrlu3i6"]
+
+[ext_resource type="PackedScene" path="res://component/manage/router/Router.tscn" id="1_m1bb8"]
+[ext_resource type="PackedScene" uid="uid://bw4uy776cvn5o" path="res://component/entity/line/Line.tscn" id="2_t717g"]
+[ext_resource type="PackedScene" uid="uid://bs4hylgxwbr8y" path="res://component/entity/star/Star.tscn" id="3_72xbh"]
+[ext_resource type="PackedScene" uid="uid://dkltla4rn3vgv" path="res://component/entity/trigger/Trigger.tscn" id="4_8rhuu"]
+
+[sub_resource type="Curve2D" id="Curve2D_snsc7"]
+_data = {
+"points": PackedVector2Array(0, 0, 0, 0, 1856, 64, 0, 0, 0, 0, 64, 64, 0, 0, 0, 0, 296, 520, 0, 0, 0, 0, 1856, 1024, 0, 0, 0, 0, 64, 1024, 0, 0, 0, 0, 1560, 672, 0, 0, 0, 0, 1856, 64)
+}
+point_count = 7
+
+[node name="PouetMusic" type="Node2D"]
+
+[node name="Router" parent="." instance=ExtResource("1_m1bb8")]
+
+[node name="BassLine" parent="." instance=ExtResource("2_t717g")]
+curve = SubResource("Curve2D_snsc7")
+
+[node name="Star" parent="BassLine" instance=ExtResource("3_72xbh")]
+position = Vector2(723.919, 64)
+progress = 1132.08
+speed = 950.0
+octave = -1
+
+[node name="Star2" parent="BassLine" instance=ExtResource("3_72xbh")]
+position = Vector2(157.879, 64)
+progress = 1698.12
+speed = 950.0
+note = 7
+octave = -1
+
+[node name="Star3" parent="BassLine" instance=ExtResource("3_72xbh")]
+position = Vector2(438.686, 566.098)
+progress = 2453.57
+speed = 950.0
+note = 3
+octave = -1
+
+[node name="Triggers" type="Node2D" parent="."]
+
+[node name="Trigger" parent="Triggers" instance=ExtResource("4_8rhuu")]
+position = Vector2(1096, 776)

+ 18 - 6
godot/run/menu.tscn

@@ -1,10 +1,11 @@
-[gd_scene load_steps=6 format=3 uid="uid://yi5bab38nsy1"]
+[gd_scene load_steps=7 format=3 uid="uid://yi5bab38nsy1"]
 
 [ext_resource type="PackedScene" uid="uid://xa6opw1e34ve" path="res://component/ui/launcher/launcher.tscn" id="1_drwug"]
 [ext_resource type="Texture2D" uid="uid://bsld6lureiq11" path="res://StarKissLogo.png" id="1_fdf5f"]
 [ext_resource type="PackedScene" uid="uid://bs8crkburdpjc" path="res://run/levels/world.tscn" id="2_x8xps"]
 [ext_resource type="PackedScene" uid="uid://bmdqfw4sxhdt3" path="res://run/levels/simple_scales.tscn" id="3_xung6"]
 [ext_resource type="PackedScene" uid="uid://cm11n13hpeyrm" path="res://run/levels/heart.tscn" id="4_wmep8"]
+[ext_resource type="PackedScene" uid="uid://d1jspijrlu3i6" path="res://run/levels/pouet.tscn" id="6_uh1cd"]
 
 [node name="Menu" type="Control"]
 layout_mode = 3
@@ -51,8 +52,8 @@ horizontal_scroll_mode = 0
 
 [node name="LevelContainer" type="VBoxContainer" parent="LevelScroll"]
 layout_mode = 2
-offset_right = 302.0
-offset_bottom = 239.0
+offset_right = 305.0
+offset_bottom = 320.0
 alignment = 1
 
 [node name="SimpleLevel" parent="LevelScroll/LevelContainer" instance=ExtResource("1_drwug")]
@@ -60,7 +61,7 @@ layout_mode = 2
 anchors_preset = 0
 anchor_right = 0.0
 anchor_bottom = 0.0
-offset_right = 302.0
+offset_right = 305.0
 offset_bottom = 77.0
 grow_horizontal = 1
 grow_vertical = 1
@@ -74,7 +75,7 @@ anchors_preset = 0
 anchor_right = 0.0
 anchor_bottom = 0.0
 offset_top = 81.0
-offset_right = 302.0
+offset_right = 305.0
 offset_bottom = 158.0
 grow_horizontal = 1
 grow_vertical = 1
@@ -87,9 +88,20 @@ anchors_preset = 0
 anchor_right = 0.0
 anchor_bottom = 0.0
 offset_top = 162.0
-offset_right = 302.0
+offset_right = 305.0
 offset_bottom = 239.0
 grow_horizontal = 1
 grow_vertical = 1
 text = "Heart music"
 level = ExtResource("4_wmep8")
+
+[node name="PouetLevel" parent="LevelScroll/LevelContainer" instance=ExtResource("1_drwug")]
+layout_mode = 2
+anchors_preset = 0
+anchor_right = 0.0
+anchor_bottom = 0.0
+offset_top = 243.0
+offset_right = 305.0
+offset_bottom = 320.0
+text = "Super pouet"
+level = ExtResource("6_uh1cd")