Beispiel #1
0
        public Game()
        {
            Vector2 screenSize = new Vector2();

            m_GraphicsDM = new GraphicsDeviceManager(this);
            m_GraphicsDM.IsFullScreen = false;
            m_GraphicsDM.SynchronizeWithVerticalRetrace = true;
            m_GraphicsDM.GraphicsProfile = GraphicsProfile.HiDef;
            screenSize.X = m_GraphicsDM.PreferredBackBufferWidth = 1200;
            screenSize.Y = m_GraphicsDM.PreferredBackBufferHeight = 900;
            m_GraphicsDM.PreferMultiSampling      = true; //Error in MonoGame 3.6 release for DirectX, fixed for next version.
            m_GraphicsDM.PreparingDeviceSettings += SetMultiSampling;
            m_GraphicsDM.ApplyChanges();
            IsFixedTimeStep       = false;
            m_Player              = new Player(this);
            m_PlayerClear         = new PO(this);
            m_UFO                 = new UFO(this);
            m_Pod                 = new PodGroup(this);
            m_UFOTimer            = new Timer(this);
            m_PodTimer            = new Timer(this);
            m_BackGroundPlay      = new Timer(this);
            m_BackTwoPlay         = new Timer(this);
            m_BackgroundDelay     = new Timer(this);
            m_BackgroundTwoDelay  = new Timer(this);
            m_GameWavePlayTime    = new Timer(this);
            m_AtariHUD            = new Word(this);
            m_AtariDate           = new Number(this);
            m_Rocks               = new List <Rock>();
            Content.RootDirectory = "Content";
        }
 public void Initialize(Player player, UFO ufo)
 {
     m_Player = player;
     m_UFO    = ufo;
     Active   = false;
 }