Esempio n. 1
0
        public Spreader(PlayerOne player, int p1, int p2)
        {
            // TODO: Complete member initialization
            this.player = player;
            dir = p1;
            Power = p2;
            Speed = 7;
            X = player.X + player.Width - 5;
            Y = player.Y + (player.Height/2) - 3;

            if (dir > 3 && dir < 7)
            {
                X = player.X + player.Width - 50;
                Y = player.Y + (player.Height/2) - 30;
            }
            if (dir > 6 && dir < 10)
            {
                X = player.X + player.Width - 50;
                Y = player.Y + (player.Height/2) + 30;
            }

            RadiusX = 5;
            RadiusY = 5;
        }
Esempio n. 2
0
        internal void Reset()
        {
            _levelController = new LevelController(EnemyBullets, EnemyList);
            ShootSpeed = ShootSpeeds.Bullet;
            StarManager = new StarManager();
            Player = new PlayerOne();
            EnemyList = new List<Enemy>();
            EnemyBullets = new List<EnemyWeapons>();
            Explosions = new List<AnimatedExplosion>();
            PowerUps = new List<Power>();
            FloatingTexts = new List<FloatingText>();

            _levelController = new LevelController(EnemyBullets, EnemyList) {Level = 1};
            Level = 1;
            Score = 0;
            Kills = 0;
            AmmoCounter = new[] {150, 20, 5, 20, 0, 50};
            ChoosenWeapon = 1;
            DamageMulti = 1;
            ShootSpeed = ShootSpeeds.Bullet;
        }