Arreglat el efecte de flash. Estava passant-li un valor massa xicotet
This commit is contained in:
@@ -349,7 +349,7 @@ void Game::updateStage()
|
||||
JA_PlaySound(Resource::get()->getSound("stage_change.wav"));
|
||||
balloon_speed_ = default_balloon_speed_;
|
||||
setBalloonSpeed(balloon_speed_);
|
||||
screen_->flash(flash_color, 10);
|
||||
screen_->flash(flash_color, 100);
|
||||
screen_->shake();
|
||||
|
||||
// Escribe el texto por pantalla
|
||||
@@ -580,7 +580,7 @@ void Game::destroyAllBalloons()
|
||||
|
||||
balloon_deploy_counter_ = 300;
|
||||
JA_PlaySound(Resource::get()->getSound("powerball.wav"));
|
||||
screen_->flash(flash_color, 5);
|
||||
screen_->flash(flash_color, 100);
|
||||
screen_->shake();
|
||||
}
|
||||
|
||||
@@ -1258,12 +1258,6 @@ void Game::render()
|
||||
// Copia la textura con la zona de juego a la pantalla
|
||||
SDL_RenderCopy(renderer_, canvas_, nullptr, ¶m.game.play_area.rect);
|
||||
|
||||
// SDL_SetRenderDrawColor(Screen::get()->getRenderer(), 0, 0, 255, 255);
|
||||
// const int y = param.game.play_area.center_y;
|
||||
// SDL_RenderDrawLine(Screen::get()->getRenderer(), 0, y, param.game.play_area.rect.w, y);
|
||||
// const int x = param.game.play_area.center_x;
|
||||
// SDL_RenderDrawLine(Screen::get()->getRenderer(), x, 0, x, param.game.play_area.rect.h);
|
||||
|
||||
// Dibuja el marcador
|
||||
scoreboard_->render();
|
||||
|
||||
@@ -1546,6 +1540,12 @@ void Game::checkEvents()
|
||||
{
|
||||
createMessage({paths_.at(4), paths_.at(5)}, Resource::get()->getTexture("congratulations"));
|
||||
createMessage({paths_.at(6), paths_.at(7)}, Resource::get()->getTexture("1000000_points"));
|
||||
break;
|
||||
}
|
||||
case SDLK_7: // Flash
|
||||
{
|
||||
screen_->flash(flash_color, 100);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
|
||||
@@ -100,9 +100,7 @@ void GameLogo::render()
|
||||
crisis_sprite_->render();
|
||||
|
||||
if (status_ == Status::FINISHED)
|
||||
{
|
||||
arcade_edition_sprite_->render();
|
||||
}
|
||||
|
||||
// Dibuja el polvillo del logo
|
||||
dust_right_sprite_->render();
|
||||
|
||||
Reference in New Issue
Block a user