83 lines
3.1 KiB
Text
83 lines
3.1 KiB
Text
[gd_scene format=3 uid="uid://1fqyupmquole"]
|
|
|
|
[ext_resource type="Script" uid="uid://buamdls133c2e" path="res://scripts/star_enemy.gd" id="1_2mruc"]
|
|
[ext_resource type="Resource" uid="uid://0mtm64s4jthn" path="res://resources/stars.tres" id="2_7vuyl"]
|
|
[ext_resource type="PackedScene" uid="uid://c8l24d01bm2sg" path="res://scenes/enemy_explosion.tscn" id="3_f4jcd"]
|
|
[ext_resource type="Script" uid="uid://synocbtvgrf4" path="res://scripts/shadow.gd" id="4_dlviu"]
|
|
[ext_resource type="Texture2D" uid="uid://ddakqxdesvjk5" path="res://assets/enemies/orange-4.png" id="5_7vuyl"]
|
|
[ext_resource type="Texture2D" uid="uid://b50fgyydmulf0" path="res://assets/enemies/orange-5.png" id="6_cwyt1"]
|
|
[ext_resource type="Texture2D" uid="uid://bfbfyfcwftsvp" path="res://assets/enemies/orange-6.png" id="7_h1v7d"]
|
|
[ext_resource type="Texture2D" uid="uid://dwc2hmfei47bv" path="res://assets/enemies/orange-7.png" id="8_ihd2g"]
|
|
[ext_resource type="Texture2D" uid="uid://trbpyx771jjf" path="res://assets/enemies/orange-8.png" id="9_b7rn8"]
|
|
[ext_resource type="Texture2D" uid="uid://cool8ppma50uo" path="res://assets/enemies/orange-1.png" id="10_6vpiu"]
|
|
[ext_resource type="Texture2D" uid="uid://2qt27ivjbkma" path="res://assets/enemies/orange-2.png" id="11_jel63"]
|
|
[ext_resource type="Texture2D" uid="uid://cns03w1c34gq5" path="res://assets/enemies/orange-3.png" id="12_sonmy"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_rs3ab"]
|
|
radius = 16.0
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_w150n"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("5_7vuyl")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("6_cwyt1")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("7_h1v7d")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("8_ihd2g")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("9_b7rn8")
|
|
}],
|
|
"loop": true,
|
|
"name": &"attack",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("10_6vpiu")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("11_jel63")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("12_sonmy")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[node name="RangedEnemy" type="CharacterBody2D" unique_id=93153910 node_paths=PackedStringArray("main_visual") groups=["enemy"]]
|
|
collision_layer = 2
|
|
collision_mask = 3
|
|
script = ExtResource("1_2mruc")
|
|
attack_charge_time = 0.5
|
|
flee_range = 130.0
|
|
approach_range = 220.0
|
|
current_mask_data = ExtResource("2_7vuyl")
|
|
move_speed = 40.0
|
|
main_visual = NodePath("Anim")
|
|
death_scene = ExtResource("3_f4jcd")
|
|
|
|
[node name="Shadow" type="Node2D" parent="." unique_id=1651361569]
|
|
position = Vector2(0, 16)
|
|
script = ExtResource("4_dlviu")
|
|
metadata/_custom_type_script = "uid://synocbtvgrf4"
|
|
|
|
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="." unique_id=1882108293]
|
|
radius = 40.0
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1216246343]
|
|
shape = SubResource("CircleShape2D_rs3ab")
|
|
|
|
[node name="Anim" type="AnimatedSprite2D" parent="." unique_id=1041580697]
|
|
modulate = Color(0.94509804, 0.94509804, 0.94509804, 1)
|
|
sprite_frames = SubResource("SpriteFrames_w150n")
|
|
autoplay = "default"
|
|
frame_progress = 0.20596069
|