Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Maze generation script for Unity. http://technicat.com/
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Type||Name||Latest commit message||Commit time|
|Failed to load latest commit information.|
This code is available under the MIT License (see the LICENSE file). Fugu Maze started out as an exercise in implementing a maze-generation algorithm I found on the Maze Generation article in Wikipedia but turned out to be moderately popular as a Mac widget and iOS/Android app (note this project does not include the code specific to the mobile versions). It's also available on several Unity game portals. The maze generation takes place in Maze.js, which is attached to the Maze game object. (The script is also on the Unify Community wiki) The script constructs a grid of cells, each one a "Room" with four walls, floor and ceiling, and uses a prefab textured plane for each of those, then selectively removes walls until there is a path from any one room to another. The "size" property is set to 5 for a 5x5 (five rooms by five rooms) maze and can be adjusted, but of course larger mazes have greater performance (mostly rendering) requirements. The script was originally contributed on the Unity wiki, http://wiki.unity3d.com/ and a sample maze project with first-person navigation is on the Asset Store. Direct any questions to the Fugu Games Facebook page - http://facebook.com/fugugames - or the Unity forum, http://forum.unity3d.com/threads/80912-Fugu-Games-on-the-Asset-Store