MarchGame/scenes/slime.tscn

79 lines
2.3 KiB
Plaintext
Raw Permalink Normal View History

[gd_scene format=3 uid="uid://dkht2dvm4ob7d"]
[ext_resource type="Texture2D" uid="uid://c00c0x1qv83o1" path="res://assets/graphics/enemies/slime_green.png" id="1_371uh"]
[ext_resource type="Script" uid="uid://8iya0pgh6sfe" path="res://scripts/slime.gd" id="1_p2gj0"]
[sub_resource type="CircleShape2D" id="CircleShape2D_p2gj0"]
radius = 4.8021874
[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=305880172]
script = ExtResource("1_p2gj0")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=647585054]
position = Vector2(0, 3)
scale = Vector2(1.0655605, -0.97931033)
shape = SubResource("CircleShape2D_p2gj0")
[node name="SlimeGraphic" type="AnimatedSprite2D" parent="." unique_id=1679150105]
texture_filter = 1
position = Vector2(-1, -1)
sprite_frames = SubResource("SpriteFrames_gstla")
autoplay = "default"
frame_progress = 0.7351196
[node name="RightCast" type="RayCast2D" parent="." unique_id=575609518]
visible = false
target_position = Vector2(14, 0)
[node name="LeftCast" type="RayCast2D" parent="." unique_id=821553577]
visible = false
target_position = Vector2(-15, 1)
[node name="RightDownCast" type="RayCast2D" parent="." unique_id=673145016]
visible = false
position = Vector2(6, 1)
target_position = Vector2(0, 11)
[node name="LeftDownCast" type="RayCast2D" parent="." unique_id=1253465642]
visible = false
position = Vector2(-8, 0)
target_position = Vector2(0, 12)
[connection signal="body_entered" from="." to="." method="_on_body_entered"]