public override void Draw(SpriteBatch spriteBatch) { Rectangle sourceRectangle = new Rectangle(0, 0, 96, 96); Rectangle destinationRectangle = new Rectangle((int)GlobalDefinitions.Position.X, (int)GlobalDefinitions.Position.Y, 96, 96); //use texture2dStorage to get the texture2d of the sprite spriteBatch.Draw(Texture2DStorage.GetOldManSpriteSheet(), destinationRectangle, sourceRectangle, Color.White); }
public void Draw(SpriteBatch spriteBatch, Vector2 Position) { Rectangle sourceRectangle = new Rectangle(0, 0, 96, 96); destinationRectangle = new Rectangle((int)Position.X, (int)Position.Y, 96, 96); //use texture2dStorage to get the texture2d of the sprite spriteBatch.Draw(Texture2DStorage.GetOldManSpriteSheet(), destinationRectangle, sourceRectangle, Color.White); }