Initial repo
This commit is contained in:
27
Scenes/missile_pickup.tscn
Normal file
27
Scenes/missile_pickup.tscn
Normal file
@@ -0,0 +1,27 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://c86ciqhnl2swc"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/missile_pickup.gd" id="1_0iljv"]
|
||||
[ext_resource type="Texture2D" uid="uid://ba5j4p3o33aye" path="res://Assets/Missile_Container.png" id="1_nti3e"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ul5ug"]
|
||||
size = Vector2(21, 27)
|
||||
|
||||
[node name="missile_pickup" type="Area2D"]
|
||||
collision_layer = 2
|
||||
collision_mask = 10
|
||||
script = ExtResource("1_0iljv")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
scale = Vector2(0.35, 0.35)
|
||||
texture = ExtResource("1_nti3e")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(-0.5, -0.5)
|
||||
shape = SubResource("RectangleShape2D_ul5ug")
|
||||
|
||||
[node name="pickup_despawn" type="Timer" parent="."]
|
||||
wait_time = 30.0
|
||||
one_shot = true
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
[connection signal="timeout" from="pickup_despawn" to="." method="_on_pickup_despawn_timeout"]
|
||||
Reference in New Issue
Block a user