primera implementació dels estats nous del jugador: playing, continue, waiting
This commit is contained in:
@@ -22,6 +22,8 @@ Scoreboard::Scoreboard(SDL_Renderer *renderer, Screen *screen, Asset *asset, Lan
|
||||
score2 = 0;
|
||||
mult1 = 1;
|
||||
mult2 = 1;
|
||||
continue1 = 0;
|
||||
continue2 = 0;
|
||||
hiScore = 0;
|
||||
power = 0;
|
||||
hiScoreName = "";
|
||||
@@ -159,6 +161,18 @@ void Scoreboard::setMult2(float mult)
|
||||
mult2 = mult;
|
||||
}
|
||||
|
||||
// Establece el valor de la variable
|
||||
void Scoreboard::setContinue1(int value)
|
||||
{
|
||||
continue1 = value;
|
||||
}
|
||||
|
||||
// Establece el valor de la variable
|
||||
void Scoreboard::setContinue2(int value)
|
||||
{
|
||||
continue2 = value;
|
||||
}
|
||||
|
||||
// Establece el valor de la variable
|
||||
void Scoreboard::setStage(int stage)
|
||||
{
|
||||
@@ -269,6 +283,16 @@ void Scoreboard::fillPanelTextures()
|
||||
textScoreBoard->writeCentered(slot4_4.x, slot4_4.y, hiScoreName + updateScoreText(hiScore));
|
||||
break;
|
||||
|
||||
case SCOREBOARD_MODE_CONTINUE:
|
||||
// SCORE
|
||||
textScoreBoard->writeCentered(slot4_1.x, slot4_1.y, lang->getText(53));
|
||||
textScoreBoard->writeCentered(slot4_2.x, slot4_2.y, updateScoreText(score1));
|
||||
|
||||
// CONTINUE
|
||||
textScoreBoard->writeCentered(slot4_3.x, slot4_3.y, "Continuar?");
|
||||
textScoreBoard->writeCentered(slot4_4.x, slot4_4.y, std::to_string(continue1));
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user