public static void Draw(this SpriteBatch batch, Texture2D tex, Vector2 p, Color c, float a, Vector2 s) { batch.Draw(tex, p, null, c, a, tex.Center(), s, SpriteEffects.None, 0f); }
public Sprite(string name, Texture2D texture2D) : this(name, texture2D, texture2D.Center(), new Rectangle(0, 0, texture2D.Width, texture2D.Height)) { }