101 lines
3.1 KiB
Plaintext
101 lines
3.1 KiB
Plaintext
[gd_scene load_steps=15 format=3 uid="uid://y54cvugsx75b"]
|
|
|
|
[ext_resource type="Script" uid="uid://bj52mq7uip7di" path="res://Scripts/Enemies/Enemy.cs" id="1_qqq3s"]
|
|
[ext_resource type="Texture2D" uid="uid://cm8gnfvfysyyl" path="res://Assets/Sprites/Characters/Enemies/stone-Sheet.png" id="2_ymaxx"]
|
|
[ext_resource type="Script" uid="uid://cu37tswrk107q" path="res://Scripts/Enemies/EnemyMovement.cs" id="3_pbvk1"]
|
|
[ext_resource type="Script" uid="uid://dvkd1keu854so" path="res://Scripts/Components/Health.cs" id="4_njiku"]
|
|
[ext_resource type="Script" uid="uid://c247m8m3qmlk0" path="res://Scripts/Enemies/EnemyArea.cs" id="5_ymaxx"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ldgsr"]
|
|
atlas = ExtResource("2_ymaxx")
|
|
region = Rect2(0, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_o5yvi"]
|
|
atlas = ExtResource("2_ymaxx")
|
|
region = Rect2(32, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_rku1e"]
|
|
atlas = ExtResource("2_ymaxx")
|
|
region = Rect2(64, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_rfjv2"]
|
|
atlas = ExtResource("2_ymaxx")
|
|
region = Rect2(96, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1phco"]
|
|
atlas = ExtResource("2_ymaxx")
|
|
region = Rect2(128, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_nb51f"]
|
|
atlas = ExtResource("2_ymaxx")
|
|
region = Rect2(160, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_nnt18"]
|
|
atlas = ExtResource("2_ymaxx")
|
|
region = Rect2(192, 0, 32, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_ewbju"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ldgsr")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_o5yvi")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_rku1e")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_rfjv2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1phco")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_nb51f")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_nnt18")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_7puah"]
|
|
radius = 12.0
|
|
|
|
[node name="enemy" type="PathFollow2D" node_paths=PackedStringArray("Health")]
|
|
rotates = false
|
|
loop = false
|
|
script = ExtResource("1_qqq3s")
|
|
Health = NodePath("Scripts/Health")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
self_modulate = Color(1.8247963, 1.8247963, 1.8247963, 1)
|
|
texture_filter = 1
|
|
sprite_frames = SubResource("SpriteFrames_ewbju")
|
|
offset = Vector2(0, -16)
|
|
|
|
[node name="Scripts" type="Node" parent="."]
|
|
|
|
[node name="Movement" type="Node" parent="Scripts" node_paths=PackedStringArray("_pathFollow2D")]
|
|
script = ExtResource("3_pbvk1")
|
|
_pathFollow2D = NodePath("../..")
|
|
_speed = 25.0
|
|
|
|
[node name="Health" type="Node" parent="Scripts"]
|
|
script = ExtResource("4_njiku")
|
|
_baseMaxHp = 50.0
|
|
|
|
[node name="HitBox" type="Area2D" parent="." node_paths=PackedStringArray("Enemy")]
|
|
collision_layer = 4
|
|
collision_mask = 0
|
|
script = ExtResource("5_ymaxx")
|
|
Enemy = NodePath("..")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="HitBox"]
|
|
position = Vector2(0, -14)
|
|
shape = SubResource("CircleShape2D_7puah")
|