ScratchData LogoScratchData
Back to hotsaucehater's profile

Maze Generator v1.3

HOhotsaucehater•Created December 28, 2015
Maze Generator v1.3
35
26
518 views
View on Scratch

Description

This is a quick maze generator, where you can set the height and width, and play it. Green is the finish. Max width of 30 and height of 30. Press space to show solution. Currently working on highscores, and larger mazes I created the algorithm for this based off of: https://en.wikipedia.org/wiki/Maze_generation_algorithm, using the depth-first method, and plan on adding an instant option (I would have added in the release, but it had errors). How it Works: Basically, the pen finds all of the possible directions it could move, picks a random one, moves there, and repeats this. If it finds that there are no possible paths, it backtracks until it finds a possible path, and repeats. Note: THIS IS NOT PERFECT. There may be illogical parts, especially with the finish as it is. Versions: v1.3 - Added timer, new win screen, and instant maze solver (press space to use) v1.2 - Fixed player occasionally getting stuck in walls v1.1 - Added in playing of mazes v1.0 - Initial release

Project Details

Project ID92646099
CreatedDecember 28, 2015
Last ModifiedAugust 17, 2023
SharedDecember 28, 2015
Visibilityvisible
CommentsAllowed