procedurally generated levels are more reasonable now

There were a few problems before:

  • Exit spawns too close to player
  • Exit spawns inside wall
  • Walls trapped player, making most of map inaccessible

I implemented Manhattan distance calculation to fix most of this. It'll also come in handy later when I start on enemy and familiar AI.

levelemgen/em2.gif