Exemple #1
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.DarkRed);
            spriteBatch.Begin();

            _controllerDebug.Draw(spriteRender);
            _debug.Draw(spriteRender);
            _gameManager.Draw(spriteRender);

            spriteBatch.End();
            base.Draw(gameTime);
        }
Exemple #2
0
        public void Draw(SpriteRender spriteRender)
        {
            // components that implement IDraw
            _debug.Draw(spriteRender);
            _hud.Draw(spriteRender);
            _inventory.Draw(spriteRender);
            _itemManager.Draw(spriteRender);
            _player.Draw(spriteRender);
            _activeGear.Draw(spriteRender);

            foreach (IDraw drawable in _entityManager.Draws)
            {
                drawable.Draw(spriteRender);
            }
        }