feat(cocina_detras): parece que veo a Mikel, closes #83

This commit is contained in:
2024-11-03 00:21:12 +01:00
parent 2bf4e069c3
commit 27badc4b67
8 changed files with 50 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
extends Node
func _process(delta: float):
func _process(_delta: float):
if(escoria.globals_manager.get_global("turno_cocina_economica_encendida") == true):
self.visible = true
else:

View File

@@ -53,3 +53,9 @@ set_active turno_cocina_olla_llena false [!turno_cocina_economica_con_olla]
say player "No se me ocurre ningún plato, debería buscar un libro de recetas."
say player "Si mantienes MAYÚSCULAS pulsado los objetos con los que puedes interactuar aparecerán marcados."
accept_input ALL
> [turno_cocina_mikel_playing]
# walk_block player new_game_start_location
# set_angle player 180
say player "Ya no está, que raro..."
accept_input ALL
set_global turno_cocina_mikel_playing false

View File

@@ -58,11 +58,10 @@ global_id = "cocina_detras_puerta_cocina"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina_detras/esc/puerta_cocina.esc"
is_exit = true
combine_when_selected_action_is_in = [ ]
dialog_color = Color( 1, 1, 1, 1 )
custom_data = {
"tooltips": {
"action1": "Entrar en la cocina"
}
"tooltips": {
"action1": "Entrar en la cocina"
}
}
animations = null
@@ -71,10 +70,10 @@ position = Vector2( 630, -130 )
scale = Vector2( 0.963362, 0.9875 )
polygon = PoolVector2Array( 117.298, 581.266, 120.412, 341.266, 169.199, 325.063, 236.671, 333.165, 236.671, 588.354 )
[node name="puerta_cocina_start" type="Position2D" parent="puerta_cocina"]
[node name="cocina_detras_puerta_cocina_start" type="Position2D" parent="puerta_cocina"]
position = Vector2( 793, 465 )
script = ExtResource( 5 )
global_id = "puerta_cocina_start"
global_id = "cocina_detras_puerta_cocina_start"
[node name="puerta_delante" type="Area2D" parent="."]
pause_mode = 1
@@ -83,11 +82,10 @@ global_id = "cocina_detras_puerta_delante"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina_detras/esc/puerta_delante.esc"
is_exit = true
combine_when_selected_action_is_in = [ ]
dialog_color = Color( 1, 1, 1, 1 )
custom_data = {
"tooltips": {
"action1": "Ir delante"
}
"tooltips": {
"action1": "Ir delante"
}
}
animations = null
@@ -129,8 +127,29 @@ position = Vector2( 61, 341 )
[node name="ESCLocation" type="Position2D" parent="turno_cocina_romero"]
position = Vector2( 89, 60 )
script = ExtResource( 5 )
interaction_direction = 6
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="turno_cocina_romero"]
position = Vector2( -61, -341 )
polygon = PoolVector2Array( 75, 413, 96, 398, 97, 366, 88, 270, 12, 276, 33, 434 )
[node name="mikel" type="Area2D" parent="."]
pause_mode = 1
script = ExtResource( 6 )
global_id = "cocina_detras_mikel"
esc_script = "res://gymkhana/rooms/turno_cocina/cocina_detras/esc/mikel.esc"
combine_when_selected_action_is_in = [ ]
custom_data = {
"tooltips": {
"action1": "Mirar"
}
}
animations = null
[node name="mikel_collision" type="CollisionPolygon2D" parent="mikel"]
position = Vector2( 751, -159 )
scale = Vector2( 0.963362, 0.9875 )
polygon = PoolVector2Array( 129.754, 469.873, 129.754, 371.646, 140.134, 369.62, 183.732, 381.772, 184.77, 471.899 )
[node name="mikel_location" type="Position2D" parent="mikel"]
position = Vector2( 857, 491 )
script = ExtResource( 5 )

View File

@@ -3,5 +3,5 @@
teleport player puerta_delante_start
set_angle player 180
stop
teleport player puerta_cocina_start
teleport player cocina_detras_puerta_cocina_start
set_angle player 180

View File

@@ -0,0 +1,6 @@
:action1
accept_input SKIP
set_global turno_cocina_mikel_playing true
say player "Parece que veo a mikel, voy a saludarle!"
walk_block player cocina_detras_puerta_cocina_start
queue_event cocina_detras_puerta_cocina open

View File

@@ -1,3 +1,7 @@
:action1
play_lib_snd puerta_cocina_detras
change_scene "res://gymkhana/rooms/turno_cocina/cocina/cocina.tscn"
:open
play_lib_snd puerta_cocina_detras
change_scene "res://gymkhana/rooms/turno_cocina/cocina/cocina.tscn"

View File

@@ -6,6 +6,6 @@ func _ready():
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
func _process(_delta):
if(escoria.globals_manager.get_global("turno_cocina_creditos_return_to_menu_visible")):
self.visible = true

View File

@@ -5,7 +5,7 @@ signal finished
func _ready():
pass # Replace with function body.
func _process(delta):
func _process(_delta):
var size = self.get_global_rect().size
if escoria.globals_manager.get_global("turno_credits_rolling"):
self.set_position(self.get_position() + Vector2(0, -1))