186 lines
5.2 KiB
Plaintext
186 lines
5.2 KiB
Plaintext
|
[gd_scene load_steps=25 format=3 uid="uid://hf82gpyeklob"]
|
||
|
|
||
|
[ext_resource type="Script" path="res://Scripts/Chloek.cs" id="1_x07mb"]
|
||
|
[ext_resource type="Texture2D" uid="uid://b46im6jq0mlly" path="res://Sprite Sheets/OoBchloek.png" id="1_xfs1o"]
|
||
|
[ext_resource type="AudioStream" uid="uid://bc85ifri7xmmv" path="res://Audio/reset.wav" id="5_4jtyw"]
|
||
|
[ext_resource type="AudioStream" uid="uid://n8c3n35qsjep" path="res://Audio/Snore.wav" id="6_y2rkm"]
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fwbha"]
|
||
|
atlas = ExtResource("1_xfs1o")
|
||
|
region = Rect2(0, 40, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_lpsy1"]
|
||
|
atlas = ExtResource("1_xfs1o")
|
||
|
region = Rect2(40, 40, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_m1rse"]
|
||
|
atlas = ExtResource("1_xfs1o")
|
||
|
region = Rect2(60, 40, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8xxry"]
|
||
|
atlas = ExtResource("1_xfs1o")
|
||
|
region = Rect2(20, 40, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jfd5m"]
|
||
|
atlas = ExtResource("1_xfs1o")
|
||
|
region = Rect2(0, 0, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_biq41"]
|
||
|
atlas = ExtResource("1_xfs1o")
|
||
|
region = Rect2(0, 20, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fhik1"]
|
||
|
atlas = ExtResource("1_xfs1o")
|
||
|
region = Rect2(20, 20, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_hfd2b"]
|
||
|
atlas = ExtResource("1_xfs1o")
|
||
|
region = Rect2(40, 20, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_hmixo"]
|
||
|
atlas = ExtResource("1_xfs1o")
|
||
|
region = Rect2(60, 20, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_tmruu"]
|
||
|
atlas = ExtResource("1_xfs1o")
|
||
|
region = Rect2(0, 0, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_i51bp"]
|
||
|
atlas = ExtResource("1_xfs1o")
|
||
|
region = Rect2(20, 0, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_e1v3f"]
|
||
|
atlas = ExtResource("1_xfs1o")
|
||
|
region = Rect2(40, 0, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_hk5jp"]
|
||
|
atlas = ExtResource("1_xfs1o")
|
||
|
region = Rect2(60, 0, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_bksly"]
|
||
|
atlas = ExtResource("1_xfs1o")
|
||
|
region = Rect2(20, 60, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fjfwr"]
|
||
|
atlas = ExtResource("1_xfs1o")
|
||
|
region = Rect2(40, 60, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_8sjpi"]
|
||
|
atlas = ExtResource("1_xfs1o")
|
||
|
region = Rect2(0, 60, 20, 20)
|
||
|
|
||
|
[sub_resource type="SpriteFrames" id="SpriteFrames_0mab5"]
|
||
|
animations = [{
|
||
|
"frames": [{
|
||
|
"duration": 0.5,
|
||
|
"texture": SubResource("AtlasTexture_fwbha")
|
||
|
}, {
|
||
|
"duration": 4.0,
|
||
|
"texture": SubResource("AtlasTexture_lpsy1")
|
||
|
}, {
|
||
|
"duration": 0.5,
|
||
|
"texture": SubResource("AtlasTexture_m1rse")
|
||
|
}, {
|
||
|
"duration": 0.5,
|
||
|
"texture": SubResource("AtlasTexture_8xxry")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_jfd5m")
|
||
|
}],
|
||
|
"loop": true,
|
||
|
"name": &"Action",
|
||
|
"speed": 5.0
|
||
|
}, {
|
||
|
"frames": [{
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_biq41")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_fhik1")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_hfd2b")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_hmixo")
|
||
|
}],
|
||
|
"loop": true,
|
||
|
"name": &"Eepy",
|
||
|
"speed": 0.5
|
||
|
}, {
|
||
|
"frames": [{
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_tmruu")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_i51bp")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_e1v3f")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_hk5jp")
|
||
|
}],
|
||
|
"loop": false,
|
||
|
"name": &"Idle",
|
||
|
"speed": 1.0
|
||
|
}, {
|
||
|
"frames": [{
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_bksly")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_fjfwr")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_bksly")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_8sjpi")
|
||
|
}],
|
||
|
"loop": true,
|
||
|
"name": &"Walk",
|
||
|
"speed": 10.0
|
||
|
}]
|
||
|
|
||
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_fuxcj"]
|
||
|
|
||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_08gyr"]
|
||
|
radius = 1.0
|
||
|
|
||
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_nebtc"]
|
||
|
size = Vector2(10, 10)
|
||
|
|
||
|
[node name="Chloek" type="StaticBody2D" groups=["Player"]]
|
||
|
script = ExtResource("1_x07mb")
|
||
|
|
||
|
[node name="ChloekSprite" type="AnimatedSprite2D" parent="."]
|
||
|
sprite_frames = SubResource("SpriteFrames_0mab5")
|
||
|
animation = &"Action"
|
||
|
|
||
|
[node name="ChloekCollision" type="CollisionShape2D" parent="."]
|
||
|
shape = SubResource("RectangleShape2D_fuxcj")
|
||
|
|
||
|
[node name="Probe" type="Area2D" parent="."]
|
||
|
collision_priority = 2.0
|
||
|
|
||
|
[node name="ProbeCollision" type="CollisionShape2D" parent="Probe"]
|
||
|
shape = SubResource("CircleShape2D_08gyr")
|
||
|
debug_color = Color(0.227451, 1, 0, 0.419608)
|
||
|
|
||
|
[node name="ChloekArea" type="Area2D" parent="." groups=["Player"]]
|
||
|
|
||
|
[node name="ProbeCollision" type="CollisionShape2D" parent="ChloekArea"]
|
||
|
shape = SubResource("RectangleShape2D_nebtc")
|
||
|
debug_color = Color(1, 0, 0.0823529, 0.419608)
|
||
|
|
||
|
[node name="Reset" type="AudioStreamPlayer" parent="."]
|
||
|
stream = ExtResource("5_4jtyw")
|
||
|
|
||
|
[node name="Snore" type="AudioStreamPlayer" parent="."]
|
||
|
stream = ExtResource("6_y2rkm")
|
||
|
|
||
|
[connection signal="body_entered" from="Probe" to="." method="_on_probe_body_entered"]
|
||
|
[connection signal="body_exited" from="Probe" to="." method="_on_probe_body_exited"]
|
||
|
[connection signal="body_entered" from="ChloekArea" to="." method="_on_chloek_area_body_entered"]
|