firewall scene
This commit is contained in:
9
growth/firewall.gd
Normal file
9
growth/firewall.gd
Normal 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
1
growth/firewall.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bmt6oqrixatxt
|
||||
20
growth/firewall.tscn
Normal file
20
growth/firewall.tscn
Normal 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"]
|
||||
Reference in New Issue
Block a user