Añadiendo habitaciones
This commit is contained in:
@@ -18,15 +18,7 @@ Player::Player(player_t player)
|
||||
sprite = new AnimatedSprite(renderer, resource->getAnimation(player.animation));
|
||||
|
||||
// Inicializa variables
|
||||
color = stringToColor(options->palette, "white");
|
||||
if (options->cheat.infiniteLives)
|
||||
{
|
||||
color = stringToColor(options->palette, "yellow");
|
||||
}
|
||||
if (options->cheat.invincible)
|
||||
{
|
||||
color = stringToColor(options->palette, "cyan");
|
||||
}
|
||||
reLoadPalette();
|
||||
onBorder = false;
|
||||
border = BORDER_TOP;
|
||||
autoMovement = false;
|
||||
@@ -708,6 +700,14 @@ void Player::reLoadTexture()
|
||||
void Player::reLoadPalette()
|
||||
{
|
||||
color = stringToColor(options->palette, "white");
|
||||
if (options->cheat.infiniteLives)
|
||||
{
|
||||
color = stringToColor(options->palette, "yellow");
|
||||
}
|
||||
if (options->cheat.invincible)
|
||||
{
|
||||
color = stringToColor(options->palette, "cyan");
|
||||
}
|
||||
}
|
||||
|
||||
// Establece el valor de la variable
|
||||
|
||||
Reference in New Issue
Block a user