chain levels with spaghetti

This commit is contained in:
Taevas 2025-02-23 00:46:23 +01:00
parent 7a18c4f8c6
commit 6a59b54c11
10 changed files with 465 additions and 15 deletions

View file

@ -0,0 +1,24 @@
[gd_scene load_steps=4 format=3 uid="uid://w4h8ip754qnb"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_clvpw"]
sky_top_color = Color(0, 0.504542, 0.579919, 1)
sky_horizon_color = Color(9.62615e-08, 0.776269, 0.496436, 1)
sky_curve = 0.219613
ground_bottom_color = Color(0.078119, 0.275869, 4.81308e-08, 1)
ground_horizon_color = Color(0.300489, 0.406247, 0.0024617, 1)
sun_angle_max = 224.83
sun_curve = 0.212132
[sub_resource type="Sky" id="Sky_8w3rf"]
sky_material = SubResource("ProceduralSkyMaterial_clvpw")
[sub_resource type="Environment" id="Environment_nda78"]
background_mode = 2
sky = SubResource("Sky_8w3rf")
sky_rotation = Vector3(0.0872665, 0.698132, 0.0872665)
ambient_light_source = 3
ambient_light_color = Color(1, 1, 1, 1)
reflected_light_source = 2
[node name="Environment" type="WorldEnvironment"]
environment = SubResource("Environment_nda78")

117
levels/forest/level.tscn Normal file
View file

@ -0,0 +1,117 @@
[gd_scene load_steps=5 format=3 uid="uid://dfvuxfxc6ooya"]
[ext_resource type="PackedScene" uid="uid://w4h8ip754qnb" path="res://levels/forest/environment.tscn" id="1_7clrg"]
[ext_resource type="Script" path="res://levels/level.gd" id="1_fdxcj"]
[ext_resource type="PackedScene" uid="uid://cnnvwotv33u1b" path="res://elements/player.tscn" id="2_mjogx"]
[ext_resource type="PackedScene" uid="uid://cpm3laywhlbq5" path="res://elements/ring.tscn" id="4_p8yhq"]
[node name="Forest" type="Node3D"]
script = ExtResource("1_fdxcj")
[node name="Environment" parent="." instance=ExtResource("1_7clrg")]
[node name="Player" parent="." instance=ExtResource("2_mjogx")]
[node name="Rings" type="Node3D" parent="."]
[node name="Ring" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(0.3, 0, 0, 0, 0.3, 0, 0, 0, 0.3, 0, -2, 0)
[node name="Ring2" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -3, 0)
[node name="Ring11" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(20, 0, 0, 0, 20, 0, 0, 0, 20, 0, 64.625, 0)
[node name="Ring26" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(20, 0, 0, 0, 20, 0, 0, 0, 20, -220.266, 264.294, 0)
[node name="Ring3" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-1.31134e-08, -0.3, 0, 0.3, -1.31134e-08, 0, 0, 0, 0.3, 5, -8, 0)
[node name="Ring4" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-2.18557e-08, -0.5, 0, 0.5, -2.18557e-08, 0, 0, 0, 0.5, 4, -8, 0)
[node name="Ring5" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-1.31134e-08, -0.3, 0, 0.3, -1.31134e-08, 0, 0, 0, 0.3, 20, -4, 0)
[node name="Ring6" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-2.18557e-08, -0.5, 0, 0.5, -2.18557e-08, 0, 0, 0, 0.5, 19, -4, 0)
[node name="Ring7" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-1.31134e-08, -0.3, 0, 0.3, -1.31134e-08, 0, 0, 0, 0.3, 39.2269, -8, 0)
[node name="Ring8" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-2.18557e-08, -0.5, 0, 0.5, -2.18557e-08, 0, 0, 0, 0.5, 38.2269, -8, 0)
[node name="Ring9" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-1.31134e-08, -0.3, 0, 0.3, -1.31134e-08, 0, 0, 0, 0.3, 54.2269, -4, 0)
[node name="Ring10" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-2.18557e-08, -0.5, 0, 0.5, -2.18557e-08, 0, 0, 0, 0.5, 53.227, -4, 0)
[node name="Ring12" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 78, 10, 0)
[node name="Ring14" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 42.708, 48.7486, 0)
[node name="Ring13" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-2.18557e-08, -0.5, 0, 0.5, -2.18557e-08, 0, 0, 0, 0.5, 64.1634, 30.568, 0)
[node name="Ring15" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-2.18557e-08, -0.5, 0, 0.5, -2.18557e-08, 0, 0, 0, 0.5, 9.73236, 65.3451, 0)
[node name="Ring16" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-2.18557e-08, -0.5, 0, 0.5, -2.18557e-08, 0, 0, 0, 0.5, -23.606, 88.7308, 0)
[node name="Ring17" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-8.74228e-08, -2, 0, 2, -8.74228e-08, 0, 0, 0, 2, -104.638, 112.884, 0)
[node name="Ring18" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-8.74228e-08, -2, 0, 2, -8.74228e-08, 0, 0, 0, 2, -452.906, 58.8928, 0)
[node name="Ring19" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-8.74228e-08, -2, 0, 2, -8.74228e-08, 0, 0, 0, 2, -742.534, 126.395, 0)
[node name="Ring20" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -1018.15, -27.6358, 0)
[node name="Ring21" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, -1018.15, -66.5463, 0)
[node name="Ring22" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, -1018.15, -85.7121, 0)
[node name="Ring24" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-0.51303, -1.40954, 0, 1.40954, -0.51303, 0, 0, 0, 1.5, -1001.17, -87.6138, 0)
[node name="Ring25" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-3.0598e-08, -0.7, 0, 0.7, -3.0598e-08, 0, 0, 0, 0.7, -966.1, -87.6138, 0)
[node name="Ring27" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-5.24537e-08, -1.2, 0, 1.2, -5.24537e-08, 0, 0, 0, 1.2, -881.143, -72.4025, 0)
[node name="Ring28" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-5.24537e-08, -1.2, 0, 1.2, -5.24537e-08, 0, 0, 0, 1.2, -793.893, -58.0851, 0)
[node name="Ring29" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-5.24537e-08, -1.2, 0, 1.2, -5.24537e-08, 0, 0, 0, 1.2, -706.288, -35.6603, 0)
[node name="Ring30" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-5.24537e-08, -1.2, 0, 1.2, -5.24537e-08, 0, 0, 0, 1.2, -619.038, -21.3428, 0)
[node name="Ring31" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-5.24537e-08, -1.2, 0, 1.2, -5.24537e-08, 0, 0, 0, 1.2, -510.173, 3.82137, 0)
[node name="Ring32" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(-0.563606, -1.05941, 0, 1.05941, -0.563606, 0, 0, 0, 1.2, -416.969, 37.1114, 0)
[node name="Ring33" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(1.25802, 0.327712, 0, -0.327712, 1.25802, 0, 0, 0, 1.3, -289.057, 121.083, 0)
[node name="Ring34" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -218.208, 206.247, 0)
[node name="Ring23" parent="Rings" instance=ExtResource("4_p8yhq")]
transform = Transform3D(0.939693, 0.34202, 0, -0.34202, 0.939693, 0, 0, 0, 1, -1018.15, -96.9134, 0)