2025-10-28 01:02:15 +00:00
|
|
|
[gd_scene load_steps=9 format=3 uid="uid://bts74sqcd7k7h"]
|
|
|
|
|
|
|
|
|
|
[ext_resource type="Script" uid="uid://bcxorf6dwnwbv" path="res://scripts/slimer.gd" id="1_4oill"]
|
2025-11-13 02:51:31 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://dpq20rryss8we" path="res://assets/graphics/enemies/25-11-12-pdm-endesga-32-0_scaled_3x_pngcrushed.png" id="2_4oill"]
|
2025-10-28 01:02:15 +00:00
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8ecsm"]
|
2025-11-13 02:51:31 +00:00
|
|
|
atlas = ExtResource("2_4oill")
|
|
|
|
|
region = Rect2(0, 144, 48, 72)
|
2025-10-28 01:02:15 +00:00
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_swrbd"]
|
2025-11-13 02:51:31 +00:00
|
|
|
atlas = ExtResource("2_4oill")
|
|
|
|
|
region = Rect2(48, 144, 48, 72)
|
2025-10-28 01:02:15 +00:00
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_slvpl"]
|
2025-11-13 02:51:31 +00:00
|
|
|
atlas = ExtResource("2_4oill")
|
|
|
|
|
region = Rect2(96, 144, 48, 72)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_negjt"]
|
|
|
|
|
atlas = ExtResource("2_4oill")
|
|
|
|
|
region = Rect2(144, 144, 48, 72)
|
2025-10-28 01:02:15 +00:00
|
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_negjt"]
|
|
|
|
|
animations = [{
|
|
|
|
|
"frames": [{
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_8ecsm")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_swrbd")
|
|
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_slvpl")
|
2025-11-13 02:51:31 +00:00
|
|
|
}, {
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_negjt")
|
2025-10-28 01:02:15 +00:00
|
|
|
}],
|
|
|
|
|
"loop": true,
|
2025-11-13 02:51:31 +00:00
|
|
|
"name": &"walk",
|
2025-10-28 01:02:15 +00:00
|
|
|
"speed": 6.0
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_02r3y"]
|
2025-11-13 02:51:31 +00:00
|
|
|
size = Vector2(42, 57)
|
2025-10-28 01:02:15 +00:00
|
|
|
|
|
|
|
|
[node name="Slimer" type="Area2D"]
|
2025-11-04 01:56:43 +00:00
|
|
|
collision_layer = 16
|
|
|
|
|
collision_mask = 15
|
2025-10-28 01:02:15 +00:00
|
|
|
script = ExtResource("1_4oill")
|
2025-11-12 13:28:58 +00:00
|
|
|
speed = 100
|
2025-10-28 01:02:15 +00:00
|
|
|
|
2025-11-11 02:17:55 +00:00
|
|
|
[node name="SlimeSprite" type="AnimatedSprite2D" parent="."]
|
2025-11-13 02:51:31 +00:00
|
|
|
position = Vector2(0, -7)
|
2025-10-28 01:02:15 +00:00
|
|
|
sprite_frames = SubResource("SpriteFrames_negjt")
|
2025-11-13 02:51:31 +00:00
|
|
|
animation = &"walk"
|
|
|
|
|
autoplay = "walk"
|
|
|
|
|
frame_progress = 0.5956298
|
2025-10-28 01:02:15 +00:00
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
|
shape = SubResource("RectangleShape2D_02r3y")
|
|
|
|
|
|
2025-11-04 01:56:43 +00:00
|
|
|
[node name="RightCast" type="RayCast2D" parent="."]
|
2025-11-13 02:51:31 +00:00
|
|
|
target_position = Vector2(22, 0)
|
2025-11-12 13:28:58 +00:00
|
|
|
collision_mask = 2
|
2025-11-04 01:56:43 +00:00
|
|
|
|
|
|
|
|
[node name="LeftCast" type="RayCast2D" parent="."]
|
2025-11-13 02:51:31 +00:00
|
|
|
target_position = Vector2(-22, 0)
|
2025-11-12 13:28:58 +00:00
|
|
|
collision_mask = 2
|
2025-11-04 01:56:43 +00:00
|
|
|
|
|
|
|
|
[node name="RightDownCast" type="RayCast2D" parent="."]
|
2025-11-13 02:51:31 +00:00
|
|
|
position = Vector2(21, 0)
|
|
|
|
|
target_position = Vector2(0, 37)
|
2025-11-12 13:28:58 +00:00
|
|
|
collision_mask = 2
|
2025-11-04 01:56:43 +00:00
|
|
|
|
|
|
|
|
[node name="LeftDownCast" type="RayCast2D" parent="."]
|
2025-11-13 02:51:31 +00:00
|
|
|
position = Vector2(-21, 0)
|
|
|
|
|
target_position = Vector2(0, 37)
|
2025-11-12 13:28:58 +00:00
|
|
|
collision_mask = 2
|
2025-11-04 01:56:43 +00:00
|
|
|
|
2025-10-28 01:02:15 +00:00
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|