75 lines
2.3 KiB
Plaintext
75 lines
2.3 KiB
Plaintext
[gd_scene format=3 uid="uid://cirhfajnm0tgv"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://dm8y5y1wgcatm" path="res://Assets/Enemy/Slime/slime_purple.png" id="1_jokqx"]
|
|
[ext_resource type="Script" uid="uid://0upi64wxvgdi" path="res://Scripts/slime.gd" id="1_swwnm"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_oov8j"]
|
|
|
|
[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_65ky4"]
|
|
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": 1,
|
|
"name": &"idle",
|
|
"speed": 12.0
|
|
}]
|
|
|
|
[node name="slime" type="Area2D" unique_id=469808451 groups=["shootable"]]
|
|
script = ExtResource("1_swwnm")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1923400761]
|
|
shape = SubResource("CircleShape2D_oov8j")
|
|
debug_color = Color(0.98289496, 0, 0.36229762, 0.41960785)
|
|
|
|
[node name="slimeGraphic" type="AnimatedSprite2D" parent="." unique_id=1897637737]
|
|
texture_filter = 1
|
|
position = Vector2(0, -2)
|
|
sprite_frames = SubResource("SpriteFrames_65ky4")
|
|
animation = &"idle"
|
|
autoplay = "idle"
|
|
frame = 1
|
|
frame_progress = 0.5775934
|
|
|
|
[node name="rightCast" type="RayCast2D" parent="." unique_id=543027424]
|
|
target_position = Vector2(15, 0)
|
|
|
|
[node name="rightDownCast" type="RayCast2D" parent="." unique_id=2087514097]
|
|
position = Vector2(9, 0)
|
|
target_position = Vector2(0, 15)
|
|
|
|
[node name="leftDownCast" type="RayCast2D" parent="." unique_id=1074540411]
|
|
position = Vector2(-9, 0)
|
|
target_position = Vector2(0, 15)
|
|
|
|
[node name="leftCast" type="RayCast2D" parent="." unique_id=994735907]
|
|
target_position = Vector2(-15, 0)
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|