]> Dogcows Code - chaz/carfire/blobdiff - CarFire/CarFire/CarFire/Projectile.cs
Incorporated networking into the game
[chaz/carfire] / CarFire / CarFire / CarFire / Projectile.cs
index 1dd5e08eaf1e1ac40a9f5e73e056fe81960eada6..cabb38d5ba410b2fb700c79d965f43557c458a41 100644 (file)
@@ -51,6 +51,7 @@ namespace CarFire
             gridY = _gridY;\r
             pixelX = _pixelX;\r
             pixelY = _pixelY;\r
+            damage = 20;\r
         }\r
         public void Update(TimeSpan timespan)\r
         {\r
@@ -64,13 +65,13 @@ namespace CarFire
             //If the projectile will be moving to a new grid position we need to check to see if it is occupied.\r
             if ((int)((pixelX + velocity.X) / Map.PixelsToUnitSquares) != gridX || (int)((pixelY + velocity.Y) / Map.PixelsToUnitSquares) != gridY)\r
             {\r
-                bool open = theMap.IsCellOpen((int)((pixelX + velocity.X) /Map.PixelsToUnitSquares), (int)((pixelY + velocity.Y) / Map.PixelsToUnitSquares));\r
+                //bool open = theMap.IsCellOpen((int)((pixelX + velocity.X) /Map.PixelsToUnitSquares), (int)((pixelY + velocity.Y) / Map.PixelsToUnitSquares));\r
                 //If open just move this projectile there\r
                 //***Map doesn't need to know that this projectile is there because players/monsters are allowed\r
                 // to move into the path of projectiles.\r
-                if (open)\r
+                //if (open)\r
                 {\r
-                Console.WriteLine("pixelX:" + pixelX + " " + " pixelY: "+ pixelY);\r
+                //Console.WriteLine("pixelX:" + pixelX + " " + " pixelY: "+ pixelY);\r
                     pixelX += (int)velocity.X;\r
                     pixelY += (int)velocity.Y;\r
                     gridX = (int)(pixelX /Map.PixelsToUnitSquares);\r
This page took 0.025048 seconds and 4 git commands to generate.