Continuemtreballant enels credits

This commit is contained in:
2024-11-24 20:21:46 +01:00
parent ad221243cb
commit a36120cf0c
15 changed files with 149 additions and 82 deletions

View File

@@ -119,6 +119,17 @@ void BalloonManager::deployBalloonFormation(int stage)
}
}
void BalloonManager::deployBalloonFormation(int pool, int set_number)
{
const auto set = balloon_formations_->getSet(pool, set_number);
const auto numEnemies = set.number_of_balloons;
for (int i = 0; i < numEnemies; ++i)
{
auto p = set.init[i];
createBalloon(p.x, p.y, p.type, p.size, p.vel_x, balloon_speed_, p.creation_counter);
}
}
// Vacia del vector de globos los globos que ya no sirven
void BalloonManager::freeBalloons()
{
@@ -339,13 +350,7 @@ void BalloonManager::reLoad()
// Crea dos globos gordos
void BalloonManager::createTwoBigBalloons()
{
const auto set = balloon_formations_->getSet(0, 1);
const auto numEnemies = set.number_of_balloons;
for (int i = 0; i < numEnemies; ++i)
{
auto p = set.init[i];
createBalloon(p.x, p.y, p.type, p.size, p.vel_x, balloon_speed_, p.creation_counter);
}
deployBalloonFormation(0, 1);
}
// Obtiene el nivel de ameza actual generado por los globos