Advertisement
Guest User

Stackoverflow Question.

a guest
Jul 24th, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.00 KB | None | 0 0
  1. loadingMenu.StartLoading += (object sender, EventArgs args) =>
  2.                 {
  3.                     if (!_gameActive)
  4.                     {
  5.                         Components.Add(_game = new ParadoxGame(this));
  6.                         _game.Initialize(); //Initializes the Game so that the loading can begin.
  7.                         _gameActive = true;
  8.                     }
  9.                 };
  10.  
  11. //A static event.
  12. ParadoxGame.FinishedLoading += (object sender, EventArgs args) =>
  13.                 {
  14.                     _gameLoaded = true;
  15.                 };
  16.  
  17. //The new region for the Loading Screen Update:
  18. if (!_gameLoaded && _gameActive) //This means the game is loading still, therefore the loading screen should be active.
  19.             {
  20.                 _gameScreenList[2].UpdateMenu();
  21.             }
  22.  
  23. //-----This is the ParadoxGame Component Update Method, is it good?
  24.  
  25. if (DoneLoading) //A private boolean variable.
  26.             {
  27.                 GameEngineTEST.Update(gameTime);
  28.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement