Passant std::cout a SDL_Log
This commit is contained in:
@@ -117,7 +117,7 @@ void HiScoreTable::render()
|
||||
Screen::get()->start();
|
||||
|
||||
// Limpia la pantalla
|
||||
Screen::get()->clean(bg_color);
|
||||
Screen::get()->clean(BG_COLOR);
|
||||
|
||||
// Pinta el fondo
|
||||
background_->render();
|
||||
@@ -233,7 +233,7 @@ void HiScoreTable::createSprites()
|
||||
// Crea los sprites para las entradas en la tabla de puntuaciones
|
||||
const int animation = rand() % 4;
|
||||
const std::string sample_line(ENTRY_LENGHT + 3, ' ');
|
||||
auto sample_entry = std::make_unique<Sprite>(entry_text->writeDXToTexture(TEXT_SHADOW, sample_line, 1, orange_color, 1, shdw_txt_color));
|
||||
auto sample_entry = std::make_unique<Sprite>(entry_text->writeDXToTexture(TEXT_SHADOW, sample_line, 1, ORANGE_COLOR, 1, SHADOW_TEXT_COLOR));
|
||||
const auto entry_width = sample_entry->getWidth();
|
||||
for (int i = 0; i < MAX_NAMES; ++i)
|
||||
{
|
||||
@@ -248,7 +248,7 @@ void HiScoreTable::createSprites()
|
||||
}
|
||||
const auto line = table_position + options.game.hi_score_table.at(i).name + dots + score + one_cc;
|
||||
|
||||
entry_names_.emplace_back(std::make_shared<PathSprite>(entry_text->writeDXToTexture(TEXT_SHADOW, line, 1, orange_color, 1, shdw_txt_color)));
|
||||
entry_names_.emplace_back(std::make_shared<PathSprite>(entry_text->writeDXToTexture(TEXT_SHADOW, line, 1, ORANGE_COLOR, 1, SHADOW_TEXT_COLOR)));
|
||||
const int default_pos_x = (backbuffer_width - entry_width) / 2;
|
||||
const int pos_x = (i < 9) ? default_pos_x : default_pos_x - entry_text->getCharacterSize();
|
||||
const int pos_y = (i * space_between_lines) + first_line + space_between_header;
|
||||
@@ -324,7 +324,7 @@ void HiScoreTable::updateSprites()
|
||||
// Inicializa el fade
|
||||
void HiScoreTable::initFade()
|
||||
{
|
||||
fade_->setColor(fade_color.r, fade_color.g, fade_color.b);
|
||||
fade_->setColor(FADE_COLOR.r, FADE_COLOR.g, FADE_COLOR.b);
|
||||
fade_->setType(FadeType::RANDOM_SQUARE);
|
||||
fade_->setPostDuration(param.fade.post_duration);
|
||||
fade_->setMode(fade_mode_);
|
||||
@@ -346,7 +346,7 @@ void HiScoreTable::initBackground()
|
||||
background_->setTransition(0.0f);
|
||||
background_->setSunProgression(1.0f);
|
||||
background_->setMoonProgression(0.0f);
|
||||
background_fade_color_ = green_sky_color;
|
||||
background_fade_color_ = GREEN_SKY_COLOR;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -356,7 +356,7 @@ void HiScoreTable::initBackground()
|
||||
background_->setTransition(0.0f);
|
||||
background_->setSunProgression(0.65f);
|
||||
background_->setMoonProgression(0.0f);
|
||||
background_fade_color_ = pink_sky_color;
|
||||
background_fade_color_ = PINK_SKY_COLOR;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -366,7 +366,7 @@ void HiScoreTable::initBackground()
|
||||
background_->setTransition(0.0f);
|
||||
background_->setSunProgression(0.0f);
|
||||
background_->setMoonProgression(0.0f);
|
||||
background_fade_color_ = blue_sky_color;
|
||||
background_fade_color_ = BLUE_SKY_COLOR;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user