]> Dogcows Code - chaz/carfire/blobdiff - Project06/CS 3505 Project 06/CS 3505 Project 06/Game06.cs
Event packets implemented with complete latency readjusting.
[chaz/carfire] / Project06 / CS 3505 Project 06 / CS 3505 Project 06 / Game06.cs
index 2d8fb75b25043d3592a3a3b25ecaa7ab81e423e9..8953452fba98ce55bd64c1d8c2bdf75b53a6dc87 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
@@ -51,16 +51,13 @@ namespace CS_3505_Project_06
         protected override void Initialize()\r
         {\r
             // Set a fixed time span of 1/60th of a second.\r
-\r
             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
-\r
             base.Initialize();\r
         }\r
 \r
@@ -74,8 +71,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 +104,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.028675 seconds and 4 git commands to generate.