[gd_scene load_steps=20 format=3 uid="uid://bh72njcvmuhfk"] [ext_resource type="Script" path="res://scenes/game/Door/door.gd" id="1_ti3af"] [ext_resource type="Texture2D" uid="uid://f6e5v3hda1wt" path="res://Assets/Door/Door.png" id="2_pj8k7"] [ext_resource type="Texture2D" uid="uid://f6615qeewbpg" path="res://Assets/Icons/OenDoor.png" id="3_lkqj0"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_7nrw6"] size = Vector2(32, 8) [sub_resource type="RectangleShape2D" id="RectangleShape2D_ec8wo"] size = Vector2(16, 16) [sub_resource type="RectangleShape2D" id="RectangleShape2D_gcwtp"] size = Vector2(32, 32) [sub_resource type="AtlasTexture" id="AtlasTexture_xtm5g"] atlas = ExtResource("2_pj8k7") region = Rect2(0, 0, 58, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_lxext"] atlas = ExtResource("2_pj8k7") region = Rect2(58, 0, 58, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_nmsgj"] atlas = ExtResource("2_pj8k7") region = Rect2(116, 0, 58, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_11ufk"] atlas = ExtResource("2_pj8k7") region = Rect2(174, 0, 58, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_yb8el"] atlas = ExtResource("2_pj8k7") region = Rect2(232, 0, 58, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_h56qt"] atlas = ExtResource("2_pj8k7") region = Rect2(290, 0, 58, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_6newm"] atlas = ExtResource("2_pj8k7") region = Rect2(348, 0, 58, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_1r2eb"] atlas = ExtResource("2_pj8k7") region = Rect2(406, 0, 58, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_afbr5"] atlas = ExtResource("2_pj8k7") region = Rect2(464, 0, 58, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_m6qoc"] atlas = ExtResource("2_pj8k7") region = Rect2(522, 0, 58, 16) [sub_resource type="SpriteFrames" id="SpriteFrames_sitog"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_xtm5g") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_lxext") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_nmsgj") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_11ufk") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_yb8el") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_h56qt") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_6newm") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_1r2eb") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_afbr5") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_m6qoc") }], "loop": false, "name": &"open", "speed": 25.0 }] [sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_sqi44"] polygon = PackedVector2Array(-24, -4, 4, -4, 24, -4, 24, 4, -24, 4) [sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_1pn5v"] polygon = PackedVector2Array(-32, -8, -16, -8, -16, 8, -32, 8) [node name="Door" type="StaticBody2D" groups=["Door"]] light_mask = 8 visibility_layer = 8 collision_layer = 12 collision_mask = 512 script = ExtResource("1_ti3af") [node name="CollisionShape" type="CollisionShape2D" parent="."] shape = SubResource("RectangleShape2D_7nrw6") [node name="CollisionShape2" type="CollisionShape2D" parent="."] position = Vector2(24, 0) shape = SubResource("RectangleShape2D_ec8wo") [node name="CollisionShape3" type="CollisionShape2D" parent="."] position = Vector2(-24, 0) shape = SubResource("RectangleShape2D_ec8wo") [node name="InteractionRadius" type="Area2D" parent="." groups=["Door"]] collision_layer = 8 collision_mask = 576 [node name="CollisionShape2D" type="CollisionShape2D" parent="InteractionRadius"] shape = SubResource("RectangleShape2D_gcwtp") [node name="AnimatedSprite" type="AnimatedSprite2D" parent="."] light_mask = 8 visibility_layer = 8 sprite_frames = SubResource("SpriteFrames_sitog") animation = &"open" [node name="LightOccluder" type="LightOccluder2D" parent="."] light_mask = 8 visibility_layer = 8 occluder = SubResource("OccluderPolygon2D_sqi44") occluder_light_mask = 8 [node name="LightOccluder2" type="LightOccluder2D" parent="."] light_mask = 8 visibility_layer = 8 occluder = SubResource("OccluderPolygon2D_1pn5v") occluder_light_mask = 8 [node name="LightOccluder3" type="LightOccluder2D" parent="."] light_mask = 8 visibility_layer = 8 position = Vector2(48, 0) occluder = SubResource("OccluderPolygon2D_1pn5v") occluder_light_mask = 8 [node name="InteractIcon" type="Sprite2D" parent="."] z_index = 5 position = Vector2(4.76837e-07, -6.55651e-07) scale = Vector2(0.5, 0.5) texture = ExtResource("3_lkqj0") [connection signal="area_entered" from="InteractionRadius" to="." method="_on_interaction_radius_area_entered"] [connection signal="area_exited" from="InteractionRadius" to="." method="_on_interaction_radius_area_exited"] [connection signal="body_entered" from="InteractionRadius" to="." method="_on_interaction_radius_body_entered"] [connection signal="body_exited" from="InteractionRadius" to="." method="_on_interaction_radius_body_exited"]