52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
|
[gd_scene load_steps=5 format=2]
|
||
|
|
||
|
[ext_resource path="res://Player/Player.gd" type="Script" id=1]
|
||
|
|
||
|
[sub_resource type="CapsuleMesh" id=2]
|
||
|
mid_height = 4.0
|
||
|
radial_segments = 6
|
||
|
rings = 1
|
||
|
|
||
|
[sub_resource type="CapsuleShape" id=3]
|
||
|
height = 4.0
|
||
|
|
||
|
[sub_resource type="CapsuleShape" id=4]
|
||
|
radius = 1.1
|
||
|
height = 4.0
|
||
|
|
||
|
[node name="Player" type="KinematicBody"]
|
||
|
collision_mask = 6
|
||
|
script = ExtResource( 1 )
|
||
|
|
||
|
[node name="Spatial" type="Spatial" parent="."]
|
||
|
|
||
|
[node name="Camera" type="Camera" parent="Spatial"]
|
||
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, -0.866904 )
|
||
|
fov = 90.0
|
||
|
far = 250.0
|
||
|
|
||
|
[node name="MeshInstance" type="MeshInstance" parent="Spatial"]
|
||
|
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 3, 0 )
|
||
|
visible = false
|
||
|
mesh = SubResource( 2 )
|
||
|
material/0 = null
|
||
|
|
||
|
[node name="CollisionShape" type="CollisionShape" parent="."]
|
||
|
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 3, 0 )
|
||
|
shape = SubResource( 3 )
|
||
|
|
||
|
[node name="Timer" type="Timer" parent="."]
|
||
|
wait_time = 2.0
|
||
|
|
||
|
[node name="KillBox" type="Area" parent="."]
|
||
|
monitorable = false
|
||
|
collision_layer = 0
|
||
|
collision_mask = 2
|
||
|
|
||
|
[node name="CollisionShape" type="CollisionShape" parent="KillBox"]
|
||
|
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 3, 0 )
|
||
|
shape = SubResource( 4 )
|
||
|
|
||
|
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|
||
|
[connection signal="body_entered" from="KillBox" to="." method="_on_KillBox_body_entered"]
|