73 lines
2.2 KiB
Plaintext
73 lines
2.2 KiB
Plaintext
|
|
[gd_scene format=3 uid="uid://dvdwk2je7ryqr"]
|
||
|
|
|
||
|
|
[ext_resource type="Texture2D" uid="uid://djv2eq1plqe0l" path="res://assets/graphics/enemies/slime_purple.png" id="1_2d52u"]
|
||
|
|
[ext_resource type="Script" uid="uid://bl1mwmhvr6pcx" path="res://scripts/slime.gd" id="1_5jc4t"]
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_5jc4t"]
|
||
|
|
atlas = ExtResource("1_2d52u")
|
||
|
|
region = Rect2(0, 24, 24, 24)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_4l1t8"]
|
||
|
|
atlas = ExtResource("1_2d52u")
|
||
|
|
region = Rect2(24, 24, 24, 24)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ppcr1"]
|
||
|
|
atlas = ExtResource("1_2d52u")
|
||
|
|
region = Rect2(48, 24, 24, 24)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jayke"]
|
||
|
|
atlas = ExtResource("1_2d52u")
|
||
|
|
region = Rect2(72, 24, 24, 24)
|
||
|
|
|
||
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_2002g"]
|
||
|
|
animations = [{
|
||
|
|
"frames": [{
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_5jc4t")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_4l1t8")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_ppcr1")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_jayke")
|
||
|
|
}],
|
||
|
|
"loop": true,
|
||
|
|
"name": &"idle",
|
||
|
|
"speed": 12.0
|
||
|
|
}]
|
||
|
|
|
||
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2d52u"]
|
||
|
|
size = Vector2(14, 17)
|
||
|
|
|
||
|
|
[node name="Slime" type="Area2D" unique_id=135907236]
|
||
|
|
script = ExtResource("1_5jc4t")
|
||
|
|
|
||
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=2029633077]
|
||
|
|
texture_filter = 1
|
||
|
|
sprite_frames = SubResource("SpriteFrames_2002g")
|
||
|
|
animation = &"idle"
|
||
|
|
autoplay = "idle"
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=268815028]
|
||
|
|
position = Vector2(0, 3.5)
|
||
|
|
shape = SubResource("RectangleShape2D_2d52u")
|
||
|
|
|
||
|
|
[node name="LeftCast" type="RayCast2D" parent="." unique_id=2013394798]
|
||
|
|
target_position = Vector2(-12, -1)
|
||
|
|
|
||
|
|
[node name="RightCast" type="RayCast2D" parent="." unique_id=1349591507]
|
||
|
|
target_position = Vector2(12, 0)
|
||
|
|
|
||
|
|
[node name="LeftDownCast" type="RayCast2D" parent="." unique_id=1338357928]
|
||
|
|
position = Vector2(-7, 0)
|
||
|
|
target_position = Vector2(0, 16)
|
||
|
|
|
||
|
|
[node name="RightDownCast" type="RayCast2D" parent="." unique_id=89217587]
|
||
|
|
position = Vector2(7, 0)
|
||
|
|
target_position = Vector2(0, 16)
|
||
|
|
|
||
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|