adds gamo over credits

This commit is contained in:
2024-10-26 23:57:54 +02:00
parent 068c4c982c
commit dfb121af64
9 changed files with 149 additions and 23 deletions

View File

@@ -108,4 +108,4 @@ func _on_paused():
# Handler managing resume notification from Escoria
func _on_resumed():
show_chooser()
show_chooser()

View File

@@ -41,18 +41,18 @@ __meta__ = {
}
[node name="TextureRect" type="TextureRect" parent="main/main"]
margin_top = 55.0
margin_top = 40.0
margin_right = 616.0
margin_bottom = 355.0
margin_bottom = 340.0
texture = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="buttons" type="VBoxContainer" parent="main/main"]
margin_top = 455.0
margin_top = 440.0
margin_right = 616.0
margin_bottom = 695.0
margin_bottom = 710.0
custom_constants/separation = 10
__meta__ = {
"_edit_use_anchors_": false
@@ -67,14 +67,6 @@ text = "NEW_GAME"
__meta__ = {
"_edit_use_anchors_": false
}
; [node name="new_game_without_intro" type="Button" parent="main/main/buttons"]
; margin_right = 616.0
; margin_bottom = 270.0
; size_flags_vertical = 3
; text = "NEW_GAME (without intro)"
; __meta__ = {
; "_edit_use_anchors_": false
; }
[node name="load_game" type="Button" parent="main/main/buttons"]
margin_top = 160.0
@@ -92,20 +84,17 @@ margin_bottom = 210.0
text = "OPTIONS"
[node name="quit" type="Button" parent="main/main/buttons"]
margin_top = 220.0
margin_top = 250.0
margin_right = 616.0
margin_bottom = 240.0
margin_bottom = 270.0
text = "QUIT"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="back_button_pressed" from="load_game" to="." method="_on_load_game_back_button_pressed"]
[connection signal="back_button_pressed" from="options" to="." method="_on_options_back_button_pressed"]
[connection signal="pressed" from="main/main/buttons/new_game" to="." method="_on_new_game_pressed"]
[connection signal="pressed" from="main/main/buttons/load_game" to="." method="_on_load_game_pressed"]
[connection signal="pressed" from="main/main/buttons/options" to="." method="_on_options_pressed"]
[connection signal="pressed" from="main/main/buttons/quit" to="." method="_on_quit_pressed"]
[connection signal="pressed" from="main/main/buttons/new_game_without_intro" to="." method="_on_new_without_intro_pressed"]

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@@ -0,0 +1,38 @@
[gd_scene load_steps=7 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/rooms/turno_cocina/creditos/scrollingText.gd" type="Script" id=6]
[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, 289.125 )
scale = Vector2( 1.01797, 1 )
texture = ExtResource( 3 )
[node name="scrollingText" parent="." instance=ExtResource( 4 )]
margin_left = 368.0
margin_top = 588.0
margin_right = 933.0
margin_bottom = 1025.0
script = ExtResource( 6 )
[node name="ESCPlayerWithTooltip" parent="." instance=ExtResource( 2 )]
position = Vector2( 219, 557 )
global_id = "player_credits"
player_orients_on_arrival = false
[node name="ESCPlayerWithTooltip2" parent="." instance=ExtResource( 5 )]
position = Vector2( 893, 493 )
is_interactive = false
player_orients_on_arrival = false

View File

@@ -0,0 +1,21 @@
:setup
play_snd res://gymkhana/sounds/intro_menu_loop.ogg _music
accept_input NONE
set_gui_visible false
anim eneko_smoking idle
anim player_credits walk_down
set_global turno_credits_rolling false
:ready
set_global game_over true
transition fade_black in 2.0
say player_credits "No se me ocurre nada que decir."
say eneko_smoking "A mi tampoco."
say eneko_smoking "Fumamos!?"
say player_credits "Me pasas un filttro?"
say eneko_smoking "..."
say eneko_smoking "¡%&@@4!"
say player_credits "Ok"
say player_credits "Lanzamos los creditos?"
say eneko_smoking "Daleee!"
set_global turno_credits_rolling true

View File

@@ -0,0 +1,20 @@
extends VBoxContainer
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
var playing = false
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func play():
playing = true
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if escoria.globals_manager.get_global("turno_credits_rolling"):
self.set_position(self.get_position() + Vector2(0, -1))

View File

@@ -0,0 +1,57 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://gymkhana/logo-small.png" type="Texture" id=1]
[node name="scrollingText" type="VBoxContainer"]
margin_left = 357.0
margin_right = 922.0
margin_bottom = 437.0
[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 = 231.0
margin_right = 565.0
margin_bottom = 437.0
texture = ExtResource( 1 )

View File

@@ -16,4 +16,5 @@ 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
change_scene res://gymkhana/rooms/turno_cocina/creditos/creditos.tscn

View File

@@ -856,7 +856,7 @@ _global_script_class_icons={
"ESCObject": "",
"ESCObjectManager": "",
"ESCPlayer": "res://addons/escoria-core/design/esc_player.svg",
"ESCPlayerWithTooltip": "res://addons/escoria-core/design/esc_player.svg",
"ESCPlayerWithTooltip": "",
"ESCProjectSettingsManager": "",
"ESCResourceCache": "",
"ESCResourceDescriptor": "",
@@ -892,7 +892,7 @@ _global_script_class_icons={
"InventoryAddCommand": "",
"InventoryRemoveCommand": "",
"ItemCountAddCommand": "",
"ItemOutline": "",
"ItemOutline": "res://addons/escoria-core/design/esc_item.svg",
"PlayLibSound": "",
"PlaySndCommand": "",
"PlayVideoCommand": "",
@@ -1040,8 +1040,8 @@ esc_show_debug_prompt={
}
switch_action_verb={
"deadzone": 0.5,
"events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":4,"canceled":false,"pressed":false,"doubleclick":false,"script":null)
, Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":5,"canceled":false,"pressed":false,"doubleclick":false,"script":null)
"events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":4,"pressed":false,"doubleclick":false,"script":null)
, Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":5,"pressed":false,"doubleclick":false,"script":null)
]
}
ui_show_hints={