Continuemtreballant enels credits
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user