tornem a deixar els fitxers balloon.png com estaven

This commit is contained in:
2024-07-30 12:02:15 +02:00
parent f4484b24f1
commit 884cacbc2e
33 changed files with 104 additions and 336 deletions

View File

@@ -317,14 +317,12 @@ void Balloon::render()
else if (isBeingCreated())
{
// Aplica alpha blending
//sprite->getTexture()->setPalette(1);
sprite->getTexture()->setAlpha(255 - (int)((float)creationCounter * (255.0f / (float)creationCounterIni)));
sprite->render();
sprite->getTexture()->setAlpha(255);
}
else
{
//sprite->getTexture()->setPalette(0);
sprite->render();
}
@@ -570,18 +568,18 @@ void Balloon::updateState()
// Establece la animación correspondiente al estado
void Balloon::updateAnimation()
{
std::string creatingAnimation = "stopped";
std::string normalAnimation = "normal";
std::string creatingAnimation = "blue";
std::string normalAnimation = "orange";
if (kind == POWER_BALL)
{
creatingAnimation = "default";
normalAnimation = "default";
creatingAnimation = "powerball";
normalAnimation = "powerball";
}
else if (getClass() == HEXAGON_CLASS)
{
creatingAnimation = "stopped";
normalAnimation = "normal";
creatingAnimation = "red";
normalAnimation = "green";
}
// Establece el frame de animación