]> Dogcows Code - chaz/carfire/blobdiff - CarFire/CarFire/CarFire/Projectile.cs
better player movement (walls are no longer sticky)
[chaz/carfire] / CarFire / CarFire / CarFire / Projectile.cs
index 95d0d6e83525c8405d922953f7ad5ac50a7e6a82..a1d7f2779ccb7d8de22f23885d44817f4b2fdab8 100644 (file)
@@ -70,7 +70,7 @@ namespace CarFire
                 moveDown = true;\r
             else if (velocity.Y < 0)\r
                 moveUp = true;\r
-            Point destination = MovementManager.GetNeighborCell(mMotion.Coordinates, moveLeft, moveRight, moveUp, moveDown);\r
+            Point destination = MovementManager.GetNeighbor(mMotion.Coordinates, moveLeft, moveRight, moveUp, moveDown);\r
             mMotion.Update(timeSpan, moveLeft, moveRight, moveUp, moveDown);\r
             \r
             \r
@@ -96,6 +96,7 @@ namespace CarFire
         public int PixelX { get { return pixelX; } set { pixelX = value; } }\r
         public int PixelY { get { return pixelY; } set { pixelY = value; } }\r
         public int Damage { get { return damage; } set { damage = value; } }\r
+        public int CharacterIndex { get { return mCharacterIndex; } }\r
         public Vector2 Position { get { return mMotion.Position; } }\r
         public Point Coordinates { get { return mMotion.Coordinates; } }\r
     }\r
This page took 0.019211 seconds and 4 git commands to generate.