public void Shoot(SpaceGame g)
        {
            SpaceBullet b = new SpaceBullet(upperLeft + 34 * ((new Vector(0, 1)) * rotationMatrix), worldSize);

            b.SetMoving(this.moving + 17 * ((new Vector(0, 1)) * rotationMatrix));
            //MessageBox.Show("" + upperLeft);

            g.AddBullet(b);
        }
Esempio n. 2
0
 public void Shoot(SpaceGame g, Point PlayerLocation)
 {
     if (rand.Next() % ShootMod == 0)
     {
         Vector      v = RandomVector(16.0);
         SpaceBullet b = new SpaceBullet(upperLeft + (10 * v), g.ScreenDim);
         b.SetMoving(v);
         g.AddBullet(b);
     }
 }
Esempio n. 3
0
 public void AddBullet(SpaceBullet b)
 {
     Bullets.Add(b);
     //MessageBox.Show("" + Bullets.Count);
 }