This commit is contained in:
2021-08-26 22:44:19 +02:00
parent d240f8123c
commit dafba0648f
2 changed files with 5 additions and 5 deletions

View File

@@ -74,7 +74,7 @@ void Director::init()
} }
// Sección // Sección
mSection.name = PROG_SECTION_GAME; mSection.name = PROG_SECTION_LOGO;
mSection.subsection = 0; mSection.subsection = 0;
// Textos // Textos

View File

@@ -1559,7 +1559,7 @@ std::string Game::updateScoreText(Uint32 num)
// Pinta el marcador en pantalla usando un objeto texto // Pinta el marcador en pantalla usando un objeto texto
void Game::renderScoreBoard() void Game::renderScoreBoard()
{ {
color_t color = {0, 0, 0}; //color_t color = {0, 0, 0};
// Si el jugador esta muerto, no pintes el fondo del marcador, así que pase por encima cuando sale despedido // Si el jugador esta muerto, no pintes el fondo del marcador, así que pase por encima cuando sale despedido
//if (mPlayer[0]->isAlive()) //if (mPlayer[0]->isAlive())
@@ -1595,7 +1595,7 @@ void Game::renderScoreBoard()
const int offset1 = 163; const int offset1 = 163;
const int offset2 = offset1 + 8; const int offset2 = offset1 + 8;
const int offset3 = offset2 + 8; const int offset3 = offset2 + 8;
const int offset4 = offset3 + 8; //const int offset4 = offset3 + 8;
// PLAYER1 - SCORE // PLAYER1 - SCORE
mTextScoreBoard->writeCentered(PLAY_AREA_LEFT + 30, offset1, mTextStrings[53]); mTextScoreBoard->writeCentered(PLAY_AREA_LEFT + 30, offset1, mTextStrings[53]);
mTextScoreBoard->writeCentered(PLAY_AREA_LEFT + 30, offset2, updateScoreText(mPlayer[0]->getScore())); mTextScoreBoard->writeCentered(PLAY_AREA_LEFT + 30, offset2, updateScoreText(mPlayer[0]->getScore()));
@@ -2269,10 +2269,10 @@ void Game::resetItems()
// Devuelve un item en función del azar // Devuelve un item en función del azar
Uint8 Game::dropItem() Uint8 Game::dropItem()
{ {
if (mPlayer[0]->isPowerUp() || (mCoffeeMachineEnabled)) /*if (mPlayer[0]->isPowerUp() || (mCoffeeMachineEnabled))
return NO_KIND; return NO_KIND;
else else
return ITEM_COFFEE_MACHINE; return ITEM_COFFEE_MACHINE;*/
const Uint8 luckyNumber = rand() % 100; const Uint8 luckyNumber = rand() % 100;
const Uint8 item = rand() % 6; const Uint8 item = rand() % 6;