Milestone 3: Freezer
The freezer is now implemented, just as it worked in the original. There are also a few fixes here and there in preparation for Milestonr 4.
This commit is contained in:
parent
d40c3ce1ab
commit
a92202b536
14 changed files with 199 additions and 114 deletions
42
objects/freezer.tscn
Normal file
42
objects/freezer.tscn
Normal file
|
@ -0,0 +1,42 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://bldbqjmabjemn"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/freezer.gd" id="1_nmqkg"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_pkxhd"]
|
||||
height = 6.0
|
||||
radius = 2.0
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_uvwqt"]
|
||||
size = Vector3(5, 5, 5)
|
||||
|
||||
[node name="freezer" type="StaticBody3D"]
|
||||
script = ExtResource("1_nmqkg")
|
||||
|
||||
[node name="CSGCylinder3D" type="CSGCylinder3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2.5, 0)
|
||||
radius = 2.0
|
||||
height = 1.0
|
||||
|
||||
[node name="CSGCylinder3D2" type="CSGCylinder3D" parent="."]
|
||||
transparency = 0.25
|
||||
radius = 1.5
|
||||
height = 4.0
|
||||
|
||||
[node name="CSGCylinder3D3" type="CSGCylinder3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, 0)
|
||||
radius = 2.0
|
||||
height = 1.0
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("CylinderShape3D_pkxhd")
|
||||
|
||||
[node name="Area3D" type="Area3D" parent="."]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
|
||||
shape = SubResource("BoxShape3D_uvwqt")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
autostart = true
|
||||
|
||||
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
|
@ -63,8 +63,14 @@ wait_time = 30.0
|
|||
one_shot = true
|
||||
|
||||
[node name="show_fps" type="Timer" parent="."]
|
||||
wait_time = 10.0
|
||||
autostart = true
|
||||
|
||||
[node name="jump_timeout" type="Timer" parent="."]
|
||||
wait_time = 2.0
|
||||
one_shot = true
|
||||
|
||||
[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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue