Arreglado el modo demo
Grabada una nueva demo
This commit is contained in:
@@ -175,11 +175,6 @@ void Player::move()
|
||||
// Pinta el jugador en pantalla
|
||||
void Player::render()
|
||||
{
|
||||
if (!enabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (isAlive())
|
||||
{
|
||||
if (invulnerable)
|
||||
@@ -337,11 +332,6 @@ void Player::updateCooldown()
|
||||
// Actualiza al jugador a su posicion, animación y controla los contadores
|
||||
void Player::update()
|
||||
{
|
||||
if (!enabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
move();
|
||||
setAnimation();
|
||||
shiftColliders();
|
||||
@@ -620,6 +610,7 @@ void Player::setPlayerTextures(std::vector<Texture *> texture)
|
||||
void Player::enable(bool value)
|
||||
{
|
||||
enabled = value;
|
||||
init();
|
||||
}
|
||||
|
||||
// Obtiene el valor de la variable
|
||||
|
||||
Reference in New Issue
Block a user