44 lines
1.7 KiB
Plaintext
44 lines
1.7 KiB
Plaintext
[gd_scene load_steps=6 format=3 uid="uid://12jnkdygpxwc"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://djifxc5x0dyrw" path="res://sprites/ppc_tileset.png" id="1_agxwm"]
|
|
[ext_resource type="Script" uid="uid://dnh0mekg2vqxi" path="res://scripts/components/RequirementComponent.cs" id="2_ed7mh"]
|
|
[ext_resource type="Script" uid="uid://gwr4eajx8j50" path="res://scripts/components/UnlockOnRequirementComponent.cs" id="3_ed7mh"]
|
|
[ext_resource type="Script" uid="uid://c5mhwlyvfuaip" path="res://scripts/components/ExitDoorComponent.cs" id="4_06sog"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yfu6m"]
|
|
size = Vector2(28, 32)
|
|
|
|
[node name="ExitLevel" type="Area2D"]
|
|
collision_layer = 0
|
|
collision_mask = 4
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
position = Vector2(0, -8)
|
|
scale = Vector2(2, 2)
|
|
texture = ExtResource("1_agxwm")
|
|
hframes = 12
|
|
vframes = 12
|
|
frame = 54
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, -8)
|
|
shape = SubResource("RectangleShape2D_yfu6m")
|
|
|
|
[node name="RequirementComponent" type="Node" parent="."]
|
|
script = ExtResource("2_ed7mh")
|
|
RequirementType = 1
|
|
metadata/_custom_type_script = "uid://cmh8k0rdsyh7j"
|
|
|
|
[node name="UnlockOnRequirementComponent" type="Node" parent="." node_paths=PackedStringArray("RequirementComponent", "UnlockTarget")]
|
|
script = ExtResource("3_ed7mh")
|
|
RequirementComponent = NodePath("../RequirementComponent")
|
|
UnlockTarget = NodePath("../ExitDoorComponent")
|
|
metadata/_custom_type_script = "uid://c8xhgkg8gcqu6"
|
|
|
|
[node name="ExitDoorComponent" type="Node" parent="." node_paths=PackedStringArray("ExitArea", "DoorSprite")]
|
|
script = ExtResource("4_06sog")
|
|
ExitArea = NodePath("..")
|
|
DoorSprite = NodePath("../Sprite2D")
|
|
OpenedDoorFrame = 1
|
|
metadata/_custom_type_script = "uid://bwamqffvpa452"
|