Esempio n. 1
0
        public void Draw(SpriteBatch spriteBatch, Vector2 position)
        {
            if (reversible)
            {
                UpdateFrameReversible();
            }
            else
            {
                UpdateFrame();
            }

            spriteBatch.Draw(spriteMap.GetTexture2D(),
                             new Rectangle((int)position.X, (int)position.Y, cellSize, cellSize), RenderCell(), Color.White);
        }
Esempio n. 2
0
 public void Draw(SpriteBatch spriteBatch, Vector2 position)
 {
     spriteBatch.Draw(image.GetTexture2D(), DrawRectangle((int)position.X, (int)position.Y), RenderCell(), Color.White);
 }