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