Añadido el procedimiento reLoadTexture a todos los objetos que lo necesitaban
This commit is contained in:
@@ -48,7 +48,7 @@ void Enemy::render()
|
||||
void Enemy::update()
|
||||
{
|
||||
sprite->update();
|
||||
//sprite->animate();
|
||||
// sprite->animate();
|
||||
checkPath();
|
||||
collider = getRect();
|
||||
}
|
||||
@@ -77,4 +77,10 @@ SDL_Rect Enemy::getRect()
|
||||
SDL_Rect &Enemy::getCollider()
|
||||
{
|
||||
return collider;
|
||||
}
|
||||
|
||||
// Recarga la textura
|
||||
void Enemy::reLoadTexture()
|
||||
{
|
||||
texture->reLoad();
|
||||
}
|
||||
Reference in New Issue
Block a user