mostra les rutes dels enemics al editor

This commit is contained in:
2026-04-02 10:36:41 +02:00
parent a2caf95005
commit 606388227c
9 changed files with 96 additions and 13 deletions

View File

@@ -41,6 +41,15 @@ void EnemyManager::render() {
}
}
#ifdef _DEBUG
// Solo actualiza animaciones sin mover enemigos
void EnemyManager::updateAnimations(float delta_time) {
for (const auto& enemy : enemies_) {
enemy->updateAnimation(delta_time);
}
}
#endif
// Comprueba si hay colisión con algún enemigo
auto EnemyManager::checkCollision(SDL_FRect& rect) -> bool {
return std::ranges::any_of(enemies_, [&rect](const auto& enemy) {