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); }
public void Draw(SpriteBatch spriteBatch, Vector2 position) { spriteBatch.Draw(image.GetTexture2D(), DrawRectangle((int)position.X, (int)position.Y), RenderCell(), Color.White); }