Godot 3d tutorial: https://docs.godotengine.org/en/stable/getting_started/first_3d_game/07.killing_player.html
This commit is contained in:
82
main.tscn
Normal file
82
main.tscn
Normal file
@@ -0,0 +1,82 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://6o4jfv4sjc42"]
|
||||
|
||||
[ext_resource type="Script" path="res://main.gd" id="1_git68"]
|
||||
[ext_resource type="PackedScene" uid="uid://bl4b5g1o8ud5y" path="res://player.tscn" id="1_qvjem"]
|
||||
[ext_resource type="PackedScene" uid="uid://h2hapmuai55b" path="res://mob.tscn" id="2_oiwul"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_jiv4h"]
|
||||
size = Vector3(60, 2, 60)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_vamix"]
|
||||
size = Vector3(60, 2, 60)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1f85g"]
|
||||
albedo_color = Color(0.968627, 0.545098, 0, 1)
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_1gwnh"]
|
||||
material = SubResource("StandardMaterial3D_1f85g")
|
||||
|
||||
[sub_resource type="Curve3D" id="Curve3D_476rq"]
|
||||
_data = {
|
||||
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, -13.6297, 0, -15.0268, 0, 0, 0, 0, 0, 0, 13.2382, 0, -15.2266, 0, 0, 0, 0, 0, 0, 13.2382, 0, 15.3369, 0, 0, 0, 0, 0, 0, -13.6297, 0, 14.9374, 0, 0, 0, 0, 0, 0, -13.6297, 0, -15.0268),
|
||||
"tilts": PackedFloat32Array(0, 0, 0, 0, 0)
|
||||
}
|
||||
point_count = 5
|
||||
|
||||
[node name="Main" type="Node"]
|
||||
script = ExtResource("1_git68")
|
||||
mob_scene = ExtResource("2_oiwul")
|
||||
|
||||
[node name="Ground" type="StaticBody3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0)
|
||||
collision_layer = 4
|
||||
collision_mask = 0
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Ground"]
|
||||
shape = SubResource("BoxShape3D_jiv4h")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Ground"]
|
||||
mesh = SubResource("BoxMesh_vamix")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 26.3214, 0)
|
||||
shadow_enabled = true
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("1_qvjem")]
|
||||
|
||||
[node name="CameraPivot" type="Marker3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 19, 19)
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="CameraPivot"]
|
||||
projection = 1
|
||||
size = 19.0
|
||||
|
||||
[node name="Cylinders" type="Node3D" parent="."]
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Cylinders"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13.358, 0, -14.8422)
|
||||
mesh = SubResource("CylinderMesh_1gwnh")
|
||||
|
||||
[node name="MeshInstance3D2" type="MeshInstance3D" parent="Cylinders"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.3652, 0, 15.5517)
|
||||
mesh = SubResource("CylinderMesh_1gwnh")
|
||||
|
||||
[node name="MeshInstance3D3" type="MeshInstance3D" parent="Cylinders"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.4386, 0, -14.9891)
|
||||
mesh = SubResource("CylinderMesh_1gwnh")
|
||||
|
||||
[node name="MeshInstance3D4" type="MeshInstance3D" parent="Cylinders"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13.358, 0, 15.1847)
|
||||
mesh = SubResource("CylinderMesh_1gwnh")
|
||||
|
||||
[node name="SpawnPath" type="Path3D" parent="."]
|
||||
curve = SubResource("Curve3D_476rq")
|
||||
|
||||
[node name="SpawnLocation" type="PathFollow3D" parent="SpawnPath"]
|
||||
transform = Transform3D(0.00743461, 0, -0.999972, 0, 1, 0, 0.999972, 0, 0.00743461, -13.6297, 0, -15.0268)
|
||||
|
||||
[node name="MobTimer" type="Timer" parent="."]
|
||||
wait_time = 0.5
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="MobTimer" to="." method="_on_mob_timer_timeout"]
|
||||
Reference in New Issue
Block a user