示例#1
0
 public override void Update(GameTime gameTime)
 {
     base.Update(gameTime);
     MoveBackground();
     DestroyPlatforms();
     DestroyBullets();
     spawnPlatforms();
     spawnBullets();
     score.AddMeters(METERS_PER_SECOND * player.getSpeedModifier());
     if (checkDeath())
     {
         GameOver.Score = score;
         Canabalt.GameStateManager.SwitchTo("GameOver");
     }
 }