int coolDown;\r
Texture2D charModel;\r
Texture2D projectileModel;\r
+ bool isAttacking;\r
int velocityX;\r
int velocityY;\r
#endregion \r
\r
/*Zac\r
*/\r
+ \r
animateMelee = new AnimateMelee(contentManager, this); \r
\r
}\r
Point aPosition = Game.State.Map.GetPointFromCoordinates(Motion.Position);\r
Vector2 drawPosition = new Vector2(aPosition.X, aPosition.Y);\r
//spriteBatch.Draw(charModel, position, Color.White);\r
+ if (isAttacking)\r
animateMelee.AttackLeft(spriteBatch, drawPosition);\r
\r
}\r
coolDown--;\r
else if (coolDown == 0)\r
{\r
- \r
+ isAttacking = false;\r
if (keysPressed.Contains<Keys>(Keys.Space))\r
{\r
+ isAttacking = true;\r
coolDown = hitCoolDown;\r
int startX = Coordinates.X;\r
int startY = Coordinates.Y;\r