74 lines
2.2 KiB
Plaintext
74 lines
2.2 KiB
Plaintext
|
|
[gd_scene format=3 uid="uid://dh7cp51oyyl76"]
|
||
|
|
|
||
|
|
[ext_resource type="Script" uid="uid://cyn4llpk3qcub" path="res://scripts/slime.gd" id="1_p2gj0"]
|
||
|
|
[ext_resource type="Texture2D" uid="uid://3nqjbe8l8lb" path="res://assets/graphics/enimes/slime_green.png" id="2_n6pvg"]
|
||
|
|
|
||
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_pjw23"]
|
||
|
|
size = Vector2(14, 15.75)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2npkn"]
|
||
|
|
atlas = ExtResource("2_n6pvg")
|
||
|
|
region = Rect2(0, 24, 24, 24)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fd6lc"]
|
||
|
|
atlas = ExtResource("2_n6pvg")
|
||
|
|
region = Rect2(24, 24, 24, 24)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_gstla"]
|
||
|
|
atlas = ExtResource("2_n6pvg")
|
||
|
|
region = Rect2(48, 24, 24, 24)
|
||
|
|
|
||
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_v5wyi"]
|
||
|
|
atlas = ExtResource("2_n6pvg")
|
||
|
|
region = Rect2(72, 24, 24, 24)
|
||
|
|
|
||
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_0l8pv"]
|
||
|
|
animations = [{
|
||
|
|
"frames": [{
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_2npkn")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_fd6lc")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_gstla")
|
||
|
|
}, {
|
||
|
|
"duration": 1.0,
|
||
|
|
"texture": SubResource("AtlasTexture_v5wyi")
|
||
|
|
}],
|
||
|
|
"loop": true,
|
||
|
|
"name": &"default",
|
||
|
|
"speed": 12.0
|
||
|
|
}]
|
||
|
|
|
||
|
|
[node name="GreenSlime" type="Area2D" unique_id=505365009]
|
||
|
|
script = ExtResource("1_p2gj0")
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=391826789]
|
||
|
|
position = Vector2(0, 0.125)
|
||
|
|
shape = SubResource("RectangleShape2D_pjw23")
|
||
|
|
|
||
|
|
[node name="SlimeGraphic" type="AnimatedSprite2D" parent="." unique_id=1018629139]
|
||
|
|
texture_filter = 1
|
||
|
|
position = Vector2(0, -4)
|
||
|
|
sprite_frames = SubResource("SpriteFrames_0l8pv")
|
||
|
|
autoplay = "default"
|
||
|
|
frame_progress = 0.2686127
|
||
|
|
|
||
|
|
[node name="RightCast" type="RayCast2D" parent="." unique_id=1472802603]
|
||
|
|
target_position = Vector2(9, 0)
|
||
|
|
|
||
|
|
[node name="LeftCast" type="RayCast2D" parent="." unique_id=1015691484]
|
||
|
|
target_position = Vector2(-9, 0)
|
||
|
|
|
||
|
|
[node name="LeftDownCast" type="RayCast2D" parent="." unique_id=1806006146]
|
||
|
|
position = Vector2(-7, 0)
|
||
|
|
target_position = Vector2(0, 9)
|
||
|
|
|
||
|
|
[node name="RightDownCast" type="RayCast2D" parent="." unique_id=732751680]
|
||
|
|
position = Vector2(7, 0)
|
||
|
|
target_position = Vector2(0, 9)
|
||
|
|
|
||
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|