示例#1
0
 public void Draw(
     GameTime gameTime,
     SpriteBatch spriteBatch)
 {
     spriteBatch.Draw(
         fundo,
         new Rectangle(0, 0, gw.ClientBounds.Width,
                       gw.ClientBounds.Height),
         Color.White);
     selTeclado.Draw(gameTime, spriteBatch);
     selGamepad.Draw(gameTime, spriteBatch);
 }
示例#2
0
 public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     spriteBatch.Draw(fundo, new Rectangle(0, 0, gw.ClientBounds.Width,
                                           gw.ClientBounds.Height), Color.White);
     addVelNave.Draw(gameTime, spriteBatch);
     addVelTiro.Draw(gameTime, spriteBatch);
     addVelCurva.Draw(gameTime, spriteBatch);
     resetar.Draw(gameTime, spriteBatch);
     spriteBatch.DrawString(Game1.fonte, "Pontos restantes: " + pontos, new Vector2(100, 100), Color.White);
     spriteBatch.DrawString(Game1.fonte, "Velocidade da nave: " + VelNave, new Vector2(100, 130), Color.White);
     spriteBatch.DrawString(Game1.fonte, "Velocidade do tiro: " + VelTiro, new Vector2(100, 180), Color.White);
     spriteBatch.DrawString(Game1.fonte, "Velocidade da curva: " + VelCurva, new Vector2(100, 230), Color.White);
     spriteBatch.DrawString(Game1.fonte, "Resetar ", new Vector2(100, 355), Color.White);
 }