1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-21 23:34:18 +00:00
swear-jar/spawner/spawner.tscn
2023-09-30 22:53:38 +02:00

22 lines
651 B
Text

[gd_scene load_steps=3 format=3 uid="uid://c67lfbk4gf1ga"]
[ext_resource type="Script" path="res://spawner/spawner.gd" id="1_xqfmg"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_xnebx"]
size = Vector2(100, 20)
[node name="Spawner" type="Node2D"]
script = ExtResource("1_xqfmg")
[node name="Timer" type="Timer" parent="."]
wait_time = 0.02
autostart = true
[node name="Area2D" type="Area2D" parent="."]
collision_mask = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(0, -10)
shape = SubResource("RectangleShape2D_xnebx")
[connection signal="timeout" from="Timer" to="." method="spawn"]