public void draw(SpriteBatch spriteBatch, Vector2 location) { if (isBeingDrawn) { Location = location; Sprite.draw(spriteBatch, location); } }
public void Draw(SpriteBatch spriteBatch) { Coin.draw(spriteBatch, coinLocation); spriteBatch.Begin(); if (Game.DebugMode) { spriteBatch.DrawString(Font, "DEBUG MODE", new Vector2(32 * 2, 50), Color.White); } spriteBatch.DrawString(Font, "MARIO", new Vector2(32 * 2, 10), Color.White); spriteBatch.DrawString(Font, Score.ToString("D6"), new Vector2(32 * 2, 30), Color.White); spriteBatch.DrawString(Font, "x" + Coins.ToString("D2"), new Vector2(32 * 8, 30), Color.White); spriteBatch.DrawString(Font, "WORLD", new Vector2(32 * 14, 10), Color.White); spriteBatch.DrawString(Font, World, new Vector2(32 * 14, 30), Color.White); spriteBatch.DrawString(Font, "TIME", new Vector2(32 * 20, 10), Color.White); spriteBatch.DrawString(Font, Time.ToString("D3"), new Vector2(32 * 20, 30), Color.White); spriteBatch.End(); DrawScores(spriteBatch); }