109 lines
2.9 KiB
Plaintext
109 lines
2.9 KiB
Plaintext
[gd_scene load_steps=13 format=3 uid="uid://cat3n1unb05u6"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://1qmvigexa3to" path="res://Assets/Graphics/Enemies/slime_purple.png" id="1_jokqx"]
|
|
[ext_resource type="Script" uid="uid://vjdcp0a4i0j8" path="res://Scripts/slime.gd" id="1_swwnm"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_5gljc"]
|
|
atlas = ExtResource("1_jokqx")
|
|
region = Rect2(0, 48, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_vblni"]
|
|
atlas = ExtResource("1_jokqx")
|
|
region = Rect2(24, 48, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_e388w"]
|
|
atlas = ExtResource("1_jokqx")
|
|
region = Rect2(48, 48, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_r4o34"]
|
|
atlas = ExtResource("1_jokqx")
|
|
region = Rect2(72, 48, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_swwnm"]
|
|
atlas = ExtResource("1_jokqx")
|
|
region = Rect2(0, 24, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_aiwxb"]
|
|
atlas = ExtResource("1_jokqx")
|
|
region = Rect2(24, 24, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_paq7w"]
|
|
atlas = ExtResource("1_jokqx")
|
|
region = Rect2(48, 24, 24, 24)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_f4si1"]
|
|
atlas = ExtResource("1_jokqx")
|
|
region = Rect2(72, 24, 24, 24)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_5gljc"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_5gljc")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_vblni")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_e388w")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_r4o34")
|
|
}],
|
|
"loop": false,
|
|
"name": &"hurt",
|
|
"speed": 12.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_swwnm")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_aiwxb")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_paq7w")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_f4si1")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 12.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vblni"]
|
|
size = Vector2(16, 16)
|
|
|
|
[node name="Slime" type="Area2D"]
|
|
script = ExtResource("1_swwnm")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="slimeGraphic" type="AnimatedSprite2D" parent="."]
|
|
texture_filter = 1
|
|
sprite_frames = SubResource("SpriteFrames_5gljc")
|
|
animation = &"hurt"
|
|
autoplay = "idle"
|
|
frame = 3
|
|
frame_progress = 1.0
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, 4)
|
|
shape = SubResource("RectangleShape2D_vblni")
|
|
|
|
[node name="RightSideCast" type="RayCast2D" parent="."]
|
|
target_position = Vector2(14, 0)
|
|
|
|
[node name="LeftSideCast" type="RayCast2D" parent="."]
|
|
target_position = Vector2(-14, 0)
|
|
|
|
[node name="LeftDownCast" type="RayCast2D" parent="."]
|
|
position = Vector2(-8, 0)
|
|
target_position = Vector2(0, 14)
|
|
|
|
[node name="RightDownCast" type="RayCast2D" parent="."]
|
|
position = Vector2(8, 0)
|
|
target_position = Vector2(0, 14)
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|