75 lines
2.2 KiB
Plaintext
75 lines
2.2 KiB
Plaintext
|
|
[gd_scene format=3 uid="uid://rn1d2w3p88sr"]
|
||
|
|
|
||
|
|
[ext_resource type="Texture2D" uid="uid://ca0n01j1v46nw" path="res://assets/graphics/enemies/slime_green.png" id="1_jokqx"]
|
||
|
|
[ext_resource type="Script" uid="uid://q6eb2oqg3vvo" 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, 20)
|
||
|
|
|
||
|
|
[node name="Slime" type="Area2D" unique_id=1168851317]
|
||
|
|
script = ExtResource("1_swwnm")
|
||
|
|
|
||
|
|
[node name="SlimeGraphic" type="AnimatedSprite2D" parent="." unique_id=1769938307]
|
||
|
|
texture_filter = 1
|
||
|
|
position = Vector2(0, -2)
|
||
|
|
sprite_frames = SubResource("SpriteFrames_5gljc")
|
||
|
|
animation = &"idle"
|
||
|
|
autoplay = "idle"
|
||
|
|
frame = 3
|
||
|
|
frame_progress = 0.7114095
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=2009862667]
|
||
|
|
shape = SubResource("RectangleShape2D_vblni")
|
||
|
|
|
||
|
|
[node name="RightCast" type="RayCast2D" parent="." unique_id=868987711]
|
||
|
|
target_position = Vector2(12, 0)
|
||
|
|
|
||
|
|
[node name="LeftCast" type="RayCast2D" parent="." unique_id=621078355]
|
||
|
|
target_position = Vector2(-13, 0)
|
||
|
|
|
||
|
|
[node name="LeftDownCast" type="RayCast2D" parent="." unique_id=151977458]
|
||
|
|
position = Vector2(-7, 0)
|
||
|
|
target_position = Vector2(0, 13)
|
||
|
|
|
||
|
|
[node name="RightDownCast" type="RayCast2D" parent="." unique_id=1343241753]
|
||
|
|
position = Vector2(7, 0)
|
||
|
|
target_position = Vector2(0, 13)
|
||
|
|
|
||
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|