Transició a surface acabada. Ja compila

This commit is contained in:
2025-03-04 12:30:19 +01:00
parent c4033e3663
commit 05f91b2a94
31 changed files with 376 additions and 1078 deletions

View File

@@ -201,6 +201,7 @@ void Game::updateDebugInfo()
// Pone la información de debug en pantalla
void Game::renderDebugInfo()
{
/*
if (!Debug::get()->getEnabled())
{
return;
@@ -225,6 +226,7 @@ void Game::renderDebugInfo()
// Pinta el texto
Debug::get()->setPos({1, 18 * 8});
Debug::get()->render();
*/
}
// Comprueba los eventos
@@ -446,7 +448,7 @@ void Game::renderBlackScreen()
{
if (black_screen_)
{
Screen::get()->clean();
Screen::get()->clear();
Screen::get()->setBorderColor(stringToColor("black"));
}
}
@@ -457,8 +459,8 @@ void Game::setScoreBoardColor()
// Obtiene el color del borde
const Uint8 colorBorder = room_->getBorderColor();
const bool isBlack = colorBorder, stringToColor("black");
const bool isBrightBlack = colorBorder, stringToColor("bright_black");
const bool isBlack = colorBorder == stringToColor("black");
const bool isBrightBlack = colorBorder == stringToColor("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;
@@ -563,7 +565,7 @@ void Game::fillRoomNameTexture()
Screen::get()->setRenderSurfaceData(room_name_surface_);
// Rellena la textura de color
Screen::get()->clean(stringToColor("white"));
Screen::get()->clear(stringToColor("white"));
// Escribe el texto en la textura
auto text = Resource::get()->getText("smb2");