예제 #1
0
        private void Shoot(string direct)
        {
            Bullets shoot = new Bullets();

            shoot.diretion   = direct;
            shoot.bulletLeft = player.Left + 15;
            shoot.bulletTop  = player.Top + 25;

            Bullets more = new Bullets();

            more.diretion   = direct;
            more.bulletLeft = player.Left + 20;
            more.bulletTop  = player.Top + 50;
            shoot.makeBullet(this);
            more.makeBullet(this);

            Globals.LaserSound();
        }
예제 #2
0
        private void Shoot(string direct)
        {
            Bullets shoot = new Bullets();

            shoot.diretion   = direct;
            shoot.bulletLeft = player.Left + (player.Width / 2);
            shoot.bulletTop  = player.Top + (player.Height / 2);
            shoot.makeBullet(this);


            if (Globals.UsersHeroPicture == "Tank")
            {
                Globals.TankSound();
            }

            if (Globals.UsersHeroPicture == "Healer")
            {
                Globals.HealerSound();
            }

            if (Globals.UsersHeroPicture == "Mage")
            {
                Globals.MageSound();
            }

            if (Globals.UsersHeroPicture == "Big Yargus")
            {
                Globals.YareSound();
            }

            if (Globals.UsersHeroPicture == "Big Flagus")
            {
                Globals.YareSound();
            }

            if (Globals.UsersHeroPicture == "Big Chunguschu")
            {
                Globals.PikaSound();
            }
            else
            {
                Globals.ShootSound();
            }
        }