MazeMaker
Robert Dell, Pascal Developer



MazeMaker

By Robert Dell
8 July 1998

Contents

Download
Concept
Implementation




Download

MazeMaker (Pascal source code, project and sample program)
(updated 8/5/98)


Concept

Once you create the parameters, you want to then create a data format that will similate one room and a grid of rooms to correspond to the maze you have. Preset the one room to all walls and floors/ceilings and copy that to the rest of the grid.

Implementation

The way I have it accomplished this is to move to the proper screen location and draw a line on top of the room for the north wall, left side for west, right side for east, and bottom for south. Currently I have it set for 5 pixels wide by 5 pixels tall. The program I have submitted called mazemaker.p shows a simple 2d maze with 4 cardinal directions and automaticly sets itself up the proper size of your screen. The maximum size of the maze I preset with a constant is 800 by 800 and those numbers are simply pulled out of the air and have no purpose in the concept of generating the maze. It's not very easy to leave and offers no easy interface and does it with brute force causing the fastest maze generating routine possible. I'm not trying to win awards for the best user interface but I bet this routine source code will be the core of all future maze generating routines.


Copyright ©1998 Robert Dell

Web page by Bill Catambay
Updated: 8-Jul-1998