refinaments estétics

This commit is contained in:
2024-07-26 16:16:07 +02:00
parent 0610389745
commit fe361f455a
3 changed files with 17 additions and 23 deletions

View File

@@ -3024,15 +3024,6 @@ void Game::renderMessages()
}
}
// D E M O
if (demo.enabled)
{
if (demo.counter % 30 > 8)
{
textNokiaBig2->writeDX(TXT_CENTER, PLAY_AREA_CENTER_X, PLAY_AREA_FIRST_QUARTER_Y, lang->getText(37), 0, noColor, 2, shdwTxtColor);
}
}
// STAGE NUMBER
if (stageBitmapCounter < STAGE_COUNTER)
{

View File

@@ -215,20 +215,21 @@ void Scoreboard::fillBackgroundTexture()
else if (mode[SCOREBOARD_LEFT_SIDE] == SCOREBOARD_MODE_DEMO)
{
textScoreBoard->writeCentered(offsetScoreP1Label.x, offsetScoreP1Label.y + 4, "Mode demostracio");
if (counter % 10 < 8)
{
textScoreBoard->writeCentered(offsetScoreP1Label.x, offsetScoreP1Label.y+4, "Mode DEMO");
textScoreBoard->writeCentered(offsetMultP1Label.x, offsetMultP1Label.y-2, "Pulsa START");
textScoreBoard->writeCentered(offsetMultP1.x, offsetMultP1.y-2, "per jugar");
textScoreBoard->writeCentered(offsetMultP1Label.x, offsetMultP1Label.y - 2, "Pulsa START");
textScoreBoard->writeCentered(offsetMultP1.x, offsetMultP1.y - 2, "per jugar");
}
}
else if (mode[SCOREBOARD_LEFT_SIDE] == SCOREBOARD_MODE_GAME_OVER)
{
textScoreBoard->writeCentered(offsetScoreP1Label.x, offsetScoreP1Label.y + 4, "Game Over");
if (counter % 10 < 8)
{
textScoreBoard->writeCentered(offsetScoreP1Label.x, offsetScoreP1Label.y+4, "Game Over");
textScoreBoard->writeCentered(offsetMultP1Label.x, offsetMultP1Label.y-2, "Pulsa START");
textScoreBoard->writeCentered(offsetMultP1.x, offsetMultP1.y-2, "per jugar");
textScoreBoard->writeCentered(offsetMultP1Label.x, offsetMultP1Label.y - 2, "Pulsa START");
textScoreBoard->writeCentered(offsetMultP1.x, offsetMultP1.y - 2, "per jugar");
}
}
@@ -245,20 +246,21 @@ void Scoreboard::fillBackgroundTexture()
else if (mode[SCOREBOARD_RIGHT_SIDE] == SCOREBOARD_MODE_DEMO)
{
textScoreBoard->writeCentered(offsetScoreP2Label.x, offsetScoreP2Label.y + 4, "Mode demostracio");
if (counter % 10 < 8)
{
textScoreBoard->writeCentered(offsetScoreP2Label.x, offsetScoreP2Label.y+4, "Mode DEMO");
textScoreBoard->writeCentered(offsetMultP2Label.x, offsetMultP2Label.y-2, "Pulsa START");
textScoreBoard->writeCentered(offsetMultP2.x, offsetMultP2.y-2, "per jugar");
textScoreBoard->writeCentered(offsetMultP2Label.x, offsetMultP2Label.y - 2, "Pulsa START");
textScoreBoard->writeCentered(offsetMultP2.x, offsetMultP2.y - 2, "per jugar");
}
}
else if (mode[SCOREBOARD_RIGHT_SIDE] == SCOREBOARD_MODE_GAME_OVER)
{
textScoreBoard->writeCentered(offsetScoreP2Label.x, offsetScoreP2Label.y + 4, "Game Over");
if (counter % 10 < 8)
{
textScoreBoard->writeCentered(offsetScoreP2Label.x, offsetScoreP2Label.y+4, "Game Over");
textScoreBoard->writeCentered(offsetMultP2Label.x, offsetMultP2Label.y-2, "Pulsa START");
textScoreBoard->writeCentered(offsetMultP2.x, offsetMultP2.y-2, "per jugar");
textScoreBoard->writeCentered(offsetMultP2Label.x, offsetMultP2Label.y - 2, "Pulsa START");
textScoreBoard->writeCentered(offsetMultP2.x, offsetMultP2.y - 2, "per jugar");
}
}

View File

@@ -181,10 +181,11 @@ void Title::render()
if (section->subsection == SUBSECTION_TITLE_2)
{
const color_t shadow = {0x14, 0x87, 0xc4};
// 'PULSA 1P o 2P PARA JUGAR'
if (counter % 50 > 14 && !defineButtons->isEnabled())
{
text1->writeDX(TXT_CENTER | TXT_SHADOW, GAMECANVAS_CENTER_X, param->pressStart, lang->getText(23), 1, noColor, 1, shdwTxtColor);
text1->writeDX(TXT_CENTER | TXT_SHADOW, GAMECANVAS_CENTER_X, param->pressStart, lang->getText(23), 1, noColor, 1, shadow);
}
// Mini logo
@@ -194,7 +195,7 @@ void Title::render()
miniLogoSprite->render();
// Texto con el copyright
text1->writeDX(TXT_CENTER | TXT_SHADOW, GAMECANVAS_CENTER_X, pos2, TEXT_COPYRIGHT, 1, noColor, 1, shdwTxtColor);
text1->writeDX(TXT_CENTER | TXT_SHADOW, GAMECANVAS_CENTER_X, pos2, TEXT_COPYRIGHT, 1, noColor, 1, shadow);
}
defineButtons->render();