title: Generating Waypoints for a Tower Defense Game
body: <p>I'm currently working on a tower defense game for iOS using objective-c and am running into problems as far as generating a random path for each level. After researching on google, I only found bezier path generators, which is not what I'm looking for. I basically need an algorithm that generates random waypoints which are connected to each other with straight lines.</p>
  
  <pre><code># * * * # / / / / /   
  / / / / * / # * # /       
  / / / / * / * / * /
  / # * * # / * / * /
  / * / / / / * / * /
  / # * * * * # / * /
  / / / / / / / / # #   
  </code></pre>
  
  <p>The above is a perfect example of what I would need, where all the waypoints(#) connect either vertically or horizontally with each other so the resulting grid has straight, connecting lines. Any help would be great. Thanks.</p>