acabat amb balloon_formations.txt

This commit is contained in:
2025-07-21 00:56:17 +02:00
parent 2e606bf160
commit dbab3de3df
3 changed files with 200 additions and 200 deletions

View File

@@ -151,7 +151,7 @@ auto BalloonFormations::parseBalloonLine(const std::string& line, const std::map
return std::nullopt;
}
int creation_time = evaluateExpression(tokens[6], variables);
int creation_time = CREATION_TIME + evaluateExpression(tokens[6], variables);
return BalloonFormationParams(x + desp, y, vel_x, type, size, creation_time);
} catch (const std::exception&) {
@@ -249,7 +249,6 @@ void BalloonFormations::loadDefaultFormations() {
const int DEFAULT_POS_Y = param.game.play_area.rect.h - BALLOON_SPAWN_HEIGHT;
const int X4_0 = param.game.play_area.rect.x;
const int X4_100 = param.game.play_area.rect.w - BALLOON_SIZE[3];
constexpr int CREATION_TIME = 300;
// Formación básica #00
std::vector<BalloonFormationParams> basic_formation = {