[gd_scene load_steps=13 format=3 uid="uid://bmk41n57j7hgx"] [ext_resource type="PackedScene" uid="uid://b1hjjbdwf1rtc" path="res://scenes/templates/plant_template.tscn" id="1_ltcu2"] [ext_resource type="Shader" uid="uid://cgc7spjkhsx7c" path="res://assets/shaders/generic_flash.gdshader" id="2_ktw4a"] [ext_resource type="Texture2D" uid="uid://dvldjlg0nr355" path="res://assets/sprites/atlases/atlas1.png" id="3_ktw4a"] [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://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="ShaderMaterial" id="ShaderMaterial_f4wwx"] resource_local_to_scene = true shader = ExtResource("2_ktw4a") shader_parameter/FLASH_COLOR = Color(0.78, 0.78, 0.78, 0.501961) shader_parameter/HIGHLIGHT_COLOR = Color(0.69, 0, 0, 0.282353) shader_parameter/selected = false shader_parameter/blend = 0.0 [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" instance=ExtResource("1_ltcu2")] internal_id = "snipach" MaxHP = 30.0 [node name="Sprite2D" parent="." index="0"] material = SubResource("ShaderMaterial_f4wwx") position = Vector2(8, -16) texture = SubResource("AtlasTexture_f4wwx") [node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox" index="0"] position = Vector2(-0.75, -2.5) shape = SubResource("RectangleShape2D_ktw4a") [node name="DragAction" type="Node" parent="Hitbox" index="1"] script = ExtResource("4_5jowj") [node name="FlashController" parent="." index="4"] shaderMaterial = SubResource("ShaderMaterial_f4wwx") [node name="ShootBox" type="Area2D" parent="." index="5"] visible = false collision_layer = 32 collision_mask = 24 input_pickable = false script = ExtResource("5_twsk4") _damage = 400 [node name="Sprite2D" type="Sprite2D" parent="ShootBox" index="0"] texture = SubResource("AtlasTexture_3hyni") [node name="CollisionShape2D" type="CollisionShape2D" parent="ShootBox" index="1"] shape = SubResource("RectangleShape2D_5jowj") [node name="Behaviour" type="Node" parent="." index="6" 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" index="0" node_paths=PackedStringArray("entity")] wait_time = 15.0 one_shot = true script = ExtResource("7_3hyni") entity = NodePath("../..") [node name="GuardTimer" type="Timer" parent="Behaviour" index="1"] wait_time = 0.2 one_shot = true autostart = true ignore_time_scale = true [connection signal="DragBegin" from="Hitbox/DragAction" to="Behaviour" method="OnDragBegin"] [connection signal="DragEnd" from="Hitbox/DragAction" to="Behaviour" method="OnDragEnd"]