freeftf/objects/player.tscn

111 lines
3.2 KiB
Text
Raw Normal View History

[gd_scene load_steps=5 format=3 uid="uid://b440i2oidk5sp"]
2024-08-02 00:55:56 +02:00
[ext_resource type="Script" path="res://scripts/movement.gd" id="1_uru11"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_2l8cp"]
radius = 0.375
height = 1.75
2024-08-02 00:55:56 +02:00
[sub_resource type="CapsuleMesh" id="CapsuleMesh_fhldf"]
radius = 0.375
height = 1.75
2024-08-02 00:55:56 +02:00
[sub_resource type="BoxShape3D" id="BoxShape3D_e4age"]
size = Vector3(0.5, 0.25, 0.75)
2024-08-02 00:55:56 +02:00
[node name="player" type="CharacterBody3D"]
floor_stop_on_slope = false
2024-08-02 00:55:56 +02:00
script = ExtResource("1_uru11")
[node name="in_bag" type="ColorRect" parent="."]
visible = false
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)
2024-08-02 00:55:56 +02:00
[node name="collision" type="CollisionShape3D" parent="."]
shape = SubResource("CapsuleShape3D_2l8cp")
[node name="bean" type="MeshInstance3D" parent="collision"]
gi_mode = 2
2024-08-02 00:55:56 +02:00
mesh = SubResource("CapsuleMesh_fhldf")
skeleton = NodePath("../..")
2024-08-02 00:55:56 +02:00
[node name="cam_y" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
2024-08-02 00:55:56 +02:00
[node name="Camera3D" type="Camera3D" parent="cam_y"]
[node name="bag" type="CSGCylinder3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.875)
visible = false
height = 1.0
[node name="CSGSphere3D" type="CSGSphere3D" parent="bag"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
visible = false
radius = 0.375
[node name="time_in_bag" type="Timer" parent="."]
2024-09-01 21:35:29 +02:00
wait_time = 60.0
one_shot = true
[node name="show_fps" type="Timer" parent="."]
autostart = true
[node name="jump_timeout" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[node name="nametag" type="Label3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)
billboard = 1
text = "Test"
[node name="fps_counter" type="Label" parent="."]
visible = false
offset_right = 40.0
offset_bottom = 23.0
size_flags_horizontal = 0
size_flags_vertical = 0
theme_override_font_sizes/font_size = 64
text = "FPS: "
[node name="health" type="Label" parent="."]
visible = false
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -45.0
offset_right = 182.0
grow_vertical = 0
size_flags_horizontal = 0
size_flags_vertical = 0
theme_override_font_sizes/font_size = 64
text = "HP: 100 "
[node name="hammer" type="CSGBox3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0.5, 0.5, 0)
visible = false
size = Vector3(0.25, 0.25, 1)
[node name="CSGBox3D" type="CSGBox3D" parent="hammer"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.75)
size = Vector3(0.5, 1, 0.75)
[node name="detect_hit" type="Area3D" parent="hammer/CSGBox3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0)
[node name="CollisionShape3D" type="CollisionShape3D" parent="hammer/CSGBox3D/detect_hit"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.375, 0)
shape = SubResource("BoxShape3D_e4age")
disabled = true
[connection signal="timeout" from="time_in_bag" to="." method="_on_time_in_bag_timeout"]
[connection signal="timeout" from="show_fps" to="." method="_on_show_fps_timeout"]
[connection signal="timeout" from="jump_timeout" to="." method="_on_jump_timeout_timeout"]
[connection signal="body_entered" from="hammer/CSGBox3D/detect_hit" to="." method="_on_detect_hit_body_entered"]