diff --git a/scenes/level.tscn b/scenes/level.tscn index d874ff1..62bc598 100644 --- a/scenes/level.tscn +++ b/scenes/level.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=7 format=3 uid="uid://dchj6g2i8ebph"] +[gd_scene load_steps=9 format=3 uid="uid://dchj6g2i8ebph"] [ext_resource type="Script" uid="uid://bpxggc8nr6tf6" path="res://scenes/player.gd" id="2_w7c3h"] @@ -14,6 +14,12 @@ bounce = 0.5 [sub_resource type="SphereShape3D" id="SphereShape3D_mx8sn"] +[sub_resource type="BoxShape3D" id="BoxShape3D_2q6dc"] +size = Vector3(1080, 2, 1080) + +[sub_resource type="BoxMesh" id="BoxMesh_w7c3h"] +size = Vector3(1080, 2, 1080) + [node name="Node3D" type="Node3D"] [node name="Thing" type="RigidBody3D" parent="."] @@ -28,6 +34,7 @@ shape = SubResource("SphereShape3D_2q6dc") debug_color = Color(0.29772994, 0.6216631, 0.28140613, 0.41960785) [node name="MeshInstance3D" type="MeshInstance3D" parent="Thing"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) mesh = SubResource("SphereMesh_w7c3h") [node name="Player" type="RigidBody3D" parent="."] @@ -39,3 +46,17 @@ script = ExtResource("2_w7c3h") shape = SubResource("SphereShape3D_mx8sn") [node name="Camera3D" type="Camera3D" parent="Player"] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) + +[node name="Ground" type="StaticBody3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0) + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Ground"] +shape = SubResource("BoxShape3D_2q6dc") + +[node name="MeshInstance3D" type="MeshInstance3D" parent="Ground"] +mesh = SubResource("BoxMesh_w7c3h") + +[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 0.5, 0.8660253, 0, -0.8660253, 0.5, 0, 34, 0) +shadow_enabled = true