I'm having some problems with line of sight behavior.
Here is a link to play my prototype...
localhost
As you can see sometimes enemies fail to go towards the purple box in the middle and just go by the walls. Also enemies might climb over the player. How do I fix this? Any suggestions?