Example #1
0
        private void Fire()
        {
            smallBullet bullet = new smallBullet(position, rotation + directions[2], 10, 10);

            bulletList.Add(bullet);

            shootTimer = 0.0f;
        }
Example #2
0
        private void FireThree()
        {
            foreach (float direction in directions)
            {
                smallBullet bullet = new smallBullet(position, rotation + direction, 10, 10);
                bulletList.Add(bullet);
            }

            shootTimer = 0.0f;
        }
Example #3
0
        private void FireTwo()
        {
            for (int i = 0; i < directions.Length - 1; i++)
            {
                smallBullet bullet = new smallBullet(position, rotation + directions[i], 10, 10);
                bulletList.Add(bullet);
            }

            shootTimer = 0.0f;
        }
Example #4
0
        private void Fire()
        {
            if (shootTimer > 1.0f)
            {
                smallBullet bullet = new smallBullet(position, rotation - (float)Math.PI / 2, 10, 10);
                bulletList.Add(bullet);

                shootTimer = 0.0f;
            }
        }
Example #5
0
        private void FireBullets()
        {
            if (shootTimer > 1.0f)
            {
                foreach (float direction in directions)
                {
                    smallBullet bullet = new smallBullet(position, 150, rotation - direction, 10, 10);
                    bulletList.Add(bullet);
                }

                shootTimer = 0.0f;
            }
        }