- // move upleft\r
- keysPressed.Contains<Keys>(Keys.Left);\r
- if (keysPressed.Contains<Keys>(Keys.Up) && keysPressed.Contains<Keys>(Keys.Left) && theMap.IsCellOpen(gridX - 1, gridY - 1))\r
- {\r
- gridX -= 1;\r
- gridY -= 1;\r
- movementCoolDown = moveCoolDown;\r
- }\r
- // move upright\r
- else if (keysPressed.Contains<Keys>(Keys.Up) && keysPressed.Contains<Keys>(Keys.Right) && theMap.IsCellOpen(gridX + 1, gridY - 1))\r
- {\r
- gridX += 1;\r
- gridY -= 1;\r
- movementCoolDown = moveCoolDown;\r
- }\r
- // move downleft\r
- else if (keysPressed.Contains<Keys>(Keys.Down) && keysPressed.Contains<Keys>(Keys.Left) && theMap.IsCellOpen(gridX - 1, gridY + 1))\r
- {\r
- gridX -= 1;\r
- gridY += 1;\r
- movementCoolDown = moveCoolDown;\r
- }\r
- // move downright\r
- else if (keysPressed.Contains<Keys>(Keys.Down) && keysPressed.Contains<Keys>(Keys.Right) && theMap.IsCellOpen(gridX + 1, gridY + 1))\r
- {\r
- gridX += 1;\r
- gridY += 1;\r
- movementCoolDown = moveCoolDown;\r
- }\r
- // move up\r
- else if (keysPressed.Contains<Keys>(Keys.Up) && theMap.IsCellOpen(gridX, gridY - 1))\r