more scores

This commit is contained in:
Vinzenz Schroeter 2024-04-22 21:26:46 +02:00
parent a486f73046
commit 10f022c849
5 changed files with 26 additions and 4 deletions

View file

@ -30,6 +30,7 @@ internal sealed class ShootFromTanks(
if (explosive)
tank.ExplosiveBullets--;
tank.Owner.Scores.ShotsFired++;
entityManager.SpawnBullet(tank.Owner, tank.Position, tank.Orientation / 16d, explosive);
}
}

View file

@ -19,4 +19,8 @@ internal sealed record class Scores
}
public int WallsDestroyed { get; set; }
public int ShotsFired { get; set; }
public int OverallScore => Math.Max(0, 10000 * Kills - 1000 * Deaths + 10 * ShotsFired + 10 * WallsDestroyed);
}