tornem a deixar els fitxers balloon.png com estaven
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user