Añadido cambio de color en las nubes

This commit is contained in:
2024-08-30 13:12:04 +02:00
parent 1d847eae9f
commit 4f6c92c8d1
7 changed files with 189 additions and 125 deletions

View File

@@ -25,8 +25,8 @@ Game::Game(int playerID, int currentStage, Screen *screen, Asset *asset, Lang *l
// Crea los objetos
fade = new Fade(renderer, param);
eventHandler = new SDL_Event();
scoreboard = new Scoreboard(renderer, screen, asset, lang, options);
background = new Background(renderer, screen, asset, param);
scoreboard = new Scoreboard(renderer, asset, lang, options);
background = new Background(renderer, asset, param);
explosions = new Explosions();
enemyFormations = new EnemyFormations();
@@ -2592,14 +2592,17 @@ void Game::checkEvents()
{
switch (eventHandler->key.keysym.sym)
{
// CREA UN SPRITE DE 1000 PUNTOS
case SDLK_h:
createItemScoreSprite(param->gameWidth / 2, param->gameWidth / 2, n1000Sprite);
break;
// CREA UNA POWERBALL
case SDLK_1:
createPowerBall();
break;
// CREA DOS BALLON4
case SDLK_2:
{
const int set = 0;
@@ -2617,6 +2620,7 @@ void Game::checkEvents()
}
break;
// ACTIVA EL MODO PARA PASAR EL JUEGO AUTOMATICAMENTE
case SDLK_3:
autoPopBalloons = !autoPopBalloons;
screen->showNotification("autoPopBalloons " + boolToString(autoPopBalloons));