[gd_scene load_steps=13 format=2]

[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_room.gd" type="Script" id=1]
[ext_resource path="res://gymkhana/characters/oier/oier.tscn" type="PackedScene" id=2]
[ext_resource path="res://gymkhana/rooms/turno_cocina/cocina/assets/background.png" type="Texture" id=3]
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_terrain.gd" type="Script" id=4]
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_location.gd" type="Script" id=5]
[ext_resource path="res://gymkhana/addons/escoria-ui-return-monkey-island/esc_item_with_tooltip.gd" type="Script" id=6]
[ext_resource path="res://gymkhana/rooms/turno_cocina/cocina/assets/depth.png" type="Texture" id=7]
[ext_resource path="res://gymkhana/rooms/turno_cocina/cocina/assets/foreground-mesa.png" type="Texture" id=8]
[ext_resource path="res://gymkhana/rooms/turno_cocina/cocina/assets/foreground-silla.png" type="Texture" id=9]
[ext_resource path="res://gymkhana/items/inventory/turno_cocina_peso.tscn" type="PackedScene" id=10]
[ext_resource path="res://gymkhana/items/inventory/turno_cocina_bol.tscn" type="PackedScene" id=11]

[sub_resource type="NavigationPolygon" id=3]
vertices = PoolVector2Array( 2398, 485, 2442, 499, 2446, 617, 2409, 597, 2283, 493, 144, 568, 3, 570, -56, 524, 111, 445, 162, 471, 229, 445, 200, 465, 252, 478, 305, 524, 273, 570, 2287, 687, 2062, 635, 2113, 565, 696, 737, 512, 591, 703, 699, 1269, 739, 1241, 699, 1502, 646, 1409, 752, 1345, 667, 1489, 627, 1347, 563, 1480, 587, 1466, 514, 1345, 505, 1382, 439, 2109, 424, 2238, 386, 1788, 325, 2018, 419, 1787, 383, 1466, 412, 1493, 479, 1305.5, 467, 1337.5, 449, 1306.5, 498 )
polygons = [ PoolIntArray( 0, 1, 2, 3, 4 ), PoolIntArray( 5, 6, 7, 8, 9 ), PoolIntArray( 9, 8, 10, 11 ), PoolIntArray( 12, 11, 10 ), PoolIntArray( 12, 10, 13 ), PoolIntArray( 14, 12, 13 ), PoolIntArray( 15, 16, 17, 4, 3 ), PoolIntArray( 18, 14, 13, 19, 20 ), PoolIntArray( 21, 18, 20, 22 ), PoolIntArray( 23, 24, 21, 22, 25, 26 ), PoolIntArray( 26, 25, 27, 28 ), PoolIntArray( 29, 28, 27, 30, 31 ), PoolIntArray( 4, 17, 32, 33 ), PoolIntArray( 34, 33, 32, 35, 36 ), PoolIntArray( 37, 34, 36, 38, 31 ), PoolIntArray( 31, 38, 29 ), PoolIntArray( 39, 40, 31, 30, 41 ) ]
outlines = [ PoolVector2Array( 1347, 563, 1345, 505, 1306.5, 498, 1305.5, 467, 1337.5, 449, 1382, 439, 1466, 412, 1788, 325, 2238, 386, 2283, 493, 2398, 485, 2442, 499, 2446, 617, 2409, 597, 2287, 687, 2062, 635, 2113, 565, 2109, 424, 2018, 419, 1787, 383, 1493, 479, 1466, 514, 1480, 587, 1489, 627, 1502, 646, 1409, 752, 1269, 739, 696, 737, 273, 570, 252, 478, 200, 465, 162, 471, 144, 568, 3, 570, -56, 524, 111, 445, 229, 445, 305, 524, 512, 591, 703, 699, 1241, 699, 1345, 667 ) ]

[node name="ESCRoom" type="Node2D"]
script = ExtResource( 1 )
global_id = "cocina"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/cocina.esc"
player_scene = ExtResource( 2 )
camera_limits = [ Rect2( 0, 0, 2925, 577 ) ]
editor_debug_mode = 1

[node name="background" type="Sprite" parent="."]
position = Vector2( 1462.5, 289 )
texture = ExtResource( 3 )

[node name="ESCTerrain" type="Navigation2D" parent="."]
position = Vector2( 302.5, 0 )
script = ExtResource( 4 )
scales = ExtResource( 7 )
scale_max = 1.4
player_speed_multiplier = 1.2
player_doubleclick_speed_multiplier = 2.0

[node name="Foreground-mesa" type="Sprite" parent="ESCTerrain"]
position = Vector2( 1786, 424 )
z_index = 4096
texture = ExtResource( 8 )

[node name="NavigationPolygonInstance" type="NavigationPolygonInstance" parent="ESCTerrain"]
navpoly = SubResource( 3 )

[node name="Foreground-silla" type="Sprite" parent="ESCTerrain/NavigationPolygonInstance"]
position = Vector2( 202, 499 )
z_index = 4096
texture = ExtResource( 9 )

[node name="puerta_detras" type="Area2D" parent="."]
pause_mode = 1
position = Vector2( 302.5, 0 )
script = ExtResource( 6 )
global_id = "cocina_puerta_detras"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/puerta_detras.esc"
is_exit = true
combine_when_selected_action_is_in = [  ]
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Ir detrás"
animations = null

[node name="puerta_detras_collision" type="CollisionPolygon2D" parent="puerta_detras"]
position = Vector2( 1710, -167 )
scale = Vector2( 0.963362, 0.9875 )
polygon = PoolVector2Array( 30.1029, 490.127, 25.9508, 330.127, 78.8904, 318.987, 127.678, 327.089, 130.792, 486.076 )

[node name="puerta_detras_start" type="Position2D" parent="puerta_detras"]
position = Vector2( 1791, 370 )
script = ExtResource( 5 )
global_id = "puerta_detras_start"

[node name="puerta_delante" type="Area2D" parent="."]
pause_mode = 1
position = Vector2( 302.5, 0 )
script = ExtResource( 6 )
global_id = "cocina_puerta_delante"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/puerta_delante.esc"
is_exit = true
combine_when_selected_action_is_in = [  ]
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Salir de la cocina"
animations = null

[node name="puerta_delante_collision" type="CollisionPolygon2D" parent="puerta_delante"]
position = Vector2( 2385, -81 )
scale = Vector2( 0.963362, 0.9875 )
polygon = PoolVector2Array( 9.34229, 531.646, 10.3804, 161.013, 124.564, 97.2152, 107.955, 583.291 )

[node name="puerta_delante_start" type="Position2D" parent="puerta_delante"]
position = Vector2( 2379, 526 )
script = ExtResource( 5 )
global_id = "puerta_delante_start"

[node name="turno_cocina_peso" parent="." instance=ExtResource( 10 )]
position = Vector2( 2505, 160 )
scale = Vector2( 0.880435, 0.88735 )

[node name="turno_cocina_peso_collision" type="CollisionPolygon2D" parent="turno_cocina_peso"]
position = Vector2( 15.9014, -11.2695 )
polygon = PoolVector2Array( -5.6792, 1.12694, -4.54321, 21.412, -25, 22, -24.9878, 1.12694 )

[node name="turno_cocina_peso_location" type="Position2D" parent="turno_cocina_peso"]
position = Vector2( -3.40724, 268.214 )
script = ExtResource( 5 )

[node name="turno_cocina_bol" parent="." instance=ExtResource( 11 )]
position = Vector2( 1505, 160 )
scale = Vector2( 0.880435, 0.88735 )

[node name="turno_cocina_bol_collision" type="CollisionPolygon2D" parent="turno_cocina_bol"]
position = Vector2( 169.235, 210.74 )
polygon = PoolVector2Array( -7.95056, -30.4277, -4.54321, 21.412, -56.79, 37.1894, -73.827, -13.5234 )

[node name="turno_cocina_bol_location" type="Position2D" parent="turno_cocina_bol"]
position = Vector2( 198.765, 339.212 )
script = ExtResource( 5 )

[node name="fregadero_der" type="Area2D" parent="."]
pause_mode = 1
script = ExtResource( 6 )
global_id = "cocina_fregadero_der"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/fregadero_der.esc"
combine_when_selected_action_is_in = [  ]
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Mirar fregadero"
action2_text = "Usar"
action3_target_texts = {
"turno_cocina_bol": "Llenar el bol de agua",
"turno_cocina_bol_lentejas": "Llenar el bol de agua"
}
target_when_selected_action_is_in = [ "action3" ]
animations = null

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="fregadero_der"]
polygon = PoolVector2Array( 2327, 294, 2395, 296, 2401, 290, 2367, 286, 2365, 260, 2362, 259, 2362, 278, 2356, 286, 2334, 286 )

[node name="fregadero_izq" type="Area2D" parent="."]
pause_mode = 1
script = ExtResource( 6 )
global_id = "cocina_fregadero_izq"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/fregadero_izq.esc"
combine_when_selected_action_is_in = [  ]
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Mirar fregadero"
action2_text = "Usar"
action3_target_texts = {
"turno_cocina_bol": "Llenar el bol de agua",
"turno_cocina_bol_lentejas": "Llenar el bol de agua"
}
target_when_selected_action_is_in = [ "action3" ]
animations = null

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="fregadero_izq"]
polygon = PoolVector2Array( 1800, 276, 1804, 280, 1895, 273, 1883, 266, 1863, 267, 1839, 268, 1835, 264, 1835, 259, 1838, 254, 1848, 248, 1854, 252, 1858, 252, 1856, 246, 1851, 244, 1843, 247, 1836, 251, 1831, 258, 1830, 263, 1828, 265, 1826, 264, 1823, 265, 1822, 269, 1824, 270, 1822, 272, 1809, 272, 1798, 273 )

[node name="debajo_sofa" type="Area2D" parent="."]
pause_mode = 1
script = ExtResource( 6 )
global_id = "cocina_debajo_sofa"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina/esc/debajo_sofa.esc"
combine_when_selected_action_is_in = [ "action4" ]
dialog_color = Color( 1, 1, 1, 1 )
action1_text = "Mirar debajo del sofa"
action2_text = "Meter la mano"
action3_target_texts = {
"turno_cocina_frontal": "Mirar denajo del sofa"
}
target_when_selected_action_is_in = [ "action3" ]
animations = null

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="debajo_sofa"]
polygon = PoolVector2Array( 484, 406, 485, 421, 556, 423, 551, 415, 550, 409, 551, 406 )

[node name="ESCLocation" type="Position2D" parent="debajo_sofa"]
position = Vector2( 420, 494 )
script = ExtResource( 5 )
