Add a Game Over screen
Currently, the player has no clue when the game is over, which is really frustrating... So we need a game over screen that shows:
- The time to finish the level
- The number of death
- The number of enemies killed
- A grade based on previous values
Display the credits screen after it.
For the grade computation, use:
completion time (sec) + index_difficulty * (# death- # killed enemies) = score
Grade:
- 300 < score: Armed citizen of the capital dome
- 200 < score <= 300: Soldier of Union Intervention Brigades (UIB)
- 100 < score <= 200: Captain of Union Intervention Brigades (UIB)
- score <= 100: 2P4N Mutant Elite Soldier prototype
We also can try the formula given by ChatGPT:
EDIT: At the end we used a simpler way to compute the score. We first compute these 3 values:
- timeScore = minimumTimeToFinish / time
- killScore = enemiesKilled / totalEnemiesToKill
- deathScore = (maximumNumberOfDeath - playerDeath) / maximumNumberOfDeath
Then we use the average of these 3 values as the player score.