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=f67652c2fe85f9ba6c71dedbab26760775004e00;hp=c6f21f66ea14396d518c0abcdad00476bfa1789a;hpb=fda045bce6b1a1ad4dc9b7ccbb33fc1c536a5957;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 c6f21f6..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,12 +35,11 @@ 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(); networkGame = new NetworkGame(lobby, deterministicGame); - Components.Add(new GamerServicesComponent(this)); } /// @@ -52,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(); } @@ -75,8 +71,6 @@ namespace CS_3505_Project_06 spriteBatch = new SpriteBatch(GraphicsDevice); - networkGame.font = Content.Load("InstructionFont"); - lobby.LoadContent(Content, graphics); deterministicGame.LoadContent(Content); } @@ -110,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();