public override void OnDeath() { base.OnDeath(); if (Game1.Instance.Random.NextDouble() < 0.75) { HealthPack hp = new HealthPack(Position); hp.Amount = 50; hp.Scale = 1.35f; CreateEntity(hp); } int score = (int)((speed * 200) + (-Health * 20)) * 10; score = (score + 50) / 100 * 500; Game1.Instance.GameWorld.Score += score; }
public override void OnDeath() { base.OnDeath(); if (Game1.Instance.Random.NextDouble() < 0.1) { HealthPack hp = new HealthPack(Position); CreateEntity(hp); } int score = (int)((speed * 100) + (-Health * 10)); score = (score + 50) / 100 * 100; Game1.Instance.GameWorld.Score += score; }