Commit d60ccbaf authored by Lila NICKLER's avatar Lila NICKLER

Systeme de vie pour je joueur fini, 3 vies au depart

parent 0efc18fc
......@@ -340,9 +340,11 @@ void UpdateGame(void)
{
if (player.life == 1)
{
gameOver = false;
gameOver = true;
} else
{
enemy[i].rec.x = GetRandomValue(screenWidth, screenWidth + 1000);
enemy[i].rec.y = GetRandomValue(0, screenHeight - enemy[i].rec.height);
player.life--;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment