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