[gd_scene load_steps=9 format=3 uid="uid://b2kllwl6juoxs"] [ext_resource type="Script" path="res://scripts/apartment.gd" id="1_apartment"] [ext_resource type="PackedScene" uid="uid://val123456789" path="res://scenes/val.tscn" id="2_val"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_320x240"] size = Vector2(320, 240) [sub_resource type="RectangleShape2D" id="RectangleShape2D_96x48"] size = Vector2(96, 48) [sub_resource type="RectangleShape2D" id="RectangleShape2D_48x80"] size = Vector2(48, 80) [sub_resource type="RectangleShape2D" id="RectangleShape2D_96x64"] size = Vector2(96, 64) [sub_resource type="RectangleShape2D" id="RectangleShape2D_80x64"] size = Vector2(80, 64) [sub_resource type="RectangleShape2D" id="RectangleShape2D_32x32"] size = Vector2(32, 32) [node name="Apartment" type="Node2D"] script = ExtResource("1_apartment") [node name="Floor" type="ColorRect" parent="."] offset_left = 0.0 offset_top = 0.0 offset_right = 1280.0 offset_bottom = 720.0 color = Color(0.9, 0.85, 0.8, 1) [node name="Rooms" type="Node2D" parent="."] [node name="LivingRoom" type="Area2D" parent="Rooms"] position = Vector2(320, 240) metadata/room_name = "客厅" [node name="CollisionShape2D" type="CollisionShape2D" parent="Rooms/LivingRoom"] shape = SubResource("RectangleShape2D_320x240") [node name="RoomLabel" type="Label" parent="Rooms/LivingRoom"] offset_left = -40.0 offset_top = -100.0 offset_right = 40.0 offset_bottom = -80.0 text = "客厅" horizontal_alignment = 1 [node name="Kitchen" type="Area2D" parent="Rooms"] position = Vector2(320, 480) metadata/room_name = "厨房" [node name="CollisionShape2D" type="CollisionShape2D" parent="Rooms/Kitchen"] shape = SubResource("RectangleShape2D_320x240") [node name="RoomLabel" type="Label" parent="Rooms/Kitchen"] offset_left = -40.0 offset_top = -100.0 offset_right = 40.0 offset_bottom = -80.0 text = "厨房" horizontal_alignment = 1 [node name="Bedroom" type="Area2D" parent="Rooms"] position = Vector2(800, 240) metadata/room_name = "卧室" [node name="CollisionShape2D" type="CollisionShape2D" parent="Rooms/Bedroom"] shape = SubResource("RectangleShape2D_320x240") [node name="RoomLabel" type="Label" parent="Rooms/Bedroom"] offset_left = -40.0 offset_top = -100.0 offset_right = 40.0 offset_bottom = -80.0 text = "卧室" horizontal_alignment = 1 [node name="Furniture" type="Node2D" parent="."] [node name="Sofa" type="Area2D" parent="Furniture"] position = Vector2(280, 200) metadata/furniture_name = "沙发" metadata/interaction = "坐" [node name="FurnitureRect" type="ColorRect" parent="Furniture/Sofa"] offset_left = -48.0 offset_top = -24.0 offset_right = 48.0 offset_bottom = 24.0 color = Color(0.55, 0.27, 0.07, 1) [node name="CollisionShape2D" type="CollisionShape2D" parent="Furniture/Sofa"] shape = SubResource("RectangleShape2D_96x48") [node name="FurnitureLabel" type="Label" parent="Furniture/Sofa"] offset_left = -20.0 offset_top = -35.0 offset_right = 20.0 offset_bottom = -15.0 text = "沙发" horizontal_alignment = 1 [node name="Fridge" type="Area2D" parent="Furniture"] position = Vector2(280, 440) metadata/furniture_name = "冰箱" metadata/interaction = "打开" [node name="FurnitureRect" type="ColorRect" parent="Furniture/Fridge"] offset_left = -24.0 offset_top = -40.0 offset_right = 24.0 offset_bottom = 40.0 color = Color(0.9, 0.9, 0.9, 1) [node name="CollisionShape2D" type="CollisionShape2D" parent="Furniture/Fridge"] shape = SubResource("RectangleShape2D_48x80") [node name="FurnitureLabel" type="Label" parent="Furniture/Fridge"] offset_left = -20.0 offset_top = -50.0 offset_right = 20.0 offset_bottom = -30.0 text = "冰箱" horizontal_alignment = 1 [node name="Bed" type="Area2D" parent="Furniture"] position = Vector2(720, 200) metadata/furniture_name = "床" metadata/interaction = "睡觉" [node name="FurnitureRect" type="ColorRect" parent="Furniture/Bed"] offset_left = -48.0 offset_top = -32.0 offset_right = 48.0 offset_bottom = 32.0 color = Color(0.25, 0.41, 0.88, 1) [node name="CollisionShape2D" type="CollisionShape2D" parent="Furniture/Bed"] shape = SubResource("RectangleShape2D_96x64") [node name="FurnitureLabel" type="Label" parent="Furniture/Bed"] offset_left = -20.0 offset_top = -45.0 offset_right = 20.0 offset_bottom = -25.0 text = "床" horizontal_alignment = 1 [node name="Desk" type="Area2D" parent="Furniture"] position = Vector2(880, 200) metadata/furniture_name = "书桌" metadata/interaction = "工作" [node name="FurnitureRect" type="ColorRect" parent="Furniture/Desk"] offset_left = -40.0 offset_top = -32.0 offset_right = 40.0 offset_bottom = 32.0 color = Color(0.55, 0.35, 0.15, 1) [node name="CollisionShape2D" type="CollisionShape2D" parent="Furniture/Desk"] shape = SubResource("RectangleShape2D_80x64") [node name="FurnitureLabel" type="Label" parent="Furniture/Desk"] offset_left = -20.0 offset_top = -45.0 offset_right = 20.0 offset_bottom = -25.0 text = "书桌" horizontal_alignment = 1 [node name="Val" parent="." instance=ExtResource("2_val")] position = Vector2(400, 300) [node name="Navigation" type="NavigationRegion2D" parent="."] polygons = [PackedVector2Array(100, 100, 540, 100, 540, 380, 100, 380), PackedVector2Array(100, 420, 540, 420, 540, 700, 100, 700), PackedVector2Array(580, 100, 1020, 100, 1020, 380, 580, 380)]