Changed speed of player and projectiles
authorKyle <Kyle@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Tue, 27 Apr 2010 05:05:01 +0000 (05:05 +0000)
committerKyle <Kyle@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Tue, 27 Apr 2010 05:05:01 +0000 (05:05 +0000)
git-svn-id: https://bd85.net/svn/cs3505_group@158 92bb83a3-7c8f-8a45-bc97-515c4e399668

CarFire/CarFire/CarFire/Player.cs
CarFire/CarFire/CarFire/Ranged.cs

index 5846050..b531255 100644 (file)
@@ -14,7 +14,7 @@ namespace CarFire
     {\r
         #region Member variables\r
         //The number of frames between each projectile is spawned.\r
-        const float basePlayerSpeed = 4.0f;\r
+        const float basePlayerSpeed = 8.0f;\r
         const int shootCoolDown = 18;\r
         String CharName;\r
         Game game;\r
@@ -57,7 +57,7 @@ namespace CarFire
             mPlayerIndex = playerIndex;\r
 \r
             // Speed is the number of grid cells you can move through per second.\r
-            mMotion = new MovementManager(position, 25.0f);\r
+            mMotion = new MovementManager(position, basePlayerSpeed);\r
         }\r
         public void causeDamageTo(int amount)\r
         {\r
@@ -103,7 +103,8 @@ namespace CarFire
                 }\r
             }\r
 \r
-            if (direction != Direction.None && !keysPressed.Contains(Keys.LeftControl)) mMotion.Update(timeSpan, direction);\r
+            if (direction != Direction.None && !keysPressed.Contains(Keys.LeftControl)) \r
+                mMotion.Update(timeSpan, direction);\r
             else mMotion.LockUpdate(timeSpan, moveLeft, moveRight, moveUp, moveDown);\r
         }\r
         \r
index b1203dd..4121f94 100644 (file)
@@ -20,6 +20,7 @@ namespace CarFire
         Texture2D projectileModel;\r
 \r
         //Used to draw projectiles\r
+        const int baseProjectileSpeed = 18;\r
         int projectileSpeed;\r
         int projectileCoolDown;\r
         #endregion\r
@@ -28,7 +29,7 @@ namespace CarFire
         public Ranged(Game theGame, String Name, Point position, int playerIndex)\r
             : base(theGame, Name, position, playerIndex, baseHealth, baseDamage)\r
         {\r
-            projectileSpeed = 8;\r
+            projectileSpeed = baseProjectileSpeed;\r
         }\r
         #endregion\r
 \r
This page took 0.025542 seconds and 4 git commands to generate.