Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
A jam submission

Random Maze GeneratorView project page

A simple tool made for GameMaker
Submitted by LucasNazatoArt (@LucasNazatoArt) — 2 hours, 10 minutes before the deadline
Add to collection

Play tool

Random Maze Generator's itch.io page

Is the tool to be used for a specific game engine?
GameMaker

Instructions for use
This tool uses a DS Grid to generate the maze and allows you to control the width and height, and if there is a border or not.

The tool is composed basically of a script and some macros. The script uses the Recursive Backtracking algorithm to create the maze, and place the floor and wall tiles. This is the script:

maze_generator(width, height, border)

Because I'm submitting this to the Game Tool Jam, I couldn't finish everything, so there are some limitations:

The width and height must be odd numbers, otherwise the maze will not be created properly. Also, you can set the width and height to different values, but your room width and height must have the same aspect ratio, or it will end up looking stretched/squashed.

There are examples of it with the tool.

As for the border argument, you can use two:

1 = with border

0 = without border

The grid cells width and height are defined to be 32 pixels each, but that can be easily changed in the Macro Settings, where these values are assigned.

The code is not optimized and there is a lack of comments in some parts, sorry about that, but I'll improve that in the future.

Any feedback/criticism is welcome, as this is my first project to be submitted I'm trying to learn as much as I can. I'm available for questions if you have any.

Leave a comment

Log in with itch.io to leave a comment.

Comments

No one has posted a comment yet