migrat Enemy a time based

This commit is contained in:
2025-10-28 11:02:22 +01:00
parent 31c84f9676
commit f14a1075ab
3 changed files with 4 additions and 4 deletions

View File

@@ -44,8 +44,8 @@ void Enemy::render() {
}
// Actualiza las variables del objeto
void Enemy::update() {
sprite_->update();
void Enemy::update(float delta_time) {
sprite_->update(delta_time);
checkPath();
collider_ = getRect();
}