retocat el timing de la seqüencia final
This commit is contained in:
@@ -145,38 +145,14 @@ void Credits::checkInput()
|
||||
// Comprueba si se ha pulsado cualquier botón (de los usados para jugar)
|
||||
if (Input::get()->checkAnyButtonPressed(INPUT_ALLOW_REPEAT))
|
||||
{
|
||||
if (mini_logo_on_position_)
|
||||
{
|
||||
// Si el mini_logo ha llegado a su posición final, al pulsar cualquier tecla se activa el fundido
|
||||
fading_ = true;
|
||||
want_to_pass_ = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Si todavía estan los creditos en marcha, se pasan solos a toda pastilla
|
||||
want_to_pass_ = true;
|
||||
}
|
||||
want_to_pass_ = true;
|
||||
fading_ = mini_logo_on_position_;
|
||||
}
|
||||
else
|
||||
{
|
||||
want_to_pass_ = false;
|
||||
}
|
||||
|
||||
// Comprueba si se pulsa algun boton de disparo para acabar con el minilogo y empezar el fade
|
||||
if (mini_logo_on_position_)
|
||||
{
|
||||
for (int i = 0; i < Input::get()->getNumControllers(); ++i)
|
||||
{
|
||||
// Salir
|
||||
if (Input::get()->checkInput(InputType::FIRE_CENTER, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::CONTROLLER, i) &&
|
||||
Input::get()->checkInput(InputType::FIRE_LEFT, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::CONTROLLER, i) &&
|
||||
Input::get()->checkInput(InputType::FIRE_RIGHT, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::CONTROLLER, i))
|
||||
{
|
||||
fading_ = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Comprueba los inputs que se pueden introducir en cualquier sección del juego
|
||||
globalInputs::check();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user