此代码用于基本上显示用户触摸屏幕的次数。但问题是每次更新方法(XNA 4.0)时,先前的纹理都是 Drawn on ,因此无法读取计数。每次重绘时如何清除 SpriteFont 纹理?
//Code used to draw the Sprite Font.!
batch.DrawString(fontSegoe, "Touches "+count, new Vector2(100, 100), Color.Black, 0, Vector2.Zero, 1, SpriteEffects.None, 0f);