55 lines
1.5 KiB
Text
55 lines
1.5 KiB
Text
[gd_scene load_steps=7 format=3 uid="uid://cyvqa6g64cw37"]
|
|
|
|
[ext_resource type="Script" path="res://scenes/enemies/slime.gd" id="1_hnufy"]
|
|
[ext_resource type="Texture2D" uid="uid://ba14nw87lxef4" path="res://ressources/images/blob-1.png.png" id="1_n4mgf"]
|
|
[ext_resource type="Texture2D" uid="uid://cpge55gmdllmi" path="res://ressources/images/blob-2-4.png.png" id="2_w8gqg"]
|
|
[ext_resource type="Texture2D" uid="uid://bst1iwqgqmcvl" path="res://ressources/images/blob-3.png.png" id="3_pwpfc"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_qfla8"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("1_n4mgf")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_w8gqg")
|
|
}],
|
|
"loop": false,
|
|
"name": &"idle",
|
|
"speed": 3.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("1_n4mgf")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_w8gqg")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_pwpfc")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_w8gqg")
|
|
}],
|
|
"loop": true,
|
|
"name": &"walk_down",
|
|
"speed": 3.0
|
|
}]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_bokrm"]
|
|
radius = 20.0
|
|
|
|
[node name="Slime" type="CharacterBody2D"]
|
|
collision_layer = 3
|
|
collision_mask = 3
|
|
script = ExtResource("1_hnufy")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(-3, 12)
|
|
sprite_frames = SubResource("SpriteFrames_qfla8")
|
|
animation = &"idle"
|
|
frame = 1
|
|
frame_progress = 1.0
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_bokrm")
|