149 lines
4.2 KiB
Plaintext
149 lines
4.2 KiB
Plaintext
|
[gd_scene load_steps=19 format=3 uid="uid://crtwv7phv71wq"]
|
||
|
|
||
|
[ext_resource type="Script" path="res://Scripts/Ghost.cs" id="1_1xbhw"]
|
||
|
[ext_resource type="Texture2D" uid="uid://c38fo4o7uf5c3" path="res://Sprite Sheets/OoB elements.png" id="2_cshgs"]
|
||
|
[ext_resource type="AudioStream" uid="uid://dskvseq1btvs" path="res://Audio/GhostMove.wav" id="3_qcwa8"]
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_lwyws"]
|
||
|
atlas = ExtResource("2_cshgs")
|
||
|
region = Rect2(40, 60, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_u44yj"]
|
||
|
atlas = ExtResource("2_cshgs")
|
||
|
region = Rect2(60, 60, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_70m7p"]
|
||
|
atlas = ExtResource("2_cshgs")
|
||
|
region = Rect2(40, 80, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_f0cly"]
|
||
|
atlas = ExtResource("2_cshgs")
|
||
|
region = Rect2(60, 80, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ojfnu"]
|
||
|
atlas = ExtResource("2_cshgs")
|
||
|
region = Rect2(0, 60, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_eslxr"]
|
||
|
atlas = ExtResource("2_cshgs")
|
||
|
region = Rect2(20, 60, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ar12j"]
|
||
|
atlas = ExtResource("2_cshgs")
|
||
|
region = Rect2(20, 80, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_11207"]
|
||
|
atlas = ExtResource("2_cshgs")
|
||
|
region = Rect2(0, 80, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_36mmi"]
|
||
|
atlas = ExtResource("2_cshgs")
|
||
|
region = Rect2(20, 60, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_uilw5"]
|
||
|
atlas = ExtResource("2_cshgs")
|
||
|
region = Rect2(0, 60, 20, 20)
|
||
|
|
||
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fvhei"]
|
||
|
atlas = ExtResource("2_cshgs")
|
||
|
region = Rect2(0, 80, 20, 20)
|
||
|
|
||
|
[sub_resource type="SpriteFrames" id="SpriteFrames_heqvb"]
|
||
|
animations = [{
|
||
|
"frames": [{
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_lwyws")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_u44yj")
|
||
|
}],
|
||
|
"loop": true,
|
||
|
"name": &"Idle",
|
||
|
"speed": 6.0
|
||
|
}, {
|
||
|
"frames": [{
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_70m7p")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_f0cly")
|
||
|
}],
|
||
|
"loop": true,
|
||
|
"name": &"Moving",
|
||
|
"speed": 11.0
|
||
|
}, {
|
||
|
"frames": [{
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_ojfnu")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_eslxr")
|
||
|
}],
|
||
|
"loop": false,
|
||
|
"name": &"Pre-Idle",
|
||
|
"speed": 3.0
|
||
|
}, {
|
||
|
"frames": [{
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_ar12j")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_11207")
|
||
|
}],
|
||
|
"loop": false,
|
||
|
"name": &"Stopping",
|
||
|
"speed": 2.0
|
||
|
}, {
|
||
|
"frames": [{
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_36mmi")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_uilw5")
|
||
|
}, {
|
||
|
"duration": 1.0,
|
||
|
"texture": SubResource("AtlasTexture_fvhei")
|
||
|
}],
|
||
|
"loop": false,
|
||
|
"name": &"Wind-Up",
|
||
|
"speed": 9.0
|
||
|
}]
|
||
|
|
||
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_wmrwe"]
|
||
|
|
||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_3sffk"]
|
||
|
radius = 1.0
|
||
|
|
||
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_4d2vn"]
|
||
|
size = Vector2(9.95312, 9.95312)
|
||
|
|
||
|
[node name="Ghost" type="StaticBody2D" groups=["Ghost", "Obsticals"]]
|
||
|
script = ExtResource("1_1xbhw")
|
||
|
|
||
|
[node name="GhostSprite" type="AnimatedSprite2D" parent="."]
|
||
|
sprite_frames = SubResource("SpriteFrames_heqvb")
|
||
|
animation = &"Pre-Idle"
|
||
|
|
||
|
[node name="ObsticalCollision" type="CollisionShape2D" parent="."]
|
||
|
shape = SubResource("RectangleShape2D_wmrwe")
|
||
|
|
||
|
[node name="Probe" type="Area2D" parent="."]
|
||
|
|
||
|
[node name="ProbeCollision" type="CollisionShape2D" parent="Probe"]
|
||
|
shape = SubResource("CircleShape2D_3sffk")
|
||
|
debug_color = Color(0.945098, 0.235294, 0, 0.419608)
|
||
|
|
||
|
[node name="GhostArea" type="Area2D" parent="." groups=["Ghost"]]
|
||
|
|
||
|
[node name="ProbeCollision" type="CollisionShape2D" parent="GhostArea"]
|
||
|
shape = SubResource("RectangleShape2D_4d2vn")
|
||
|
debug_color = Color(0.443137, 0.6, 0, 0.419608)
|
||
|
|
||
|
[node name="GhostMove" type="AudioStreamPlayer" parent="."]
|
||
|
stream = ExtResource("3_qcwa8")
|
||
|
|
||
|
[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="area_entered" from="GhostArea" to="." method="_on_ghost_area_area_entered"]
|
||
|
[connection signal="area_exited" from="GhostArea" to="." method="_on_ghost_area_area_exited"]
|