canviats els núvols per els del Volcano
This commit is contained in:
@@ -26,13 +26,6 @@ Title::Title(SDL_Renderer *renderer, Screen *screen, Input *input, Asset *asset,
|
||||
miniLogoTexture = new Texture(renderer, asset->get("logo_jailgames_mini.png"));
|
||||
miniLogoSprite = new Sprite(GAMECANVAS_CENTER_X - miniLogoTexture->getWidth() / 2, 0, miniLogoTexture->getWidth(), miniLogoTexture->getHeight(), miniLogoTexture, renderer);
|
||||
|
||||
background = new Background(renderer, screen, asset, param);
|
||||
background->setSrcDest(windowArea);
|
||||
background->setDstDest(windowArea);
|
||||
background->setCloudsSpeed(-0.5f);
|
||||
background->setGradientNumber(1);
|
||||
background->setTransition(0.8f);
|
||||
|
||||
tiledbg = new Tiledbg(renderer, screen, asset, {0, 0, param->gameWidth, param->gameHeight}, TILED_MODE_RANDOM);
|
||||
|
||||
gameLogo = new GameLogo(renderer, screen, asset, param, GAMECANVAS_CENTER_X, param->titleCC);
|
||||
@@ -54,11 +47,9 @@ Title::~Title()
|
||||
delete text1;
|
||||
delete text2;
|
||||
|
||||
miniLogoTexture->unload();
|
||||
delete miniLogoTexture;
|
||||
delete miniLogoSprite;
|
||||
|
||||
delete background;
|
||||
delete tiledbg;
|
||||
delete gameLogo;
|
||||
delete defineButtons;
|
||||
@@ -90,9 +81,6 @@ void Title::update()
|
||||
// Actualiza el contador de ticks
|
||||
ticks = SDL_GetTicks();
|
||||
|
||||
// Actualiza el objeto 'background'
|
||||
background->update();
|
||||
|
||||
// Actualiza el objeto 'defineButtons'
|
||||
defineButtons->update();
|
||||
|
||||
@@ -174,7 +162,6 @@ void Title::render()
|
||||
|
||||
// Dibuja el mosacico de fondo
|
||||
tiledbg->render();
|
||||
// background->render();
|
||||
|
||||
// Dibuja el logo con el título del juego
|
||||
gameLogo->render();
|
||||
@@ -198,6 +185,7 @@ void Title::render()
|
||||
text1->writeDX(TXT_CENTER | TXT_SHADOW, GAMECANVAS_CENTER_X, pos2, TEXT_COPYRIGHT, 1, noColor, 1, shadow);
|
||||
}
|
||||
|
||||
// Define Buttons
|
||||
defineButtons->render();
|
||||
|
||||
// Fade
|
||||
@@ -253,12 +241,15 @@ void Title::checkInput()
|
||||
const int index = input->checkAnyButtonPressed();
|
||||
if (index)
|
||||
{
|
||||
fade->activate();
|
||||
postFade = index;
|
||||
if (section->subsection == SUBSECTION_TITLE_2)
|
||||
{// No se puede empezar a jugar durante la animación del titulo
|
||||
fade->activate();
|
||||
postFade = index;
|
||||
}
|
||||
}
|
||||
|
||||
// Comprueba el teclado para salir
|
||||
if (input->checkInput(input_exit, DO_NOT_ALLOW_REPEAT, INPUT_USE_KEYBOARD))
|
||||
if (input->checkInput(input_exit, DO_NOT_ALLOW_REPEAT, INPUT_USE_KEYBOARD))
|
||||
{
|
||||
section->name = SECTION_PROG_QUIT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user