Ejemplo n.º 1
0
 /// <summary>
 /// Allows the game to perform any initialization it needs to before starting to run.
 /// This is where it can query for any required services and load any non-graphic
 /// related content.  Calling base.Initialize will enumerate through any components
 /// and initialize them as well.
 /// </summary>
 protected override void Initialize()
 {
     this.IsMouseVisible = true;
     Window.AllowUserResizing = true;
     this.IsFixedTimeStep = false;
     loading = new LoadingScreen(Content);
     loadingThread = new Thread(Load);
     loadingThread.Start();
     base.Initialize();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Allows the game to perform any initialization it needs to before starting to run.
 /// This is where it can query for any required services and load any non-graphic
 /// related content.  Calling base.Initialize will enumerate through any components
 /// and initialize them as well.
 /// </summary>
 protected override void Initialize()
 {
     this.IsFixedTimeStep = false;
     this.IsMouseVisible = true;
     Window.AllowUserResizing = false;
     Window.Title = "Best Rubik's Cube Game";
     this.IsFixedTimeStep = false;
     loading = new LoadingScreen(Content);
     loadingThread = new Thread(Load);
     loadingThread.Start();
     add = new AddMusic();
     base.Initialize();
 }