Esempio n. 1
0
        public Game()
        {
            m_GraphicsDM = new GraphicsDeviceManager(this);
            m_GraphicsDM.IsFullScreen = false;
            m_GraphicsDM.SynchronizeWithVerticalRetrace = true;
            m_GraphicsDM.GraphicsProfile           = GraphicsProfile.HiDef;
            m_GraphicsDM.PreferredBackBufferWidth  = 1200;
            m_GraphicsDM.PreferredBackBufferHeight = 900;
            m_GraphicsDM.PreferMultiSampling       = true; //Error in MonoGame 3.6 for DirectX, fixed for next version.
            m_GraphicsDM.PreparingDeviceSettings  += SetMultiSampling;
            m_GraphicsDM.ApplyChanges();
            IsFixedTimeStep = false;

            Content.RootDirectory = "Content";

            m_Background = new Background(this);
            m_Player     = new PO.Player(this);
            m_Enemy      = new EnemyControl(this);
            m_P1Score    = new Engine.SpriteFontDisplay(this);
        }
Esempio n. 2
0
 public void PlayerReference(PO.Player player)
 {
     m_Player = player;
 }