Actualizadas las librerias comunes
This commit is contained in:
@@ -186,8 +186,8 @@ void Title::init()
|
||||
// Coloca la ventana que recorre el mosaico de fondo de manera que coincida con el mosaico que hay pintado en el titulo al iniciar
|
||||
backgroundWindow.x = 128;
|
||||
backgroundWindow.y = 96;
|
||||
backgroundWindow.w = GAME_WIDTH;
|
||||
backgroundWindow.h = GAME_HEIGHT;
|
||||
backgroundWindow.w = GAMECANVAS_WIDTH;
|
||||
backgroundWindow.h = GAMECANVAS_HEIGHT;
|
||||
|
||||
// Inicializa los valores del vector con los valores del seno
|
||||
for (int i = 0; i < 360; ++i)
|
||||
@@ -623,7 +623,7 @@ void Title::render()
|
||||
crisisBitmap->render();
|
||||
|
||||
// Texto con el copyright y versión
|
||||
text2->writeDX(TXT_CENTER | TXT_SHADOW, SCREEN_CENTER_X, GAME_HEIGHT - (BLOCK * 2), TEXT_COPYRIGHT, 1, noColor, 1, shdwTxtColor);
|
||||
text2->writeDX(TXT_CENTER | TXT_SHADOW, GAMECANVAS_CENTER_X, GAMECANVAS_HEIGHT - (BLOCK * 2), TEXT_COPYRIGHT, 1, noColor, 1, shdwTxtColor);
|
||||
}
|
||||
|
||||
if (menuVisible == true)
|
||||
@@ -637,7 +637,7 @@ void Title::render()
|
||||
// PRESS ANY KEY!
|
||||
if ((counter % 50 > 14) && (menuVisible == false))
|
||||
{
|
||||
text1->writeDX(TXT_CENTER | TXT_SHADOW, SCREEN_CENTER_X, PLAY_AREA_THIRD_QUARTER_Y + BLOCK, lang->getText(23), 1, noColor, 1, shdwTxtColor);
|
||||
text1->writeDX(TXT_CENTER | TXT_SHADOW, GAMECANVAS_CENTER_X, PLAY_AREA_THIRD_QUARTER_Y + BLOCK, lang->getText(23), 1, noColor, 1, shdwTxtColor);
|
||||
}
|
||||
|
||||
// Fade
|
||||
@@ -919,8 +919,8 @@ void Title::updateMenuLabels()
|
||||
menu.options->setItemCaption(i, lang->getText(10)); // CANCEL
|
||||
|
||||
// Recoloca el menu de opciones
|
||||
menu.options->centerMenuOnX(SCREEN_CENTER_X);
|
||||
menu.options->centerMenuOnY(SCREEN_CENTER_Y);
|
||||
menu.options->centerMenuOnX(GAMECANVAS_CENTER_X);
|
||||
menu.options->centerMenuOnY(GAMECANVAS_CENTER_Y);
|
||||
menu.options->centerMenuElementsOnX();
|
||||
|
||||
// Establece las etiquetas del menu de titulo
|
||||
@@ -930,7 +930,7 @@ void Title::updateMenuLabels()
|
||||
menu.title->setItemCaption(3, lang->getText(3)); // QUIT
|
||||
|
||||
// Recoloca el menu de titulo
|
||||
menu.title->centerMenuOnX(SCREEN_CENTER_X);
|
||||
menu.title->centerMenuOnX(GAMECANVAS_CENTER_X);
|
||||
menu.title->centerMenuElementsOnX();
|
||||
|
||||
// Establece las etiquetas del menu de seleccion de jugador
|
||||
@@ -938,7 +938,7 @@ void Title::updateMenuLabels()
|
||||
menu.playerSelect->setItemCaption(3, lang->getText(40)); // BACK
|
||||
|
||||
// Recoloca el menu de selección de jugador
|
||||
menu.playerSelect->centerMenuOnX(SCREEN_CENTER_X);
|
||||
menu.playerSelect->centerMenuOnX(GAMECANVAS_CENTER_X);
|
||||
menu.playerSelect->centerMenuElementsOnX();
|
||||
}
|
||||
|
||||
@@ -1062,7 +1062,7 @@ bool Title::updatePlayerInputs(int numPlayer)
|
||||
void Title::createTiledBackground()
|
||||
{
|
||||
// Crea la textura para el mosaico de fondo
|
||||
background = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, GAME_WIDTH * 2, GAME_HEIGHT * 2);
|
||||
background = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, GAMECANVAS_WIDTH * 2, GAMECANVAS_HEIGHT * 2);
|
||||
if (background == nullptr)
|
||||
{
|
||||
printf("TitleSurface could not be created!\nSDL Error: %s\n", SDL_GetError());
|
||||
|
||||
Reference in New Issue
Block a user