
MAZE40.BAS - GW-BASIC, perfect maze generator, 40 column text
I first learned about procedural maze generation from C. Regena, in COMPUTE's First Book of TI GAMES, for the TI-99/4A home computer. The first program example is a maze generator by Charles Bond, translated for the TI by C. Regena. It explained how you could send a path forward, recording the direction, so when the path got stuck (nowhere to go), it could back trace. During the back trace, this section would never be visited again, so this is where you "solidify" or draw the actual resultant maze. During back tracing, you check all directions, to make sure you never lose a possible divergent path. This way, every bit of the canvas is used, and the maze is "perfect (meaning only 1 solution from any given 2 points, and all points are reachable).
My playlists:
--------------------
- Voxel: https://youtu.be/watch?v=XCVWEuhCCDM&list=PLjnbT4UISq0bQF1g85tE9jTrKfEtdRYlY
- Road: https://youtu.be/watch?v=ck5ALX11YU4&list=PLjnbT4UISq0bnfd1RC3M4PgTgkmhlkikV
- Ray Casting 3D: https://youtu.be/watch?v=zjswXUTMP2o&list=PLjnbT4UISq0YcFtRFjFQqK0g6ONNCtrvY
- Side-Scroll Shmup: https://youtu.be/watch?v=fF4X8zN-Raw&list=PLjnbT4UISq0Y_7IAN_zUzxgZnfhXxo_0Q
- MonoGame Tutorial: https://youtube.com/watch?v=WW1dJnfXWb0&list=PLjnbT4UISq0adw__Y9B2eXA0LL35TyORU
My websites:
---------------------
- my GitHub: https://github.com/JDoucette
- my company: http://xona.com
- my Blog: http://thefirstpixel.com