Estandaritzant noms segons convencions

This commit is contained in:
2024-10-10 20:27:31 +02:00
parent 9e5f41644e
commit d6c3c89872
67 changed files with 1457 additions and 1504 deletions

View File

@@ -34,8 +34,8 @@ Logo::Logo()
endLogo_cm = 400;
postLogoDuration = 20;
speed = 8;
dest.x = param.game.gameArea.centerX - jailTexture->getWidth() / 2;
dest.y = param.game.gameArea.centerY - jailTexture->getHeight() / 2;
dest.x = param.game.game_area.centerX - jailTexture->getWidth() / 2;
dest.y = param.game.game_area.centerY - jailTexture->getHeight() / 2;
sinceSprite->setPosY(dest.y + jailTexture->getHeight() + 5);
sinceSprite->setSpriteClip(0, 0, sinceTexture->getWidth(), sinceTexture->getHeight());
sinceSprite->setEnabled(false);
@@ -147,29 +147,28 @@ void Logo::updateJAILGAMES()
// Gestiona el color de las texturas
void Logo::updateTextureColors()
{
constexpr int inc = 4;
constexpr int inc = 4;
// Manejo de 'sinceTexture'
for (int i = 0; i <= 7; ++i)
{
if (counter == showSinceSprite_cm + inc * i)
{
sinceTexture->setColor(color[i].r, color[i].g, color[i].b);
}
}
// Manejo de 'sinceTexture'
for (int i = 0; i <= 7; ++i)
{
if (counter == showSinceSprite_cm + inc * i)
{
sinceTexture->setColor(color[i].r, color[i].g, color[i].b);
}
}
// Manejo de 'jailTexture' y 'sinceTexture' en el fade
for (int i = 0; i <= 6; ++i)
{
if (counter == initFade_cm + inc * i)
{
jailTexture->setColor(color[6 - i].r, color[6 - i].g, color[6 - i].b);
sinceTexture->setColor(color[6 - i].r, color[6 - i].g, color[6 - i].b);
}
}
// Manejo de 'jailTexture' y 'sinceTexture' en el fade
for (int i = 0; i <= 6; ++i)
{
if (counter == initFade_cm + inc * i)
{
jailTexture->setColor(color[6 - i].r, color[6 - i].g, color[6 - i].b);
sinceTexture->setColor(color[6 - i].r, color[6 - i].g, color[6 - i].b);
}
}
}
// Actualiza las variables
void Logo::update()
{