forked from jaildesigner-jailgames/jaildoctors_dilemma
Todavía falla MUCHO con las rampas
This commit is contained in:
@@ -78,12 +78,12 @@ ScoreBoard::~ScoreBoard()
|
||||
void ScoreBoard::render()
|
||||
{
|
||||
// Dibuja el fondo del marcador
|
||||
const SDL_Rect rect = {0, 17 * BLOCK, PLAY_AREA_WIDTH, GAMECANVAS_HEIGHT - PLAY_AREA_HEIGHT};
|
||||
const SDL_Rect rect = {0, 18 * BLOCK, PLAY_AREA_WIDTH, GAMECANVAS_HEIGHT - PLAY_AREA_HEIGHT};
|
||||
SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255);
|
||||
SDL_RenderFillRect(renderer, &rect);
|
||||
|
||||
// Dibuja las vidas
|
||||
sprite->setPosY(18 * BLOCK);
|
||||
sprite->setPosY(19 * BLOCK);
|
||||
int index;
|
||||
const int desp = (counter / 40) % 8;
|
||||
const int frame = desp % 4;
|
||||
@@ -108,7 +108,7 @@ void ScoreBoard::render()
|
||||
std::string timeTxt = std::to_string((clock.minutes % 60) / 10) + std::to_string(clock.minutes % 10) + separator + std::to_string((clock.seconds % 60) / 10) + std::to_string(clock.seconds % 10);
|
||||
std::string text = "Items collected " + itemsTxt + " Time " + timeTxt;
|
||||
const color_t color = stringToColor("white");
|
||||
this->text->writeColored(BLOCK, 21 * BLOCK, text, color);
|
||||
this->text->writeColored(BLOCK, 22 * BLOCK, text, color);
|
||||
}
|
||||
|
||||
// Actualiza las variables del objeto
|
||||
|
||||
Reference in New Issue
Block a user