Ejemplo n.º 1
0
        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            _map.Draw(gameTime, spriteBatch);
            base.Draw(gameTime, spriteBatch);

            foreach (TSGameEntity ge in _gameEntities)
            {
                if (_map.IsInDrawnArea(ge.Position, ge.Width, ge.Height))
                {
                    ge.Draw(ge.Position - _map.P0, gameTime, spriteBatch);
                }
            }


            mainWarrior.Draw(gameTime, spriteBatch);
            _pauseGameLayout.Draw(gameTime, spriteBatch);
        }
Ejemplo n.º 2
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     map.Draw(gameTime, spriteBatch);
     blue.Draw(gameTime, spriteBatch);
     base.Draw(gameTime, spriteBatch);
 }