Files
CoinQuest/scenes/slime.tscn
2024-10-25 17:48:21 +02:00

67 lines
2.0 KiB
Plaintext

[gd_scene load_steps=10 format=3 uid="uid://btfpng5d31b83"]
[ext_resource type="Script" path="res://scripts/slime.gd" id="1_kj13p"]
[ext_resource type="Texture2D" uid="uid://dbwh17otsbga4" path="res://assets/sprites/slime_green.png" id="1_x3p18"]
[ext_resource type="PackedScene" uid="uid://cxkr1ot3mkts1" path="res://scenes/killzone.tscn" id="2_7kal0"]
[sub_resource type="AtlasTexture" id="AtlasTexture_g5y6v"]
atlas = ExtResource("1_x3p18")
region = Rect2(0, 0, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_u86q0"]
atlas = ExtResource("1_x3p18")
region = Rect2(24, 0, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_xqlso"]
atlas = ExtResource("1_x3p18")
region = Rect2(48, 0, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_6mhlf"]
atlas = ExtResource("1_x3p18")
region = Rect2(72, 0, 24, 24)
[sub_resource type="SpriteFrames" id="SpriteFrames_oo5qv"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_g5y6v")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_u86q0")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xqlso")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6mhlf")
}],
"loop": true,
"name": &"default",
"speed": 10.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_uy1yv"]
size = Vector2(11, 8)
[node name="Node2D" type="Node2D"]
script = ExtResource("1_kj13p")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_oo5qv")
autoplay = "default"
frame_progress = 0.720463
[node name="killzone" parent="." instance=ExtResource("2_7kal0")]
[node name="CollisionShape2D" type="CollisionShape2D" parent="killzone"]
position = Vector2(0, 8)
shape = SubResource("RectangleShape2D_uy1yv")
[node name="RayCastRight" type="RayCast2D" parent="."]
position = Vector2(-1, 7)
target_position = Vector2(11, 0)
[node name="RayCastLeft" type="RayCast2D" parent="."]
position = Vector2(-1, 7)
target_position = Vector2(-8, 0)