-\r
-// DEBUG: for map testing\r
-//#define MAP_TESTING\r
-\r
using System;\r
using System.Collections.Generic;\r
using System.Linq;\r
IScreenManager screenManager;\r
IDeterministicGame deterministicGame;\r
\r
-#if MAP_TESTING\r
- Map map;\r
-#endif\r
-\r
public XnaGame()\r
{\r
graphics = new GraphicsDeviceManager(this);\r
base.Initialize();\r
}\r
\r
+\r
/// <summary>\r
/// LoadContent will be called once per game and is the place to load\r
/// all of your content.\r
\r
screenManager.LoadContent(Content, graphics);\r
deterministicGame.LoadContent(Content);\r
-\r
-#if MAP_TESTING\r
- map = Content.Load<Map>("Maps/sandbox");\r
- Map.DefaultTile = Content.Load<Texture2D>("default");\r
- map.CenterCell = new Vector2(7, 7);\r
-#endif\r
}\r
\r
/// <summary>\r
/// <param name="gameTime">Provides a snapshot of timing values.</param>\r
protected override void Draw(GameTime gameTime)\r
{\r
- GraphicsDevice.Clear(Color.Red);\r
-\r
spriteBatch.Begin();\r
networkGame.Draw(gameTime, spriteBatch);\r
-#if MAP_TESTING\r
- map.Draw(spriteBatch);\r
-#endif\r
spriteBatch.End();\r
\r
base.Draw(gameTime);\r