示例#1
0
        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            _unitPointerTile.Draw(gameTime, spriteBatch);
            _targetPointerTile.Draw(gameTime, spriteBatch);
            _unitPointer.Draw(gameTime, spriteBatch);

            foreach (var unit in _units)
            {
                unit.Draw(gameTime, spriteBatch);
            }
        }
示例#2
0
 // Spriting
 protected void DrawSprite(Sprite sprite, Vector2f position)
 {
     sprite.Position = position;
     sprite.Draw(window, new RenderStates(sprite.Texture));
 }