User:Eriksiers/Maze generation: Difference between revisions
Content added Content deleted
m (→Text: changed lang tag to new format) |
m (→Graphical: dangit) |
||
Line 127: | Line 127: | ||
This is a graphical variation of the above. It uses white for floors and black for walls. FreeBASIC is required due to how I write the results to the image file. (This works under QBasic aside from the very last line. Changing that would let it work under any QB-alike.) |
This is a graphical variation of the above. It uses white for floors and black for walls. FreeBASIC is required due to how I write the results to the image file. (This works under QBasic aside from the very last line. Changing that would let it work under any QB-alike.) |
||
< |
<syntaxhighlight lang="qbasic">OPTION BASE 1 |
||
CONST scrW = 400 |
CONST scrW = 400 |
||
Line 178: | Line 178: | ||
LOOP |
LOOP |
||
BSAVE "maze.bmp", 0</ |
BSAVE "maze.bmp", 0</syntaxhighlight> |