MarchGame/scenes/slime.tscn

73 lines
2.2 KiB
Plaintext

[gd_scene format=3 uid="uid://dkht2dvm4ob7d"]
[ext_resource type="Texture2D" uid="uid://c1ydrfhyonp4h" path="res://assets/graphics/enemies/slime_green.png" id="1_371uh"]
[ext_resource type="Script" uid="uid://c8o8u4tesokv5" path="res://scripts/slime.gd" id="1_p2gj0"]
[sub_resource type="CircleShape2D" id="CircleShape2D_p2gj0"]
radius = 9.0
[sub_resource type="AtlasTexture" id="AtlasTexture_n6pvg"]
atlas = ExtResource("1_371uh")
region = Rect2(0, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_pjw23"]
atlas = ExtResource("1_371uh")
region = Rect2(24, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_2npkn"]
atlas = ExtResource("1_371uh")
region = Rect2(48, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_fd6lc"]
atlas = ExtResource("1_371uh")
region = Rect2(72, 24, 24, 24)
[sub_resource type="SpriteFrames" id="SpriteFrames_gstla"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_n6pvg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_pjw23")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2npkn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fd6lc")
}],
"loop": true,
"name": &"default",
"speed": 12.0
}]
[node name="Slime" type="Area2D" unique_id=525177366]
script = ExtResource("1_p2gj0")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=2092451959]
position = Vector2(0, -1)
shape = SubResource("CircleShape2D_p2gj0")
[node name="SlimeGraphic" type="AnimatedSprite2D" parent="." unique_id=462589101]
texture_filter = 1
position = Vector2(0, -3)
sprite_frames = SubResource("SpriteFrames_gstla")
autoplay = "default"
[node name="RightCast" type="RayCast2D" parent="." unique_id=1271083121]
target_position = Vector2(14, 0)
[node name="LeftCast" type="RayCast2D" parent="." unique_id=2103860158]
target_position = Vector2(-15, 0)
[node name="LeftDownCast" type="RayCast2D" parent="." unique_id=1062605570]
position = Vector2(-8, 0)
target_position = Vector2(0, 11)
[node name="RightDownCast" type="RayCast2D" parent="." unique_id=74407653]
position = Vector2(8, 0)
target_position = Vector2(0, 11)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]