Пример #1
0
        public static void Shoot(Alien shooter)
        {
            AlienBullet b = GetBullet();

            if (b != null)
            {
                b.Position.X = shooter.AlienPosition.X;
                b.Position.Y = shooter.AlienPosition.Y + shooter.GetHeight() / 2 + 1;
                b.SetVelocity(new Vector2(0, 250));
                b.IsActive = true;
            }
        }