[gd_scene load_steps=5 format=3 uid="uid://b440i2oidk5sp"] [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 [sub_resource type="CapsuleMesh" id="CapsuleMesh_fhldf"] radius = 0.375 height = 1.75 [sub_resource type="BoxShape3D" id="BoxShape3D_e4age"] size = Vector3(0.5, 1, 0.75) [node name="player" type="CharacterBody3D"] 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) [node name="collision" type="CollisionShape3D" parent="."] shape = SubResource("CapsuleShape3D_2l8cp") [node name="bean" type="MeshInstance3D" parent="collision"] mesh = SubResource("CapsuleMesh_fhldf") skeleton = NodePath("../..") [node name="cam_y" type="Node3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) [node name="Camera3D" type="Camera3D" parent="cam_y"] [node name="detect_hit" type="Area3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0.25, -1.25) [node name="CollisionShape3D" type="CollisionShape3D" parent="detect_hit"] shape = SubResource("BoxShape3D_e4age") disabled = true [node name="hammer_bag" type="CSGBox3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0.25, -0.5) visible = false size = Vector3(0.25, 0.25, 1) [node name="CSGBox3D" type="CSGBox3D" parent="hammer_bag"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.75) size = Vector3(0.5, 1, 0.75) [node name="CSGCylinder3D" type="CSGCylinder3D" parent="hammer_bag"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, -0.25, 1.375) height = 1.0 [node name="CSGSphere3D" type="CSGSphere3D" parent="hammer_bag/CSGCylinder3D"] 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="."] wait_time = 30.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 " [connection signal="body_entered" from="detect_hit" to="." method="_on_detect_hit_body_entered"] [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"]