47 lines
1.7 KiB
Text
47 lines
1.7 KiB
Text
[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"]
|
|
|
|
[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": &"default",
|
|
"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")
|
|
frame = 3
|
|
frame_progress = 0.72517973
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1259136395]
|
|
position = Vector2(0, 10)
|
|
shape = SubResource("CircleShape2D_nuwt0")
|