[gd_scene load_steps=5 format=3 uid="uid://ddvrvdq4406l4"]

[ext_resource type="Script" uid="uid://bmt6oqrixatxt" path="res://CardInjects/Firewall/firewall.gd" id="1_qwxdp"]
[ext_resource type="SpriteFrames" uid="uid://bliai1y7g52o0" path="res://assets/animations/Firewalls/firewall.tres" id="2_nlcc7"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_4b7oj"]
size = Vector2(111.33856, 61)

[sub_resource type="Shader" id="Shader_4b7oj"]
code = "shader_type canvas_item;

void vertex() {
	// Called for every vertex the material is visible on.
}

void fragment() {
	COLOR.g = 1.0;
}

//void light() {
//	// Called for every pixel for every light affecting the CanvasItem.
//	// Uncomment to replace the default light processing function with this one.
//}
"

[sub_resource type="ShaderMaterial" id="ShaderMaterial_1k8bc"]
shader = SubResource("Shader_4b7oj")

[node name="Firewall" type="Node2D"]
scale = Vector2(2, 2)
script = ExtResource("1_qwxdp")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
material = SubResource("ShaderMaterial_1k8bc")
sprite_frames = ExtResource("2_nlcc7")
animation = &"angled_idle"
frame_progress = 0.5135349

[node name="Area2D" type="Area2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(3.0000005, 11)
rotation = 0.80285144
shape = SubResource("RectangleShape2D_4b7oj")

[node name="Timer" type="Timer" parent="."]
process_callback = 0
wait_time = 5.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"]
