76 lines
2.1 KiB
Plaintext
76 lines
2.1 KiB
Plaintext
|
[gd_scene load_steps=9 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_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_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 = &"idle"
|
||
|
autoplay = "idle"
|
||
|
frame = 1
|
||
|
frame_progress = 0.885206
|
||
|
|
||
|
[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"]
|