Esempio n. 1
0
        public void Fire()
        {
            Vector2 velocity = new Vector2( (float)Math.Cos(this.cannonAngle), (float)Math.Sin(this.cannonAngle)) * 5.0f;
            Vector2 position = new Vector2(cordinate.X - 4, cordinate.Y - 4);
            
            Bullet tmp = new Bullet((float)this.cannonAngle, position, velocity);

            this.Bullets.Add( tmp );
        }
Esempio n. 2
0
 //рисует снаряд
 public static void paint(Bullet bullet)
 {
     throw new NotImplementedException();
 }