]> Untitled Git - knight.git/blobdiff - test/test.tscn
Player attributes now accessable
[knight.git] / test / test.tscn
index 0e2999b138fd67fa2ed5b83fab35c74e958b0855..b5d8aa81ac29a0fb737a3caa60d99971f2abc2bd 100644 (file)
@@ -1,6 +1,8 @@
-[gd_scene load_steps=8 format=3 uid="uid://bvydwnbie3pv4"]
+[gd_scene load_steps=10 format=3 uid="uid://bvydwnbie3pv4"]
 
+[ext_resource type="Script" path="res://test/test.gd" id="1_gmol0"]
 [ext_resource type="PackedScene" uid="uid://chtr62feiltax" path="res://player/player.tscn" id="1_ytdba"]
+[ext_resource type="PackedScene" uid="uid://dbthgkok84ru0" path="res://test/block.tscn" id="2_8u8xb"]
 
 [sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_ohmka"]
 sky_top_color = Color(0.0360979, 0.133006, 0.175678, 1)
@@ -28,6 +30,7 @@ albedo_color = Color(0.149763, 0.203291, 0.262937, 1)
 data = PackedVector3Array(20, 0, 4.49, -20, 0, 4.49, 20, 0, -4.49, -20, 0, 4.49, -20, 0, -4.49, 20, 0, -4.49)
 
 [node name="Test" type="Node3D"]
+script = ExtResource("1_gmol0")
 
 [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
 environment = SubResource("Environment_7wa85")
@@ -40,14 +43,32 @@ shadow_enabled = true
 [node name="Player" parent="." instance=ExtResource("1_ytdba")]
 transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.806743, 1.19209e-07, 0.147649)
 
-[node name="ground" type="Node3D" parent="."]
+[node name="map" type="Node3D" parent="."]
 
-[node name="plane" type="MeshInstance3D" parent="ground"]
+[node name="ground" type="MeshInstance3D" parent="map"]
 mesh = SubResource("PlaneMesh_dplfc")
 skeleton = NodePath("../..")
 surface_material_override/0 = SubResource("StandardMaterial3D_87x6o")
 
-[node name="StaticBody3D" type="StaticBody3D" parent="ground/plane"]
+[node name="StaticBody3D" type="StaticBody3D" parent="map/ground"]
 
-[node name="CollisionShape3D" type="CollisionShape3D" parent="ground/plane/StaticBody3D"]
+[node name="CollisionShape3D" type="CollisionShape3D" parent="map/ground/StaticBody3D"]
 shape = SubResource("ConcavePolygonShape3D_73kmu")
+
+[node name="Block" parent="map" instance=ExtResource("2_8u8xb")]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.30582, 0, 0.134318)
+
+[node name="Block2" parent="map" instance=ExtResource("2_8u8xb")]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.94243, 1.91616, 0.268636)
+
+[node name="Block3" parent="map" instance=ExtResource("2_8u8xb")]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.315662, -4.76837e-07, -3.10105)
+
+[node name="Block4" parent="map" instance=ExtResource("2_8u8xb")]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.899326, 0, -2.69083)
+
+[node name="Block5" parent="map" instance=ExtResource("2_8u8xb")]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.8697, 0, 3.31299)
+
+[node name="Block6" parent="map" instance=ExtResource("2_8u8xb")]
+transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.79621, 4.76837e-07, 3.0765)