Files
rgb/scene/rocket.tscn
2024-02-24 08:36:06 -06:00

43 lines
1.3 KiB
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://dktsl7nrpdhkd"]
[ext_resource type="Texture2D" uid="uid://d0hl8bxqr6pit" path="res://assets/rocket.png" id="1_rmsjo"]
[ext_resource type="Script" path="res://scripts/rocket.gd" id="1_y7fw2"]
[sub_resource type="CircleShape2D" id="CircleShape2D_l5sta"]
radius = 32.0
[node name="Rocket" type="Node2D"]
script = ExtResource("1_y7fw2")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("1_rmsjo")
[node name="CollectionZone" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="CollectionZone"]
shape = SubResource("CircleShape2D_l5sta")
[node name="LeaveTimer" type="Timer" parent="."]
[node name="CountdownLabel" type="Label" parent="."]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -11.5
offset_right = 20.0
offset_bottom = 11.5
grow_horizontal = 2
grow_vertical = 2
text = "5"
horizontal_alignment = 1
vertical_alignment = 1
[connection signal="body_entered" from="CollectionZone" to="." method="_on_collection_zone_body_entered"]
[connection signal="body_exited" from="CollectionZone" to="." method="_on_collection_zone_body_exited"]
[connection signal="timeout" from="LeaveTimer" to="." method="_on_leave_timer_timeout"]