code-game-jam-drop-plafond-.../scenes/enemies/slime.tscn

63 lines
1.7 KiB
Text
Raw Normal View History

[gd_scene load_steps=8 format=3 uid="uid://cyvqa6g64cw37"]
2025-01-24 18:38:25 +01:00
[ext_resource type="Script" path="res://scenes/enemies/slime.gd" id="1_hnufy"]
[ext_resource type="Texture2D" uid="uid://c85d5krtd4nks" path="res://ressources/images/blob-1.png" id="1_n4mgf"]
[ext_resource type="Texture2D" uid="uid://c0b6d7551nbcm" path="res://ressources/images/blob-2-4.png" id="2_w8gqg"]
[ext_resource type="Texture2D" uid="uid://c1rqfml1fi47x" path="res://ressources/images/blob-3-side.png" id="3_pwpfc"]
[ext_resource type="Texture2D" uid="uid://2gqy3xv26df1" path="res://ressources/images/blob-3.png" id="5_bhc5m"]
2025-01-24 18:38:25 +01:00
[sub_resource type="SpriteFrames" id="SpriteFrames_qfla8"]
animations = [{
"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("5_bhc5m")
2025-01-24 18:38:25 +01:00
}],
"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"]
2025-01-24 21:16:37 +01:00
collision_layer = 3
collision_mask = 3
2025-01-24 18:38:25 +01:00
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")