/// <summary>
        /// Load the game over screen
        /// </summary>
        public override void Load()
        {
            GridStyle = GridStyles.Ticks;
            BackgroundColor = Color.Black;
            FontName = "QuartzMS";

            // Add the score text
            ScoreText = AddText(new Text
            {
                Alignment = HorizontalAlignments.Left,
                VerticalAlign = VerticalAlignments.Top,
                Scale = .4f,
                Position = new Vector2(-100f, 100f),
                Color = Color.White
            });

            // Add the start key text
            RestartText = AddText(new Text
            {
                Value = "Press SPACE to Play",
                Position = new Vector2(0f, -100f),
                Alignment = HorizontalAlignments.Center,
                VerticalAlign = VerticalAlignments.Bottom,
                AnimationType = TextAnimations.Typewriter,
                AnimationSeconds = 0.2,
                Scale = 0.5f,
                Color = Color.Lime
            });
            if (Game.Platform == GamePlatforms.XBox)
            {
                RestartText.Value = "Press START to Play";
            }
            else if (Game.Platform == GamePlatforms.WindowsPhone)
            {
                RestartText.Value = "TAP to Play";
            }

            missile = AddSprite<MissileSprite>();
            missile.SetCostume("ufo");
            missile.Costume.YCenter = VerticalAlignments.Center;
            missile.Scale = 2;
            missile.Show();
            missile.X = 0;
            missile.Y = 50;

            barrier = AddSprite<BarrierSprite>();
            barrier.Scale = 2.5f;
            barrier.Y = -70;

            ufo = AddSprite<UfoSprite>();
            ufo.Position = Vector2.Zero;
            ufo.Costume.YCenter = VerticalAlignments.Top;
            ufo.Scale = 1;
            ufo.Show();
        }
using Color = Microsoft.Xna.Framework.Color;
#endregion
namespace ScratchyXna
{
    public class PlayScreen : Scene
    {
        public enum PlayScreenModes
        {
            Init,
            ShowingPlayerNumber,
            Playing,
            Finished
        }
 /// <summary>
 ///     Initializes a new instance of the <see cref="Barrier" /> class.
 /// </summary>
 public Barrier()
 {
     Sprite = new BarrierSprite();
 }
 public void HitBarrier(BarrierSprite Barrier)
 {
     SetCostume("AlienBullets/AlienMissileHitBarrier");
     Barrier.Stamp(this, StampMethods.Cutout);
     State = MissileStates.Destroy;
 }