示例#1
0
        protected override void LoadContent()
        {
            LoadTMXMaps(Content);//Loading all the TMX maps
            m_spriteBatch = new SpriteBatch(GraphicsDevice);

            //Debugging tools, showing FPS and other relevant information. Press X while debugging to enable
            #region PerformanceTool
            //m_performanceTool = new PerformanceUtility.PerformanceUtility(m_graphics, this);
            //m_performanceTool.LoadContent(Content, m_spriteBatch);
            #endregion

            //Initializing the games main MVC classes
            m_gameModel      = new Model.GameModel(m_TMXMaps);
            m_inputHandler   = new View.InputHandler();
            m_gameView       = new View.GameView(m_gameModel, m_inputHandler, m_spriteBatch, GraphicsDevice);
            m_gameController = new GameController(m_gameModel, m_gameView);

            m_gameView.LoadContent(Content);
        }
示例#2
0
 internal void LoadContent(ContentManager a_content)
 {
     m_gameView.LoadContent(a_content);
 }
示例#3
0
 /// <summary>
 /// Method for lodaing the game content via the GameView
 /// </summary>
 /// <param name="content">ContentManagerInstance</param>
 internal void LoadContent(ContentManager content)
 {
     _gameView.LoadContent(content);
 }