Beispiel #1
0
        public Drone(State state, Vector2 position, float size)
            : base(state, position, size, 0, "drone")
        {
            var r = Program.Random.NextDouble();

            if (r <= 0.50f)
                Weapon = new NerfGun(this);
            else
                Weapon = new LaserGun(this);

            MaxHealth = 150;
            Health = MaxHealth;
            MaxEnergy = 500;
            Energy = MaxEnergy;

            HealthRegenRate = 0;
            EnergyRegenRate = -5;

            DamageTakenMultiplier = 1;
            DamageMultiplier = 1;
            SpeedMultiplier = 1;
        }
Beispiel #2
0
        public Enemy(State state, Vector2 position)
            : base(state, position, 1, 1, "enemy")
        {
            var r = Program.Random.NextDouble();

            if (r <= 0.80f)
                Weapon = new LaserGun(this);
            else
                Weapon = new NerfGun(this);

            MaxHealth = 1000;
            Health = MaxHealth;
            MaxEnergy = 500;
            Energy = MaxEnergy;

            HealthRegenRate = 5;
            EnergyRegenRate = 20;

            DamageTakenMultiplier = 1;
            DamageMultiplier = 1;
            SpeedMultiplier = 1;
        }