From: Kyle Date: Mon, 26 Apr 2010 01:33:48 +0000 (+0000) Subject: Melee has a cooldown now. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=1959205421a9a20c48133f93102e467b0f8e26f8;p=chaz%2Fcarfire Melee has a cooldown now. git-svn-id: https://bd85.net/svn/cs3505_group@146 92bb83a3-7c8f-8a45-bc97-515c4e399668 --- diff --git a/CarFire/CarFire/CarFire/Melee.cs b/CarFire/CarFire/CarFire/Melee.cs index 38be303..f113824 100644 --- a/CarFire/CarFire/CarFire/Melee.cs +++ b/CarFire/CarFire/CarFire/Melee.cs @@ -53,8 +53,10 @@ namespace CarFire coolDown--; else if (coolDown == 0) { + if (keysPressed.Contains(Keys.Space)) { + coolDown = hitCoolDown; int startX = Coordinates.X; int startY = Coordinates.Y; if (Motion.Direction == Direction.Down || Motion.Direction == Direction.LowerLeft || Motion.Direction == Direction.LowerRight)