forked from jaildesigner-jailgames/jaildoctors_dilemma
Commit de antes de cambiar experimentalmente muchas cosas
This commit is contained in:
@@ -1704,6 +1704,7 @@ bool Director::setFileList()
|
||||
asset->add(prefix + "/data/title/loading_screen_bn_zxarne.png", t_bitmap);
|
||||
asset->add(prefix + "/data/title/loading_screen_color_zxarne.png", t_bitmap);
|
||||
asset->add(prefix + "/data/title/loading_screen_color.gif", t_bitmap);
|
||||
asset->add(prefix + "/data/title/title_logo.png", t_bitmap);
|
||||
|
||||
// Ending
|
||||
asset->add(prefix + "/data/ending/ending1.png", t_bitmap);
|
||||
|
||||
@@ -324,29 +324,8 @@ void Title::render()
|
||||
// Prepara para empezar a dibujar en la textura de juego
|
||||
screen->start();
|
||||
|
||||
switch (state)
|
||||
if (state == show_menu)
|
||||
{
|
||||
case show_loading_screen:
|
||||
// Dibuja la textura de fondo
|
||||
SDL_RenderCopy(renderer, bgTexture, nullptr, nullptr);
|
||||
|
||||
// Dibuja la pantalla de carga
|
||||
pCls(4);
|
||||
pBlit(0, 0, 0, 0, 256, 128);
|
||||
pFlip(renderer);
|
||||
break;
|
||||
|
||||
case fade_loading_screen:
|
||||
// Dibuja la textura de fondo
|
||||
SDL_RenderCopy(renderer, bgTexture, nullptr, nullptr);
|
||||
|
||||
// Dibuja la pantalla de carga
|
||||
pCls(4);
|
||||
pBlit(0, 0, 0, 0, 256, 128);
|
||||
pFlip(renderer);
|
||||
break;
|
||||
|
||||
case show_menu:
|
||||
// Dibuja la textura de fondo
|
||||
SDL_RenderCopy(renderer, bgTexture, nullptr, nullptr);
|
||||
|
||||
@@ -358,10 +337,17 @@ void Title::render()
|
||||
{
|
||||
cheevosSprite->render();
|
||||
}
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Dibuja la pantalla de carga
|
||||
pCls(4);
|
||||
pBlit(0, 0, 0, 0, 256, 128);
|
||||
pFlip(renderer);
|
||||
|
||||
default:
|
||||
break;
|
||||
// Dibuja el logo del título
|
||||
SDL_Rect dstRect = {0, 0, 256, 80};
|
||||
SDL_RenderCopy(renderer, titleLogo, nullptr, &dstRect);
|
||||
}
|
||||
|
||||
// Vuelca el contenido del renderizador en pantalla
|
||||
|
||||
@@ -46,6 +46,7 @@ private:
|
||||
SDL_Event *eventHandler; // Manejador de eventos
|
||||
Texture *texture; // Textura con los graficos
|
||||
Sprite *sprite; // Sprite para manejar la textura
|
||||
Texture *titleLogo; // Textura con el logo del título del juego
|
||||
SDL_Texture *bgTexture; // Textura para dibujar el fondo de la pantalla
|
||||
Text *text; // Objeto para escribir texto en pantalla
|
||||
Text *infoText; // Objeto para escribir texto en pantalla
|
||||
|
||||
Reference in New Issue
Block a user