Continue amb BalloonManager
This commit is contained in:
@@ -25,22 +25,20 @@ void BalloonFormations::initBalloonFormations()
|
||||
balloon_formation_.reserve(NUMBER_OF_BALLOON_FORMATIONS);
|
||||
|
||||
constexpr int CREATION_TIME = 300;
|
||||
int inc_x = 0;
|
||||
int inc_time = 0;
|
||||
|
||||
// #00 - Dos enemigos BALLOON4 uno a cada extremo
|
||||
{
|
||||
std::vector<BalloonFormationParams> init_params = {
|
||||
BalloonFormationParams(x4_0, y4, BALLOON_VELX_NEGATIVE, BalloonType::BALLOON, BalloonSize::SIZE4, CREATION_TIME),
|
||||
BalloonFormationParams(x4_100, y4, -BALLOON_VELX_NEGATIVE, BalloonType::BALLOON, BalloonSize::SIZE4, CREATION_TIME)};
|
||||
BalloonFormationParams(x4_0, y4, BALLOON_VELX_POSITIVE, BalloonType::BALLOON, BalloonSize::SIZE4, CREATION_TIME),
|
||||
BalloonFormationParams(x4_100, y4, BALLOON_VELX_NEGATIVE, BalloonType::BALLOON, BalloonSize::SIZE4, CREATION_TIME)};
|
||||
balloon_formation_.emplace_back(2, init_params);
|
||||
}
|
||||
|
||||
// #01 - Dos enemigos BALLOON4 uno a cada cuarto. Ambos van hacia el centro
|
||||
{
|
||||
std::vector<BalloonFormationParams> init_params = {
|
||||
BalloonFormationParams(param.game.play_area.first_quarter_x - (BALLOON_SIZE[3] / 2), y4, BALLOON_VELX_NEGATIVE, BalloonType::BALLOON, BalloonSize::SIZE4, CREATION_TIME),
|
||||
BalloonFormationParams(param.game.play_area.third_quarter_x - (BALLOON_SIZE[3] / 2), y4, -BALLOON_VELX_NEGATIVE, BalloonType::BALLOON, BalloonSize::SIZE4, CREATION_TIME)};
|
||||
BalloonFormationParams(param.game.play_area.first_quarter_x - (BALLOON_SIZE[3] / 2), y4, BALLOON_VELX_POSITIVE, BalloonType::BALLOON, BalloonSize::SIZE4, CREATION_TIME),
|
||||
BalloonFormationParams(param.game.play_area.third_quarter_x - (BALLOON_SIZE[3] / 2), y4, BALLOON_VELX_NEGATIVE, BalloonType::BALLOON, BalloonSize::SIZE4, CREATION_TIME)};
|
||||
balloon_formation_.emplace_back(2, init_params);
|
||||
}
|
||||
|
||||
@@ -124,7 +122,7 @@ void BalloonFormations::initBalloonFormations()
|
||||
balloon_formation_.emplace_back(6, init_params);
|
||||
}
|
||||
|
||||
// #10 - Tres enemigos BALLOON4 seguidos desde la izquierda
|
||||
// #10 - Tres enemigos BALLOON4 seguidos desde la izquierda. Hacia la derecha
|
||||
{
|
||||
std::vector<BalloonFormationParams> init_params;
|
||||
for (int i = 0; i < 3; ++i)
|
||||
@@ -134,7 +132,7 @@ void BalloonFormations::initBalloonFormations()
|
||||
balloon_formation_.emplace_back(3, init_params);
|
||||
}
|
||||
|
||||
// #11 - Tres enemigos BALLOON4 seguidos desde la derecha
|
||||
// #11 - Tres enemigos BALLOON4 seguidos desde la derecha. Hacia la izquierda
|
||||
{
|
||||
std::vector<BalloonFormationParams> init_params;
|
||||
for (int i = 0; i < 3; ++i)
|
||||
|
||||
Reference in New Issue
Block a user