Use WASD to move. Hold SPACE to run. Running can only last 2 seconds max before a 3 second cooldown period. Collect g r e e n. Enemy places a node a certain distance away from itself, then moves towards it before repeating this process. If the player is inside a zone when the node updates, the enemy will target the player unless either a wall is in the way or the player manages to leave the zone.
Pros: Does not get stuck on walls. Easy to implement in games. Can be improved with minimal effort. Cons: Wandering movements are entirely random. Does not pursue the player after losing sight. Does not try to find the player. Works best with multiple enemies. Code is not optimal.