A random maze generator.
Author: | Colin Tomele (profile at wordpress.org) |
WordPress version required: | 3 |
WordPress version tested: | 4.9.8 |
Plugin version: | 3 |
Added to WordPress repository: | 21-08-2018 |
Last updated: | 25-08-2018
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | |
Total downloads: | 1 447 |
Active installs: | 40+ |
Click to start download
|
FAQ
Installation Instructions
Just install like any other plugin. Put a [maniacal_maze] on an empty page or post to start the fun!
ChangeLog
3.0
- Overhauled the code so most of the data is in javascript
- Created handlers for touch and keyboard
- Created logic to check for allowed moves
- The maze is now solvable and should work with mouse, touch or arrow keys, on phone, tablet and PC.
2.2
- FIxed the shortcode so it returns, not echos.
2.1
- Tweaked the display. Not 100% satisfied but it works well enough for now.
2.0
- We have attained version 2, a fully printable, solveable, random maze!
- I rethought the display code to make sure it fits your display as least somewhat.
- I added a green and red tile as a start and end point.
1.1
- I replaced the current display code with one that creates a canvas image.
- I originally had it draw walls, except for the exit walls. This caused a problem with edges midding chunks.
- I finally had it draw a black background, then cut our the floor.
- It then cut out the walls it needed to making things look better.
- The ground toggles between 2 grays.
1.0
- After many changes and optimizations to how I was doing things, I made so that it
- Marks itself used. Increments the total counter.
- Looks for walls that are not bedrock or in use already.
- Randomly picks a wall, marks that bit, then in the new room, marks the opposite wall bit
- It then moves to the new room.
- If it can’t find an exit, it moves back one in the history and repeats until it finds a new room
- What REALLY REALLY helps is when you map height to h and width to w in the history instead of the other way around.
0.3
- Changed how I enqueueued the css framework. Hopefully this doesn’t mess up any themes. If so I’ll have to compile a css file with w3 under #maniacal_maze_mazer
- Moved the maze creating code over to a function.
- Renamed the variable $doors to $walls since it does the exact opposite of what I named it.
- Started working on the function for starting the process with the first two steps in the loop, manually in a for().
- Took out my test code for error checking and resubmitting to WP Repository!
0.1
- First release to submit to WordPress for inclusion into the repository.
- Maze width and height page with error checking finished.
- Link is created and page refreshed to the new link.
- Links can be entered by hand and easy to change.
- Links are error checked.
- Array of cells created with empty value for doors.
- Array of bitwise “bedrock” created to make it easier when finding valid walls.
- CSS done using W3.CSS.
- Created jQuery and javascript to handle buttons turning red as well as sizing cell to fit your display and to update this if your viewport size changes.