forked from interstellar_development/freeftf
63 lines
1.8 KiB
Text
63 lines
1.8 KiB
Text
[gd_scene load_steps=5 format=3 uid="uid://bldbqjmabjemn"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/freezer.gd" id="1_nmqkg"]
|
|
[ext_resource type="Texture2D" uid="uid://d37e3563corb3" path="res://assets/textures/freezer.png" id="2_w8rv5"]
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_pkxhd"]
|
|
height = 2.5
|
|
radius = 2.0
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_uvwqt"]
|
|
size = Vector3(5, 3, 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, -1.125, 0)
|
|
radius = 2.0
|
|
height = 0.25
|
|
|
|
[node name="CSGCylinder3D2" type="CSGCylinder3D" parent="."]
|
|
transparency = 0.25
|
|
radius = 1.5
|
|
|
|
[node name="CSGCylinder3D3" type="CSGCylinder3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.125, 0)
|
|
radius = 2.0
|
|
height = 0.25
|
|
|
|
[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
|
|
|
|
[node name="spawn" type="Node3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 4)
|
|
|
|
[node name="CSGBox3D" type="CSGBox3D" parent="spawn"]
|
|
visible = false
|
|
|
|
[node name="dead" type="Label3D" parent="."]
|
|
visible = false
|
|
offset = Vector2(0, 175)
|
|
billboard = 1
|
|
text = "Dead"
|
|
font_size = 64
|
|
|
|
[node name="Sprite3D" type="Sprite3D" parent="."]
|
|
visible = false
|
|
pixel_size = 0.0025
|
|
billboard = 1
|
|
no_depth_test = true
|
|
fixed_size = true
|
|
texture = ExtResource("2_w8rv5")
|
|
|
|
[connection signal="body_entered" from="Area3D" to="." method="_on_area_3d_body_entered"]
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|