Trabajando en el ending

This commit is contained in:
2022-11-03 12:42:11 +01:00
parent d514ed451f
commit c6779bfd77
4 changed files with 155 additions and 21 deletions

View File

@@ -130,10 +130,9 @@ void Credits::checkEventHandler()
}
}
// Escribe el texto en la textura
void Credits::fillTexture()
// Inicializa los textos
void Credits::iniTexts()
{
// Inicializa los textos
texts.clear();
texts.push_back({"", stringToColor(options->palette, "white")});
texts.push_back({"INSTRUCTIONS:", stringToColor(options->palette, "yellow")});
@@ -162,7 +161,14 @@ void Credits::fillTexture()
texts.push_back({"I LOVE JAILGAMES! ", stringToColor(options->palette, "white")});
texts.push_back({"", stringToColor(options->palette, "white")});
}
// Escribe el texto en la textura
void Credits::fillTexture()
{
// Inicializa los textos
iniTexts();
// Rellena la textura de texto
SDL_SetRenderTarget(renderer, textTexture);
const color_t c = stringToColor(options->palette, "black");