param: afegits comentaris a tots els parametres
param: afegit parametre per a establir a partir de quin segon es pot saltar el compte enrere de continuar
This commit is contained in:
@@ -49,7 +49,7 @@ Director::Director(int argc, const char *argv[])
|
||||
Section::name = Section::Name::GAME;
|
||||
Section::options = Section::Options::GAME_PLAY_1P;
|
||||
#elif DEBUG
|
||||
Section::name = Section::Name::GAME;
|
||||
Section::name = Section::Name::LOGO;
|
||||
Section::options = Section::Options::GAME_PLAY_1P;
|
||||
#else // NORMAL GAME
|
||||
Section::name = Section::Name::LOGO;
|
||||
|
||||
@@ -1539,7 +1539,7 @@ void Game::handlePlayerContinue(const std::shared_ptr<Player> &player)
|
||||
input_->checkInput(InputAction::FIRE_CENTER, INPUT_DO_NOT_ALLOW_REPEAT, Options::controllers[controllerIndex].type, Options::controllers[controllerIndex].index) ||
|
||||
input_->checkInput(InputAction::FIRE_RIGHT, INPUT_DO_NOT_ALLOW_REPEAT, Options::controllers[controllerIndex].type, Options::controllers[controllerIndex].index))
|
||||
{
|
||||
if (player->getContinueCounter() < 7)
|
||||
if (player->getContinueCounter() < param.scoreboard.skip_countdown_value)
|
||||
{
|
||||
player->decContinueCounter();
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ void initParam()
|
||||
param.scoreboard.text_autocolor = false;
|
||||
param.scoreboard.text_color1 = Color();
|
||||
param.scoreboard.text_color2 = Color();
|
||||
param.scoreboard.skip_countdown_value = 8;
|
||||
|
||||
// FADE
|
||||
param.fade.num_squares_width = param.game.width / 2;
|
||||
@@ -268,6 +269,11 @@ bool setParams(const std::string &var, const std::string &value)
|
||||
param.scoreboard.text_color2 = Color::fromHex(value);
|
||||
}
|
||||
|
||||
else if (var == "scoreboard.skip_countdown_value")
|
||||
{
|
||||
param.scoreboard.skip_countdown_value = std::stoi(value);
|
||||
}
|
||||
|
||||
// TITLE
|
||||
else if (var == "title.press_start_position")
|
||||
{
|
||||
|
||||
@@ -79,6 +79,7 @@ struct ParamScoreboard
|
||||
bool text_autocolor; // El texto establece su color de forma automatica
|
||||
Color text_color1; // Color del texto
|
||||
Color text_color2; // Color del texto
|
||||
int skip_countdown_value; // Valor a partir del cual se puede saltar la cuenta atras
|
||||
};
|
||||
|
||||
// --- Parámetros del menú de servicio ---
|
||||
|
||||
Reference in New Issue
Block a user