[gd_scene load_steps=14 format=3 uid="uid://bmk41n57j7hgx"] [ext_resource type="Script" uid="uid://dli2i6albvugt" path="res://scripts/entities/plants/RuntimePlantData.cs" id="1_moq7q"] [ext_resource type="Material" uid="uid://cn7ac4meka1hc" path="res://assets/GenericFlashMaterial.tres" id="2_moq7q"] [ext_resource type="Texture2D" uid="uid://dvldjlg0nr355" path="res://assets/sprites/atlases/atlas1.png" id="3_ktw4a"] [ext_resource type="Script" uid="uid://dwlwi42smgxkb" path="res://scripts/TimeScalableAnimationTree.cs" id="4_4ermv"] [ext_resource type="Script" uid="uid://cu63aiowp5bqd" path="res://scripts/entities/plants/DragAction.cs" id="4_5jowj"] [ext_resource type="Script" uid="uid://co7ttejdo2qot" path="res://scripts/entities/plants/AreaAttack.cs" id="5_twsk4"] [ext_resource type="Script" uid="uid://30pbgasu64aw" path="res://scripts/entities/FlashShaderController.cs" id="6_4uf0y"] [ext_resource type="Script" uid="uid://csgksiyma0h4t" path="res://scripts/entities/plants/behaviours/SnipachBehaviour.cs" id="6_twsk4"] [ext_resource type="Script" uid="uid://c4jy0cnbnx33h" path="res://scripts/TimeScalableTimer.cs" id="7_3hyni"] [sub_resource type="AtlasTexture" id="AtlasTexture_f4wwx"] atlas = ExtResource("3_ktw4a") region = Rect2(525, 241, 79, 72) [sub_resource type="RectangleShape2D" id="RectangleShape2D_ktw4a"] size = Vector2(39.5, 45) [sub_resource type="AtlasTexture" id="AtlasTexture_3hyni"] atlas = ExtResource("3_ktw4a") region = Rect2(592, 64, 50, 60) [sub_resource type="RectangleShape2D" id="RectangleShape2D_5jowj"] size = Vector2(40, 36) [node name="Snipach" type="Node2D" node_paths=PackedStringArray("_player", "_tree")] script = ExtResource("1_moq7q") MaxHP = 30.0 _player = NodePath("AnimationPlayer") _tree = NodePath("AnimationTree") [node name="Sprite2D" type="Sprite2D" parent="."] material = ExtResource("2_moq7q") position = Vector2(8, -16) texture = SubResource("AtlasTexture_f4wwx") [node name="AnimationPlayer" type="AnimationPlayer" parent="."] [node name="AnimationTree" type="AnimationTree" parent="." node_paths=PackedStringArray("entity")] anim_player = NodePath("../AnimationPlayer") script = ExtResource("4_4ermv") entity = NodePath("..") [node name="Hitbox" type="Area2D" parent="."] collision_layer = 2 collision_mask = 0 [node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"] position = Vector2(-0.75, -2.5) shape = SubResource("RectangleShape2D_ktw4a") [node name="DragAction" type="Node" parent="Hitbox"] script = ExtResource("4_5jowj") [node name="FlashController" type="Node" parent="."] script = ExtResource("6_4uf0y") shaderMaterial = ExtResource("2_moq7q") [node name="ShootBox" type="Area2D" parent="."] visible = false collision_layer = 32 collision_mask = 24 input_pickable = false script = ExtResource("5_twsk4") _damage = 400 [node name="Sprite2D" type="Sprite2D" parent="ShootBox"] texture = SubResource("AtlasTexture_3hyni") [node name="CollisionShape2D" type="CollisionShape2D" parent="ShootBox"] shape = SubResource("RectangleShape2D_5jowj") [node name="Behaviour" type="Node" parent="." node_paths=PackedStringArray("attackBox", "timer", "guardTimer")] script = ExtResource("6_twsk4") attackBox = NodePath("../ShootBox") timer = NodePath("Timer") guardTimer = NodePath("GuardTimer") [node name="Timer" type="Timer" parent="Behaviour" node_paths=PackedStringArray("entity")] wait_time = 15.0 one_shot = true script = ExtResource("7_3hyni") entity = NodePath("../..") [node name="GuardTimer" type="Timer" parent="Behaviour"] wait_time = 0.2 one_shot = true autostart = true ignore_time_scale = true [connection signal="OnDamaged" from="." to="FlashController" method="DamageFlash"] [connection signal="DragBegin" from="Hitbox/DragAction" to="Behaviour" method="OnDragBegin"] [connection signal="DragEnd" from="Hitbox/DragAction" to="Behaviour" method="OnDragEnd"]