Transició a surface: barallantme amb tots els Color que hi ha pel codi
This commit is contained in:
@@ -40,7 +40,7 @@ Ending::Ending()
|
||||
iniScenes();
|
||||
|
||||
// Cambia el color del borde
|
||||
Screen::get()->setBorderColor(stringToColor(options.video.palette, "black"));
|
||||
Screen::get()->setBorderColor(stringToColor("black"));
|
||||
|
||||
// Crea la textura para cubrir el texto
|
||||
cover_surface_ = createTexture(Screen::get()->getRenderer(), options.game.width, options.game.height + 8);
|
||||
@@ -91,7 +91,7 @@ void Ending::render()
|
||||
Screen::get()->start();
|
||||
|
||||
// Limpia la pantalla
|
||||
Screen::get()->clean(stringToColor(options.video.palette, "yellow"));
|
||||
Screen::get()->clean(stringToColor("yellow"));
|
||||
|
||||
// Dibuja las imagenes de la escena
|
||||
sprite_pics_.at(current_scene_).image_sprite->render();
|
||||
@@ -484,7 +484,7 @@ void Ending::fillCoverTexture()
|
||||
SDL_RenderClear(Screen::get()->getRenderer());
|
||||
|
||||
// Los primeros 8 pixels crea una malla
|
||||
const Color color = stringToColor(options.video.palette, "black");
|
||||
const Uint8 color = stringToColor("black");
|
||||
SDL_SetRenderDrawColor(Screen::get()->getRenderer(), color.r, color.g, color.b, 0xFF);
|
||||
for (int i = 0; i < 256; i += 2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user