adds game over credits (#74)
## Changes - Adds game over credits Reviewed-on: gymkhana/gymkhana#74 Reviewed-by: Eneko Nieto <eneko@eneko.ovh> Co-authored-by: oier <oierbravo@gmail.com> Co-committed-by: oier <oierbravo@gmail.com>
This commit is contained in:
@@ -78,12 +78,14 @@ set_active cocina_delante_puerta_detras true
|
||||
set_global cocina_delante_catando false
|
||||
> [turno_cocina_ingrediente_patatas,turno_cocina_ingrediente_ajo_en_lentejas,turno_cocina_ingrediente_romero]
|
||||
play_video res://gymkhana/videos/turno_cocina/eneko_sale_le_gusta_muchisimo.ogv
|
||||
set_global turno_cocina_eneko_cata_ok true
|
||||
set_active eneko_smoking true
|
||||
set_active turno_cocina_ajo false
|
||||
play_snd res://gymkhana/sounds/music_loop.ogg _music
|
||||
stop
|
||||
> [turno_cocina_ingrediente_patatas,turno_cocina_ingrediente_ajo_en_lentejas]
|
||||
play_video res://gymkhana/videos/turno_cocina/eneko_sale_le_gusta.ogv
|
||||
set_global turno_cocina_eneko_cata_ok true
|
||||
set_active eneko_smoking true
|
||||
set_active turno_cocina_ajo false
|
||||
play_snd res://gymkhana/sounds/music_loop.ogg _music
|
||||
|
||||
@@ -46,10 +46,10 @@ is_movable = true
|
||||
combine_when_selected_action_is_in = [ ]
|
||||
dialog_color = Color( 0.584314, 0.490196, 0.270588, 1 )
|
||||
custom_data = {
|
||||
"tooltips": {
|
||||
"action1": "cocina_delante_eneko_smoking_action1",
|
||||
"action2": "cocina_delante_eneko_smoking_action2"
|
||||
}
|
||||
"tooltips": {
|
||||
"action1": "cocina_delante_eneko_smoking_action1",
|
||||
"action2": "cocina_delante_eneko_smoking_action2"
|
||||
}
|
||||
}
|
||||
action3_target_texts = {
|
||||
"turno_cocina_frontal": "Ofrecer",
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
gymkhana/characters/talking-heads/assets/oier-avatar-talking.png
Normal file
BIN
gymkhana/characters/talking-heads/assets/oier-avatar-talking.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
73
gymkhana/characters/talking-heads/eneko.tscn
Normal file
73
gymkhana/characters/talking-heads/eneko.tscn
Normal file
@@ -0,0 +1,73 @@
|
||||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource path="res://gymkhana/characters/eneko/eneko_smoking_animatios.tres" type="Resource" id=1]
|
||||
[ext_resource path="res://addons/escoria-ui-return-monkey-island/esc_player_with_tooltip.gd" type="Script" id=2]
|
||||
[ext_resource path="res://gymkhana/characters/talking-heads/assets/eneko-avatar-talking.png" type="Texture" id=3]
|
||||
|
||||
[sub_resource type="AtlasTexture" id=2]
|
||||
flags = 4
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 0, 72, 72 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=3]
|
||||
flags = 4
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 0, 72, 72 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=4]
|
||||
flags = 4
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 72, 0, 72, 72 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=1]
|
||||
animations = [ {
|
||||
"frames": [ SubResource( 2 ) ],
|
||||
"loop": true,
|
||||
"name": "idle",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 3 ), SubResource( 4 ) ],
|
||||
"loop": true,
|
||||
"name": "speak",
|
||||
"speed": 5.0
|
||||
} ]
|
||||
|
||||
[sub_resource type="CircleShape2D" id=5]
|
||||
radius = 40.1123
|
||||
|
||||
[node name="ESCPlayerWithTooltip2" type="Area2D"]
|
||||
pause_mode = 1
|
||||
script = ExtResource( 2 )
|
||||
global_id = "eneko_head"
|
||||
is_interactive = false
|
||||
is_movable = true
|
||||
player_orients_on_arrival = false
|
||||
combine_when_selected_action_is_in = [ ]
|
||||
dialog_color = Color( 0, 0.560784, 0.0470588, 1 )
|
||||
custom_data = {
|
||||
"tooltips": {
|
||||
"action1": "cocina_delante_eneko_smoking_action1",
|
||||
"action2": "cocina_delante_eneko_smoking_action2"
|
||||
}
|
||||
}
|
||||
action3_target_texts = {
|
||||
"turno_cocina_frontal": "Ofrecer",
|
||||
"turno_cocina_madera": "Ofrecerle leña"
|
||||
}
|
||||
target_when_selected_action_is_in = [ "action3" ]
|
||||
selectable = true
|
||||
animations = ExtResource( 1 )
|
||||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
position = Vector2( -1, 0 )
|
||||
scale = Vector2( 1.67778, 1.67778 )
|
||||
frames = SubResource( 1 )
|
||||
animation = "speak"
|
||||
flip_h = true
|
||||
|
||||
[node name="dialog_position" type="Position2D" parent="."]
|
||||
position = Vector2( -1, -153 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2( 0, 1 )
|
||||
shape = SubResource( 5 )
|
||||
74
gymkhana/characters/talking-heads/oier.tscn
Normal file
74
gymkhana/characters/talking-heads/oier.tscn
Normal file
@@ -0,0 +1,74 @@
|
||||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource path="res://gymkhana/characters/eneko/eneko_smoking_animatios.tres" type="Resource" id=1]
|
||||
[ext_resource path="res://addons/escoria-ui-return-monkey-island/esc_player_with_tooltip.gd" type="Script" id=2]
|
||||
[ext_resource path="res://gymkhana/characters/talking-heads/assets/oier-avatar-talking.png" type="Texture" id=3]
|
||||
|
||||
[sub_resource type="AtlasTexture" id=2]
|
||||
flags = 4
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 0, 72, 72 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=3]
|
||||
flags = 4
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 0, 0, 72, 72 )
|
||||
|
||||
[sub_resource type="AtlasTexture" id=4]
|
||||
flags = 4
|
||||
atlas = ExtResource( 3 )
|
||||
region = Rect2( 72, 0, 72, 72 )
|
||||
|
||||
[sub_resource type="SpriteFrames" id=1]
|
||||
animations = [ {
|
||||
"frames": [ SubResource( 2 ) ],
|
||||
"loop": true,
|
||||
"name": "idle",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ SubResource( 3 ), SubResource( 4 ) ],
|
||||
"loop": true,
|
||||
"name": "speak",
|
||||
"speed": 5.0
|
||||
} ]
|
||||
|
||||
[sub_resource type="CircleShape2D" id=5]
|
||||
radius = 40.1123
|
||||
|
||||
[node name="ESCPlayerWithTooltip2" type="Area2D"]
|
||||
pause_mode = 1
|
||||
script = ExtResource( 2 )
|
||||
global_id = "oier_head"
|
||||
is_interactive = false
|
||||
is_movable = true
|
||||
player_orients_on_arrival = false
|
||||
combine_when_selected_action_is_in = [ ]
|
||||
dialog_color = Color( 0.584314, 0.490196, 0.270588, 1 )
|
||||
custom_data = {
|
||||
"tooltips": {
|
||||
"action1": "cocina_delante_eneko_smoking_action1",
|
||||
"action2": "cocina_delante_eneko_smoking_action2"
|
||||
}
|
||||
}
|
||||
action3_target_texts = {
|
||||
"turno_cocina_frontal": "Ofrecer",
|
||||
"turno_cocina_madera": "Ofrecerle leña"
|
||||
}
|
||||
target_when_selected_action_is_in = [ "action3" ]
|
||||
selectable = true
|
||||
animations = ExtResource( 1 )
|
||||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
position = Vector2( -1, 0 )
|
||||
scale = Vector2( 1.67778, 1.67778 )
|
||||
frames = SubResource( 1 )
|
||||
animation = "speak"
|
||||
flip_h = true
|
||||
|
||||
[node name="dialog_position" type="Position2D" parent="."]
|
||||
position = Vector2( -1, -153 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2( 0, 1 )
|
||||
shape = SubResource( 5 )
|
||||
@@ -15,10 +15,9 @@ say player "Parece un cuerno de algún animal. Lo usan para llamar a comer."
|
||||
walk_block player puerta_cocina_start
|
||||
set_angle player 180
|
||||
stop_snd
|
||||
> [turno_cocina_ingrediente_patatas,turno_cocina_ingrediente_ajo_en_lentejas]
|
||||
> [turno_cocina_eneko_cata_ok]
|
||||
play_video res://gymkhana/videos/turno_cocina/cuerno_epico.ogv
|
||||
# TODO Credits
|
||||
show_menu main
|
||||
change_scene res://gymkhana/rooms/turno_cocina/creditos/creditos.tscn
|
||||
stop
|
||||
play_video res://gymkhana/videos/turno_cocina/cuerno_antes_de_tiempo.ogv
|
||||
play_snd res://gymkhana/sounds/music_loop.ogg _music
|
||||
|
||||
11
gymkhana/rooms/turno_cocina/creditos/RestartGameButton.gd
Normal file
11
gymkhana/rooms/turno_cocina/creditos/RestartGameButton.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
extends Button
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
self.visible = false
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
if(escoria.globals_manager.get_global("turno_cocina_creditos_return_to_menu_visible")):
|
||||
self.visible = true
|
||||
27
gymkhana/rooms/turno_cocina/creditos/SceneHandler.gd
Normal file
27
gymkhana/rooms/turno_cocina/creditos/SceneHandler.gd
Normal file
@@ -0,0 +1,27 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a = 2
|
||||
# var b = "text"
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta):
|
||||
# pass
|
||||
|
||||
|
||||
func _on_scrollingText_finished():
|
||||
escoria.globals_manager.set_global("turno_cocina_creditos_return_to_menu_visible", true)
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_Button_button_up():
|
||||
escoria.game_scene.show_main_menu()
|
||||
pass # Replace with function body.
|
||||
BIN
gymkhana/rooms/turno_cocina/creditos/assets/background.png
Normal file
BIN
gymkhana/rooms/turno_cocina/creditos/assets/background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
16
gymkhana/rooms/turno_cocina/creditos/creditos.gd
Normal file
16
gymkhana/rooms/turno_cocina/creditos/creditos.gd
Normal file
@@ -0,0 +1,16 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a = 2
|
||||
# var b = "text"
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta):
|
||||
# pass
|
||||
56
gymkhana/rooms/turno_cocina/creditos/creditos.tscn
Normal file
56
gymkhana/rooms/turno_cocina/creditos/creditos.tscn
Normal file
@@ -0,0 +1,56 @@
|
||||
[gd_scene load_steps=9 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/creditos/assets/background.png" type="Texture" id=3]
|
||||
[ext_resource path="res://gymkhana/rooms/turno_cocina/creditos/scrollingText.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://gymkhana/characters/eneko/eneko_smoking.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://gymkhana/logo-small.png" type="Texture" id=6]
|
||||
[ext_resource path="res://gymkhana/rooms/turno_cocina/creditos/SceneHandler.gd" type="Script" id=7]
|
||||
[ext_resource path="res://gymkhana/rooms/turno_cocina/creditos/RestartGameButton.gd" type="Script" id=8]
|
||||
|
||||
[node name="ESCRoom2" type="Node2D"]
|
||||
script = ExtResource( 1 )
|
||||
global_id = "turno_cocina_creditos"
|
||||
esc_script = "res://gymkhana/rooms/turno_cocina/creditos/esc/creditos.esc"
|
||||
player_scene = ExtResource( 2 )
|
||||
camera_limits = [ Rect2( 0, 0, 1280, 577 ) ]
|
||||
editor_debug_mode = 1
|
||||
|
||||
[node name="background" type="Sprite" parent="."]
|
||||
position = Vector2( 644.5, 372.812 )
|
||||
scale = Vector2( 1.01797, 1.29008 )
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="scrollingText" parent="." instance=ExtResource( 4 )]
|
||||
margin_left = 368.0
|
||||
margin_top = 764.0
|
||||
margin_right = 933.0
|
||||
margin_bottom = 1201.0
|
||||
|
||||
[node name="ESCPlayerWithTooltip" parent="." instance=ExtResource( 2 )]
|
||||
position = Vector2( 175, 532 )
|
||||
global_id = "oier_head"
|
||||
|
||||
[node name="ESCPlayerWithTooltip2" parent="." instance=ExtResource( 5 )]
|
||||
position = Vector2( 1093, 480 )
|
||||
global_id = "eneko_head"
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
margin_left = 495.0
|
||||
margin_top = 486.0
|
||||
margin_right = 845.0
|
||||
margin_bottom = 612.0
|
||||
text = "Volver a menu"
|
||||
script = ExtResource( 8 )
|
||||
|
||||
[node name="Logo-small" type="Sprite" parent="Button"]
|
||||
position = Vector2( 176.25, -190.5 )
|
||||
scale = Vector2( 1.01504, 1.00333 )
|
||||
texture = ExtResource( 6 )
|
||||
|
||||
[node name="Node2D" type="Node2D" parent="."]
|
||||
script = ExtResource( 7 )
|
||||
|
||||
[connection signal="finished" from="scrollingText" to="Node2D" method="_on_scrollingText_finished"]
|
||||
[connection signal="button_up" from="Button" to="Node2D" method="_on_Button_button_up"]
|
||||
23
gymkhana/rooms/turno_cocina/creditos/esc/creditos.esc
Normal file
23
gymkhana/rooms/turno_cocina/creditos/esc/creditos.esc
Normal file
@@ -0,0 +1,23 @@
|
||||
:setup
|
||||
play_snd res://gymkhana/sounds/intro_menu_loop.ogg _music
|
||||
accept_input NONE
|
||||
set_gui_visible false
|
||||
set_global turno_cocina_creditos_return_to_menu_evisible false
|
||||
set_interactive eneko_head false
|
||||
transition fade_black out 2.0
|
||||
|
||||
:ready
|
||||
set_gui_visible false
|
||||
set_global game_over true
|
||||
transition fade_black in 2.0
|
||||
|
||||
say oier_head "No se me ocurre nada que decir."
|
||||
say eneko_head "A mi tampoco."
|
||||
say eneko_head "Fumamos!?"
|
||||
say oier_head "Me pasas un filttro?"
|
||||
say eneko_head "..."
|
||||
say eneko_head "¡%&@@4!"
|
||||
say oier_head "Ok"
|
||||
say oier_head "Lanzamos los creditos?"
|
||||
say eneko_head "Daleee!"
|
||||
set_global turno_credits_rolling true
|
||||
14
gymkhana/rooms/turno_cocina/creditos/scrollingText.gd
Normal file
14
gymkhana/rooms/turno_cocina/creditos/scrollingText.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
extends VBoxContainer
|
||||
|
||||
signal finished
|
||||
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
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))
|
||||
if self.get_position().y < 0 - size.y:
|
||||
escoria.globals_manager.set_global("turno_credits_rolling", false)
|
||||
emit_signal("finished")
|
||||
59
gymkhana/rooms/turno_cocina/creditos/scrollingText.tscn
Normal file
59
gymkhana/rooms/turno_cocina/creditos/scrollingText.tscn
Normal file
@@ -0,0 +1,59 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://gymkhana/logo-small.png" type="Texture" id=1]
|
||||
[ext_resource path="res://gymkhana/rooms/turno_cocina/creditos/scrollingText.gd" type="Script" id=2]
|
||||
|
||||
[node name="scrollingText" type="VBoxContainer"]
|
||||
margin_left = 357.0
|
||||
margin_right = 922.0
|
||||
margin_bottom = 437.0
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="LabelContainer" type="HBoxContainer" parent="."]
|
||||
margin_right = 565.0
|
||||
margin_bottom = 133.0
|
||||
|
||||
[node name="margin" type="MarginContainer" parent="LabelContainer"]
|
||||
margin_right = 280.0
|
||||
margin_bottom = 65.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 0
|
||||
|
||||
[node name="Titles" type="Label" parent="LabelContainer/margin"]
|
||||
margin_right = 280.0
|
||||
margin_bottom = 65.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 0
|
||||
text = "Un poco de todo:
|
||||
|
||||
|
||||
Agradecimientos:"
|
||||
align = 2
|
||||
uppercase = true
|
||||
|
||||
[node name="margin2" type="MarginContainer" parent="LabelContainer"]
|
||||
margin_left = 284.0
|
||||
margin_right = 565.0
|
||||
margin_bottom = 133.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 0
|
||||
|
||||
[node name="Names" type="Label" parent="LabelContainer/margin2"]
|
||||
margin_right = 281.0
|
||||
margin_bottom = 133.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 0
|
||||
text = "Eneko
|
||||
Oier
|
||||
|
||||
|
||||
Miette
|
||||
Niko
|
||||
Piko
|
||||
Urtzi"
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="."]
|
||||
margin_top = 137.0
|
||||
margin_right = 565.0
|
||||
margin_bottom = 437.0
|
||||
texture = ExtResource( 1 )
|
||||
@@ -16,4 +16,4 @@ set_global turno_cocina_ingrediente_romero false
|
||||
set_global turno_cocina_libro_leido_count 0
|
||||
set_global turno_cocina_eneko_catando false
|
||||
# Starting scene
|
||||
change_scene res://gymkhana/rooms/turno_cocina/cocina_delante/cocina_delante.tscn
|
||||
change_scene res://gymkhana/rooms/turno_cocina/cocina_delante/cocina_delante.tscn
|
||||
Reference in New Issue
Block a user