Example #1
0
 /// <summary>
 /// Helper methods to make drawing uniform. If it ever changes, we only have to do it here.
 /// Note: The color parameter doesn't actually specify it's color. It does some tinting
 ///  because of the way SpriteFonts work.
 /// </summary>
 public void DrawString(SpriteFont font, string text, UVector2 position, Color color)
 {
     SpriteBatch.DrawString(font, text, position.ToVector2(), color);
 }
Example #2
0
 /// <summary>
 /// Helper methods to make drawing uniform. If it ever changes, we only have to do it here.
 /// </summary>
 public void Draw(Sprite sprite, UVector2 position)
 {
     sprite.Draw(SpriteBatch, position.ToVector2());
 }