示例#1
0
 public static void Draw(SpriteBatch spriteBatch, Vector2 cameraPosition)
 {
     spriteBatch.DrawString(TextureManager.marioFont, "MARIO", new Vector2(10, 10), Color.White);
     spriteBatch.DrawString(TextureManager.marioFont, "" + Score, new Vector2(10, 30), Color.White);
     coin.Draw(spriteBatch, new Vector2(0, 0));
     spriteBatch.DrawString(TextureManager.marioFont, " x" + numCoins, new Vector2(200, 30), Color.White);
     spriteBatch.DrawString(TextureManager.marioFont, "WORLD", new Vector2(300, 10), Color.White);
     spriteBatch.DrawString(TextureManager.marioFont, "1-1", new Vector2(300, 30), Color.White);
     spriteBatch.DrawString(TextureManager.marioFont, "TIME", new Vector2(400, 10), Color.White);
     spriteBatch.DrawString(TextureManager.marioFont, "" + (int)(Time.TotalSeconds), new Vector2(400, 30), Color.White);
     if (Game1.jumpOnlyMode)
     {
         spriteBatch.DrawString(TextureManager.marioFont, "Jump Only Mode", new Vector2(10, 75), Color.White);
     }
 }