Classic Computer Magazine Archive COMPUTE! ISSUE 40 / SEPTEMBER 1983 / PAGE 275

Mastermaze Update
For The Atari

David Butler

In the February 1983 issue of COMPUTE!, there was an excellent, multilevel maze game called "Mastermaze" by Kenneth S. Szajda. Here's a machine language routine for the Atari version that greatly speeds up the maze generator.



A game written in machine language can run far faster than a BASIC version. However, in the case of this "Mastermaze" update, the speed of the game is not affected, only the maze generator which starts things off.
    Before you can even begin to play Mastermaze, your computer must generate from 1 to 32 levels of mazes. This process can take several minutes. By incorporating this new machine language routine, you should find that the maze generating part of the program runs more than ten times faster. Thirty-two levels can be generated in under 90 seconds.
    To use this routine to update your version of Mastermaze, first LIST the original version of the program. Delete lines 50, 90, 100, 110, and 111. Then, substitute the lines in this new program listing where they appear in the original. Also add the new lines that did not appear in Mastermaze.

Adding An ML Maze Generator

8 DIM A$(37):SW=0
26 POKE 752,1:? "{CLEAR}":POSITION 4
   ,10:? "CONSTRUCTING MAZE...WAIT F
   OR START"
27 RESTORE 1000:FOR I=1536 TO 1690:R
   EAD A:POKE I,A:NEXT I:POKE 755,1
80 G=USR(1536,1675,A):GOSUB 500
1000 DATA 104,104,131,208,104,133,20
     7,104,133,204,104,133,203,173,1
     0,210,41,3,133,212
1010 DATA 133,213,24,10,168,165,203,
     113,207,1?3,2O5,165,204,200,113
     207,133,206,160,0
1020 DATA 177,205,201,128,208,40,165
     ,212,24,105,1,145,205,105,3,10,
     168,165,203,113
1030 DATA 207,133,203,200,165,204,11
     3,207,133,204,169,0,168,145,203
     ,165,205,133,201,165
1040 DATA 206,133,204,24,144,183,230
     ,212,165,212,41,3,133,212,197,2
     13,208,180,160,0
1050 DATA 177,201,133,212,152,145,20
     3,169,251,24,101,212,176,24,198
     ,212,165,212,24,10
1060 DATA 168,56,165,201,241,207,133
     ,203,200,165,204,241,207,133,20
     4,24,144,111,96,2
1070 DATA 0,176,255,254,255,80,0,1,0
     ,216,255,255,255,40,0