这段代码主要用于显示用户触摸屏幕的次数。如何在每次重绘时清除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);发布于 2012-01-16 05:50:34
确保在绘图开始时清除屏幕()
GraphicsDevice.Clear(Color.Black); //Use any color of your choicehttps://stackoverflow.com/questions/8872919
复制相似问题