Talk:Maze Generator/@comment-26333963-20150426001840

I made a mod of this application, making it into a game: In order to make it, you just need to: Delete the last two lines with code on them Under @END, add all these lines of code:


 * CHARX=1
 * CHARY=1
 * @ENGINE
 * LOCATE CHARX,CHARY
 * PRINT "O"
 * IF BUTTON(2)==1 AND CHKCHR(CHARX,CHARY-1)!==151 THEN GOSUB @
 * IF BUTTON(2)==2 AND CHKCHR(CHARX,CHARY+1)!==151 THEN GOSUB @
 * IF BUTTON(2)==4 AND CHKCHR(CHARX-1,CHARY)!==151 THEN GOSUB @
 * IF BUTTON(2)==8 AND CHKCHR(CHARX+1,CHARY)!==151 THEN GOSUB @
 * IF CHARX==29 AND CHARY==21 THEN @WIN
 * LOCATE 29,21
 * PRINT "X"
 * WAIT 1
 * GOTO @ENGINE
 * @UP
 * CHARY=CHARY-1
 * LOCATE CHARX,CHARY+1
 * PRINT " "
 * RETURN
 * @DOWN
 * CHARY=CHARY+1
 * LOCATE CHARX,CHARY-1
 * PRINT " "
 * RETURN
 * @LEFT
 * CHARX=CHARX-1
 * LOCATE CHARX+1,CHARY
 * PRINT " "
 * RETURN
 * @RIGHT
 * CHARX=CHARX+1
 * LOCATE CHARX-1,CHARY
 * PRINT " "
 * RETURN
 * @WIN
 * CLS
 * PRINT "YOU WIN!"
 * PRINT
 * PRINT "PRESS A TO RESTART
 * IF BUTTON==16 THEN GOTO @INIT
 * WAIT 1
 * GOTO @WIN