Exemplo n.º 1
0
 /// <summary>
 /// Updates the game variables and managers.
 /// </summary>
 /// <param name="gameTime"></param>
 protected override void Update(GameTime gameTime)
 {
     M_InputManager.Update();
     M_MapManager.Update();
     M_PartyManager.Update();
     M_MenuManager.Update();
     M_MapManager.Update();
     base.Update(gameTime);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initalizes the objects and managers in the game.
 /// </summary>
 protected override void Initialize()
 {
     base.Initialize();
     M_ContentManager.Init(Content);
     M_GlobalManager.Init();
     M_TextManager.Init();
     M_InputManager.Init();
     M_PartyManager.Init();
     M_MenuManager.Init();
     I_Inventory.Init();
     M_MapManager.Init();
 }
Exemplo n.º 3
0
        /// <summary>
        /// Main draw call for the GPU.
        /// </summary>
        /// <param name="gameTime"></param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.White);

            sprite_batch.Begin(SpriteSortMode.FrontToBack);
            M_MapManager.Draw(sprite_batch);
            M_PartyManager.Draw(sprite_batch);
            M_MenuManager.Draw(sprite_batch);
            M_MapManager.Draw(sprite_batch);
            sprite_batch.End();

            base.Draw(gameTime);
        }