add power ups collected score
This commit is contained in:
parent
bf22fd6c85
commit
259d63d683
8 changed files with 45 additions and 32 deletions
|
@ -22,5 +22,12 @@ internal sealed record class Scores
|
|||
|
||||
public int ShotsFired { get; set; }
|
||||
|
||||
public int OverallScore => Math.Max(0, 10000 * Kills - 1000 * Deaths + 10 * ShotsFired + 10 * WallsDestroyed);
|
||||
public int PowerUpsCollected { get; set; }
|
||||
|
||||
public int OverallScore => Math.Max(0,
|
||||
10000 * Kills
|
||||
- 1000 * Deaths
|
||||
+ 100 * PowerUpsCollected
|
||||
+ 10 * (ShotsFired + WallsDestroyed)
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue