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
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
\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
/// <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