- [NEW] Ja perd vides, i ja es veuen en el marcador

This commit is contained in:
2024-07-24 09:33:17 +02:00
parent ed160b0588
commit 12674cc1a6
3 changed files with 14 additions and 6 deletions

View File

@@ -716,6 +716,9 @@ namespace actor
vec3_t max = room::getMax();
if ( (act->push & PUSH_KILL) && (act->flags & FLAG_HERO) ) {
const int lives = hero::getLives()-1;
hero::setLives(lives);
// [TODO] If lives == 0 anar a la pantalla de game-over o cat's life
actor_t *act = actor::find("HERO");
act = actor::replaceWithTemplate(act, "EXPLOSION");
actor_t *act2 = actor::createFromTemplate("EXPLOSION");