121 lines
3.4 KiB
Plaintext
121 lines
3.4 KiB
Plaintext
[gd_scene load_steps=17 format=3 uid="uid://b8d22amvt6eq5"]
|
|
|
|
[ext_resource type="Script" path="res://Scripts/Cage.cs" id="1_4c405"]
|
|
[ext_resource type="Texture2D" uid="uid://c38fo4o7uf5c3" path="res://Sprite Sheets/OoB elements.png" id="2_118wr"]
|
|
[ext_resource type="Texture2D" uid="uid://s2cmbu5hdci" path="res://Sprite Sheets/RedElements.png" id="3_kud6c"]
|
|
[ext_resource type="AudioStream" uid="uid://cfsd1yxpufm37" path="res://Audio/GhostCage.wav" id="4_nqwdl"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_odfan"]
|
|
atlas = ExtResource("2_118wr")
|
|
region = Rect2(20, 100, 20, 20)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_unqc5"]
|
|
atlas = ExtResource("2_118wr")
|
|
region = Rect2(40, 100, 20, 20)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1j6p8"]
|
|
atlas = ExtResource("2_118wr")
|
|
region = Rect2(60, 100, 20, 20)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_tenkj"]
|
|
atlas = ExtResource("2_118wr")
|
|
region = Rect2(0, 100, 20, 20)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_tnw78"]
|
|
atlas = ExtResource("3_kud6c")
|
|
region = Rect2(20, 60, 20, 20)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_25g0x"]
|
|
atlas = ExtResource("3_kud6c")
|
|
region = Rect2(40, 60, 20, 20)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_vstcx"]
|
|
atlas = ExtResource("3_kud6c")
|
|
region = Rect2(60, 60, 20, 20)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_1kmtk"]
|
|
atlas = ExtResource("3_kud6c")
|
|
region = Rect2(0, 60, 20, 20)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_nv51w"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_odfan")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_unqc5")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1j6p8")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Active",
|
|
"speed": 4.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_tenkj")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Idle",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_tnw78")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_25g0x")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_vstcx")
|
|
}],
|
|
"loop": true,
|
|
"name": &"RedActive",
|
|
"speed": 4.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_1kmtk")
|
|
}],
|
|
"loop": true,
|
|
"name": &"RedIdle",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2xrrd"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ly7aa"]
|
|
size = Vector2(10, 10)
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_rd330"]
|
|
radius = 1.0
|
|
|
|
[node name="Cage" type="StaticBody2D" groups=["Cage", "Obsticals"]]
|
|
script = ExtResource("1_4c405")
|
|
|
|
[node name="CageSprite" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_nv51w")
|
|
animation = &"RedIdle"
|
|
|
|
[node name="CageCollision" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("RectangleShape2D_2xrrd")
|
|
|
|
[node name="Probe" type="Area2D" parent="."]
|
|
|
|
[node name="ProbeCollision" type="CollisionShape2D" parent="Probe"]
|
|
shape = SubResource("RectangleShape2D_ly7aa")
|
|
debug_color = Color(0.823529, 0, 0.964706, 0.419608)
|
|
|
|
[node name="Trigger" type="Area2D" parent="." groups=["Cage"]]
|
|
|
|
[node name="TriggerArea" type="CollisionShape2D" parent="Trigger"]
|
|
shape = SubResource("CircleShape2D_rd330")
|
|
debug_color = Color(1, 0.278431, 0, 0.419608)
|
|
|
|
[node name="GhostCaged" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource("4_nqwdl")
|
|
|
|
[connection signal="area_entered" from="Probe" to="." method="_on_probe_area_entered"]
|