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);
        }
예제 #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);
     }
 }
예제 #3
0
 public void AddBullet(SpaceBullet b)
 {
     Bullets.Add(b);
     //MessageBox.Show("" + Bullets.Count);
 }