[gd_scene format=3 uid="uid://gocrwmgwlk4l"]

[ext_resource type="Script" uid="uid://bsd253gjums2r" path="res://green_enemy.gd" id="1_nuwt0"]
[ext_resource type="Resource" uid="uid://cmcdkylu5hog2" path="res://resources/grenade.tres" id="2_go8sg"]
[ext_resource type="Texture2D" uid="uid://bbmtfih341ity" path="res://assets/enemies/green_(plum)-1.png" id="3_c4k54"]
[ext_resource type="Texture2D" uid="uid://binu4ig8dwobe" path="res://assets/enemies/green_(plum)-2.png" id="4_s3gbq"]
[ext_resource type="Texture2D" uid="uid://c2dgywtcsuicp" path="res://assets/enemies/green_(plum)-3.png" id="5_io1dp"]
[ext_resource type="Texture2D" uid="uid://bpf15ye4rok7r" path="res://assets/enemies/green_(plum)-4.png" id="6_0v5hx"]
[ext_resource type="Texture2D" uid="uid://bfp2lxnrv7ehq" path="res://assets/enemies/green_right_bouncy-1.png" id="7_226bu"]
[ext_resource type="Texture2D" uid="uid://cd35626bq14o0" path="res://assets/enemies/green_right_bouncy-2.png" id="8_it5s8"]
[ext_resource type="Texture2D" uid="uid://b2ukaf2kgvplu" path="res://assets/enemies/green_right_bouncy-3.png" id="9_1c6u7"]
[ext_resource type="Texture2D" uid="uid://r0e042k5u62m" path="res://assets/enemies/green_right_bouncy-4.png" id="10_bfwuh"]
[ext_resource type="Texture2D" uid="uid://qdsru1doca2w" path="res://assets/enemies/green_left-1.png" id="11_ljflw"]
[ext_resource type="Texture2D" uid="uid://c4bv6nkd41o32" path="res://assets/enemies/green_left-2.png" id="12_hh50a"]
[ext_resource type="Texture2D" uid="uid://nqy6loyw8sg8" path="res://assets/enemies/green_left-3.png" id="13_q0y7t"]
[ext_resource type="Texture2D" uid="uid://x2k5nkgwc0s4" path="res://assets/enemies/green_right-1.png" id="14_2gcyo"]
[ext_resource type="Texture2D" uid="uid://des1xs7rqh4gf" path="res://assets/enemies/green_right-2.png" id="15_ghehd"]
[ext_resource type="Texture2D" uid="uid://b2xwhhfa7opiw" path="res://assets/enemies/green_right-3.png" id="16_3gpoe"]

[sub_resource type="SpriteFrames" id="SpriteFrames_qegda"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_c4k54")
}, {
"duration": 1.0,
"texture": ExtResource("4_s3gbq")
}, {
"duration": 1.0,
"texture": ExtResource("5_io1dp")
}, {
"duration": 1.0,
"texture": ExtResource("6_0v5hx")
}],
"loop": true,
"name": &"attack_left",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("7_226bu")
}, {
"duration": 1.0,
"texture": ExtResource("8_it5s8")
}, {
"duration": 1.0,
"texture": ExtResource("9_1c6u7")
}, {
"duration": 1.0,
"texture": ExtResource("10_bfwuh")
}],
"loop": true,
"name": &"attack_right",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("11_ljflw")
}, {
"duration": 1.0,
"texture": ExtResource("12_hh50a")
}, {
"duration": 1.0,
"texture": ExtResource("13_q0y7t")
}],
"loop": true,
"name": &"run_left",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("14_2gcyo")
}, {
"duration": 1.0,
"texture": ExtResource("15_ghehd")
}, {
"duration": 1.0,
"texture": ExtResource("16_3gpoe")
}],
"loop": true,
"name": &"run_right",
"speed": 5.0
}]

[sub_resource type="CircleShape2D" id="CircleShape2D_nuwt0"]
radius = 15.0

[node name="GreenEnemy" type="CharacterBody2D" unique_id=2025157106 node_paths=PackedStringArray("main_visual")]
script = ExtResource("1_nuwt0")
flee_range = 100.0
approach_range = 200.0
current_mask_data = ExtResource("2_go8sg")
main_visual = NodePath("AnimatedSprite2D")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=876664215]
sprite_frames = SubResource("SpriteFrames_qegda")
animation = &"run_right"
autoplay = "run_left"

[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1259136395]
position = Vector2(0, 10)
shape = SubResource("CircleShape2D_nuwt0")
