Nous grafics per a la powerball
Nou comportament per a la powerball
This commit is contained in:
@@ -88,7 +88,7 @@ void BalloonManager::deployBalloonFormation(int stage)
|
||||
createPowerBall();
|
||||
|
||||
// Da un poco de margen para que se creen mas enemigos
|
||||
balloon_deploy_counter_ = 300;
|
||||
balloon_deploy_counter_ = 10;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -171,13 +171,13 @@ void BalloonManager::createChildBalloon(const std::shared_ptr<Balloon> &balloon,
|
||||
// Crea una PowerBall
|
||||
void BalloonManager::createPowerBall()
|
||||
{
|
||||
constexpr auto values = 6;
|
||||
constexpr auto pos_y = -BLOCK;
|
||||
constexpr int creation_time = 300;
|
||||
constexpr int values = 6;
|
||||
constexpr int pos_y = -BALLOON_SIZE[4];
|
||||
constexpr int creation_time = 0;
|
||||
|
||||
const auto left = param.game.play_area.rect.x;
|
||||
const auto center = param.game.play_area.center_x - (BALLOON_SIZE[3] / 2);
|
||||
const auto right = param.game.play_area.rect.w - BALLOON_SIZE[3];
|
||||
const auto center = param.game.play_area.center_x - (BALLOON_SIZE[4] / 2);
|
||||
const auto right = param.game.play_area.rect.w - BALLOON_SIZE[4];
|
||||
|
||||
const auto luck = rand() % values;
|
||||
const int x[values] = {left, left, center, center, right, right};
|
||||
|
||||
Reference in New Issue
Block a user