Exemplo n.º 1
0
 public void Update(GameTime gameTime, GameWindow gameWindow, ContentManager content, GraphicsDevice graphicsDevice)
 {
     gameOver.Update(Player, startMenu, gameWindow, this, content, graphicsDevice);
     if (!startMenu.GameStarted)
     {
         startMenu.Update(gameTime, gameWindow);
     }
     else if (!gameOver.isGameOver)
     {
         Player.Update(gameTime, gameWindow, Platforms, ref shift, playerBullets, content, Enemies, Bullets);
         playerBullets.Update(gameTime, gameWindow, Platforms, ref shift);
         Platforms.Update(gameTime, gameWindow, Player, shift);
         Enemies.Update(gameTime, gameWindow, Platforms, shift, Player, playerBullets, content);
         PlayerBonuses.Update(gameTime, gameWindow, Platforms, shift, Player, content);
         Bullets.Update(gameTime, gameWindow, Platforms, shift);
         Enemies.Attack(gameTime, Player, Bullets, content);
         HpBar.Update(Player);
     }
 }