X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=Project06%2FCS%203505%20Project%2006%2FCS%203505%20Project%2006%2FGame06.cs;h=8953452fba98ce55bd64c1d8c2bdf75b53a6dc87;hb=8c50e423a4325590132a2e921c73ed3439db7bbc;hp=2d8fb75b25043d3592a3a3b25ecaa7ab81e423e9;hpb=bc3db44f8f717780cce18d5384272f501984e446;p=chaz%2Fcarfire diff --git a/Project06/CS 3505 Project 06/CS 3505 Project 06/Game06.cs b/Project06/CS 3505 Project 06/CS 3505 Project 06/Game06.cs index 2d8fb75..8953452 100644 --- a/Project06/CS 3505 Project 06/CS 3505 Project 06/Game06.cs +++ b/Project06/CS 3505 Project 06/CS 3505 Project 06/Game06.cs @@ -35,7 +35,7 @@ namespace CS_3505_Project_06 graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; - // Make the game object. The game is currently called 'testHarness'. + Components.Add(new GamerServicesComponent(this)); lobby = new lobbyGUI(); deterministicGame = new TestHarness(); @@ -51,16 +51,13 @@ namespace CS_3505_Project_06 protected override void Initialize() { // Set a fixed time span of 1/60th of a second. - IsFixedTimeStep = true; TargetElapsedTime = networkGame.TargetTimeSpan; - // For debugging - reset the mouse position to the center of the window. - + // DEBUG: This is for the test harness. Mouse.SetPosition(400, 300); // Allow the base class to initialize. - base.Initialize(); } @@ -74,8 +71,6 @@ namespace CS_3505_Project_06 spriteBatch = new SpriteBatch(GraphicsDevice); - networkGame.font = Content.Load("InstructionFont"); - lobby.LoadContent(Content, graphics); deterministicGame.LoadContent(Content); } @@ -109,7 +104,8 @@ namespace CS_3505_Project_06 /// Provides a snapshot of timing values. protected override void Draw(GameTime gameTime) { - GraphicsDevice.Clear(new Color(16, 16, 16, 255)); // Needed by the test harness, should be removed for the real game. + // DEBUG: This is for the test harness. + GraphicsDevice.Clear(new Color(16, 16, 16, 255)); spriteBatch.Begin();