firewall scene

This commit is contained in:
2025-10-04 20:44:09 +02:00
parent 21946a995e
commit fe51030a64
3 changed files with 30 additions and 0 deletions

9
growth/firewall.gd Normal file
View File

@@ -0,0 +1,9 @@
extends Node
func _on_timer_timeout():
queue_free()
func _on_area_2d_body_entered(body):
pass # TODO: deal damage to body

1
growth/firewall.gd.uid Normal file
View File

@@ -0,0 +1 @@
uid://bmt6oqrixatxt

20
growth/firewall.tscn Normal file
View File

@@ -0,0 +1,20 @@
[gd_scene load_steps=2 format=3 uid="uid://33rplipuwv2k"]
[ext_resource type="Script" uid="uid://bmt6oqrixatxt" path="res://firewall.gd" id="1_qwxdp"]
[node name="Firewall" type="Node"]
script = ExtResource("1_qwxdp")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
[node name="Timer" type="Timer" parent="."]
process_callback = 0
one_shot = true
autostart = true
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]