forked from jaildesigner-jailgames/jaildoctors_dilemma
Mil arreglos de paletes, gifs i colors transparents
El gif del jugador de game over estava mal
This commit is contained in:
@@ -440,7 +440,7 @@ void Game::renderBlackScreen()
|
||||
{
|
||||
if (black_screen_)
|
||||
{
|
||||
auto const color = static_cast<Uint8>(PaletteColor::BRIGHT_BLACK);
|
||||
auto const color = static_cast<Uint8>(PaletteColor::BLACK);
|
||||
Screen::get()->setRendererSurface();
|
||||
Screen::get()->clearSurface(color);
|
||||
Screen::get()->setBorderColor(color);
|
||||
@@ -451,13 +451,13 @@ void Game::renderBlackScreen()
|
||||
void Game::setScoreBoardColor()
|
||||
{
|
||||
// Obtiene el color del borde
|
||||
const Uint8 colorBorder = room_->getBorderColor();
|
||||
const Uint8 BORDER_COLOR = room_->getBorderColor();
|
||||
|
||||
const bool isBlack = colorBorder == stringToColor("black");
|
||||
const bool isBrightBlack = colorBorder == stringToColor("bright_black");
|
||||
const bool IS_BLACK = BORDER_COLOR == static_cast<Uint8>(PaletteColor::BLACK);
|
||||
const bool IS_BRIGHT_BLACK = BORDER_COLOR == static_cast<Uint8>(PaletteColor::BRIGHT_BLACK);
|
||||
|
||||
// Si el color del borde es negro o negro brillante cambia el texto del marcador a blanco
|
||||
board_->color = isBlack || isBrightBlack ? stringToColor("white") : colorBorder;
|
||||
board_->color = IS_BLACK || IS_BRIGHT_BLACK ? static_cast<Uint8>(PaletteColor::WHITE) : BORDER_COLOR;
|
||||
}
|
||||
|
||||
// Comprueba si ha finalizado el juego
|
||||
|
||||
Reference in New Issue
Block a user