]> Dogcows Code - chaz/carfire/blobdiff - Project06/CS 3505 Project 06/CS 3505 Project 06/Game06.cs
Switched to using the asynchronous NetworkSession calls per request.
[chaz/carfire] / Project06 / CS 3505 Project 06 / CS 3505 Project 06 / Game06.cs
index c6f21f66ea14396d518c0abcdad00476bfa1789a..348655eeb07539f0128f2b4ece7c69a178a03d2b 100644 (file)
@@ -35,12 +35,11 @@ namespace CS_3505_Project_06
             graphics = new GraphicsDeviceManager(this);\r
             Content.RootDirectory = "Content";\r
 \r
-            // Make the game object.  The game is currently called 'testHarness'.\r
+            Components.Add(new GamerServicesComponent(this));\r
 \r
             lobby = new lobbyGUI();\r
             deterministicGame = new TestHarness();\r
             networkGame = new NetworkGame(lobby, deterministicGame);\r
-            Components.Add(new GamerServicesComponent(this));\r
         }\r
 \r
         /// <summary>\r
@@ -56,8 +55,7 @@ namespace CS_3505_Project_06
             IsFixedTimeStep = true;\r
             TargetElapsedTime = networkGame.TargetTimeSpan;\r
 \r
-            // For debugging - reset the mouse position to the center of the window.\r
-\r
+            // DEBUG: This is for the test harness.\r
             Mouse.SetPosition(400, 300);\r
 \r
             // Allow the base class to initialize.\r
@@ -75,8 +73,6 @@ namespace CS_3505_Project_06
 \r
             spriteBatch = new SpriteBatch(GraphicsDevice);\r
 \r
-            networkGame.font = Content.Load<SpriteFont>("InstructionFont");\r
-\r
             lobby.LoadContent(Content, graphics);\r
             deterministicGame.LoadContent(Content);\r
         }\r
@@ -110,7 +106,8 @@ namespace CS_3505_Project_06
         /// <param name="gameTime">Provides a snapshot of timing values.</param>\r
         protected override void Draw(GameTime gameTime)\r
         {\r
-            GraphicsDevice.Clear(new Color(16, 16, 16, 255));  // Needed by the test harness, should be removed for the real game.\r
+            // DEBUG: This is for the test harness.\r
+            GraphicsDevice.Clear(new Color(16, 16, 16, 255));\r
 \r
             spriteBatch.Begin();\r
 \r
This page took 0.022264 seconds and 4 git commands to generate.