Jump to content

Random Maze Generator


pato_reilly
 Share

Recommended Posts

Hi,

 

I thought it would be cool to see more maze games so I made an example with Phaser:

 

http://www.patricko.byethost9.com/testproj/index2.html

 

It uses the Depth-first search algorithm.  I found numerous examples of its implementation here:

 

http://rosettacode.org/wiki/Maze_generation#JavaScript

 

There are several other maze generation algorithms, but 'depth-first' is the most commonly used for games.

 

I kept the example basic but did implement it with Phaser tiles. I'm pretty sure there is potential to do some cool stuff on top of the maze using the Phaser tiles functionality.

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 weeks later...
  • 11 months later...
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...