X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=CarFire%2FCarFire%2FCarFire%2FDisplay.cs;h=5a85fdc9feddb648395256dccc0bf16af741bacc;hb=f74a6d5893ee639cb45c2190605145365781e6eb;hp=c65075f3fb3a2209d6364ab00d69ad7bbc656214;hpb=8e3efc188caf3e6c4132e9291fcc2ba1e9213293;p=chaz%2Fcarfire
diff --git a/CarFire/CarFire/CarFire/Display.cs b/CarFire/CarFire/CarFire/Display.cs
index c65075f..5a85fdc 100644
--- a/CarFire/CarFire/CarFire/Display.cs
+++ b/CarFire/CarFire/CarFire/Display.cs
@@ -1,4 +1,10 @@
-using System;
+#undef SINGLE_TEST
+
+// Define INGAME_ZOOM to allow zooming in and out with
+// the PageUp and PageDown keys.
+#define INGAME_ZOOM
+
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -9,11 +15,23 @@ using Microsoft.Xna.Framework.Input;
namespace CarFire
{
+ ///
+ /// This class is responsible for controlling what draws to the screen when the game is running.
+ ///
public class Display
{
+ bool playerChosen = false;
List mProjectiles = new List();
- List mCharacters = new List();
+ //List mCharacters = new List();
+ IPlayer[] mCharacters = new IPlayer[4];
+ Texture2D everything;
+ Texture2D projectile1;
Map mMap;
+ int currentCenterX = 5;
+ int currentCenterY = 5;
+#if SINGLE_TEST
+ List mLastPressedKeys = new List();
+#endif
public Display()
{
/*
@@ -28,13 +46,11 @@ namespace CarFire
///
public void LoadContent(ContentManager contentManager)
{
- Texture2D everything = contentManager.Load("cs");
+ everything = contentManager.Load("cs");
+ projectile1 = contentManager.Load("projectile");
mMap = contentManager.Load