killing tiles

This commit is contained in:
2026-04-06 22:56:59 +02:00
parent 5c40b9bbf9
commit 6be93da929
4 changed files with 31 additions and 4 deletions

View File

@@ -65,7 +65,12 @@ void Player::update(float delta_time) {
// 5. Detectar caída
checkFalling();
// 6. Finalizar
// 6. Kill tiles
if (room_->getTileCollider().touchesKillTile(x_, y_, WIDTH, HEIGHT)) {
markAsDead();
}
// 7. Finalizar
syncSpriteAndCollider();
animate(delta_time);
border_ = handleBorders();