]> 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 2d8fb75b25043d3592a3a3b25ecaa7ab81e423e9..348655eeb07539f0128f2b4ece7c69a178a03d2b 100644 (file)
@@ -35,7 +35,7 @@ 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
@@ -55,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
@@ -74,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
@@ -109,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.023001 seconds and 4 git commands to generate.