gae_platformer/scenes/slime.tscn

231 lines
6.5 KiB
Plaintext

[gd_scene format=3 uid="uid://bcwi265pjhitd"]
[ext_resource type="Script" uid="uid://b70jd71jqvkx6" path="res://scripts/slime.gd" id="1_n6pvg"]
[ext_resource type="Texture2D" uid="uid://bmn317iwnsb6x" path="res://assets/sprites/slime_green.png" id="1_p2gj0"]
[ext_resource type="PackedScene" uid="uid://c88udyeyn4dcf" path="res://scenes/killzone_player.tscn" id="2_n6pvg"]
[ext_resource type="PackedScene" uid="uid://cw6fst5irc6ve" path="res://scenes/killzone_enemy.tscn" id="4_pjw23"]
[ext_resource type="AudioStream" uid="uid://dwdekuy7yyiwk" path="res://assets/sounds/random.wav" id="5_2npkn"]
[sub_resource type="AtlasTexture" id="AtlasTexture_n6pvg"]
atlas = ExtResource("1_p2gj0")
region = Rect2(48, 48, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_v5wyi"]
atlas = ExtResource("1_p2gj0")
region = Rect2(48, 0, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_0l8pv"]
atlas = ExtResource("1_p2gj0")
region = Rect2(24, 0, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_vnioy"]
atlas = ExtResource("1_p2gj0")
region = Rect2(0, 0, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_pjw23"]
atlas = ExtResource("1_p2gj0")
region = Rect2(0, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_2npkn"]
atlas = ExtResource("1_p2gj0")
region = Rect2(24, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_fd6lc"]
atlas = ExtResource("1_p2gj0")
region = Rect2(48, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_gstla"]
atlas = ExtResource("1_p2gj0")
region = Rect2(72, 24, 24, 24)
[sub_resource type="SpriteFrames" id="SpriteFrames_v5wyi"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_n6pvg")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_v5wyi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0l8pv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vnioy")
}],
"loop": true,
"name": &"death",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_pjw23")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2npkn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fd6lc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_gstla")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0l8pv"]
size = Vector2(12, 10)
[sub_resource type="Animation" id="Animation_2xjuo"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("KillzonePlayer/CollisionShape2D:disabled")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("AnimatedSprite2D:animation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [&"death"]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("DeathSound:playing")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="Animation" id="Animation_a02ik"]
resource_name = "death"
tracks/0/type = "method"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0.53333336),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"queue_free"
}]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("KillzonePlayer/CollisionShape2D:disabled")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(-0.06666668, -0.03333336),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [true, false]
}
tracks/2/type = "method"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("KillzonePlayer")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(),
"transitions": PackedFloat32Array(),
"values": []
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("AnimatedSprite2D:animation")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [&"death"]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("DeathSound:playing")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_pu8ps"]
_data = {
&"RESET": SubResource("Animation_2xjuo"),
&"death": SubResource("Animation_a02ik")
}
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2npkn"]
size = Vector2(9, 4)
[node name="Slime" type="Node2D" unique_id=229458597]
script = ExtResource("1_n6pvg")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=364297644]
position = Vector2(0, -12)
sprite_frames = SubResource("SpriteFrames_v5wyi")
animation = &"death"
autoplay = "default"
[node name="KillzonePlayer" parent="." unique_id=991054400 instance=ExtResource("2_n6pvg")]
position = Vector2(0, -12)
[node name="CollisionShape2D" type="CollisionShape2D" parent="KillzonePlayer" unique_id=1522102352]
position = Vector2(0, 6)
shape = SubResource("RectangleShape2D_0l8pv")
[node name="RayCastRight" type="RayCast2D" parent="." unique_id=2123653773]
position = Vector2(0, -7)
target_position = Vector2(8, 0)
[node name="RayCastLeft" type="RayCast2D" parent="." unique_id=108366997]
position = Vector2(0, -7)
target_position = Vector2(-8, 0)
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1764060817]
libraries/ = SubResource("AnimationLibrary_pu8ps")
[node name="Killzone_enemy" parent="." unique_id=1883201057 instance=ExtResource("4_pjw23")]
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Killzone_enemy" unique_id=1604337896]
position = Vector2(-0.5, -13)
shape = SubResource("RectangleShape2D_2npkn")
one_way_collision = true
one_way_collision_margin = 0.0
[node name="DeathSound" type="AudioStreamPlayer2D" parent="." unique_id=644121770]
stream = ExtResource("5_2npkn")