CARD1 Paint
LET y = 0
LET counter = 0
FOR a = 1 to 30
LET y = y + 10
LET x = 0
FOR b = 1 to 30
LET x = x + 10
LET counter = counter + 1
LET tile$ = display$(counter)
SETPENCOLOR colR(counter), colG(counter), colB(counter)
DRAWSTRING tile$, x, y, "Courier", 15
NEXT
NEXT
IF menuOpen = 1 THEN
LET menuX = 400
LET menuY = 15
SETPENCOLOR grayR, grayG, grayB
IF menuOption = 1 THEN
SETPENCOLOR whiteR, whiteG, whiteB
END IF
LET menuY = menuY + 12
DRAWSTRING "close menu", menuX, menuY, "Courier", 12
SETPENCOLOR grayR, grayG, grayB
IF menuOption = 2 THEN
SETPENCOLOR whiteR, whiteG, whiteB
END IF
LET menuY = menuY + 12
DRAWSTRING "talk", menuX, menuY, "Courier", 12
SETPENCOLOR grayR, grayG, grayB
IF menuOption = 3 THEN
SETPENCOLOR whiteR, whiteG, whiteB
END IF
LET menuY = menuY + 12
DRAWSTRING "north", menuX, menuY, "Courier", 12
SETPENCOLOR grayR, grayG, grayB
IF menuOption = 4 THEN
SETPENCOLOR whiteR, whiteG, whiteB
END IF
LET menuY = menuY + 12
DRAWSTRING "east", menuX, menuY, "Courier", 12
SETPENCOLOR grayR, grayG, grayB
IF menuOption = 5 THEN
SETPENCOLOR whiteR, whiteG, whiteB
END IF
LET menuY = menuY + 12
DRAWSTRING "south", menuX, menuY, "Courier", 12
SETPENCOLOR grayR, grayG, grayB
IF menuOption = 6 THEN
SETPENCOLOR whiteR, whiteG, whiteB
END IF
LET menuY = menuY + 12
DRAWSTRING "west", menuX, menuY, "Courier", 12
END IF
SETPENCOLOR whiteR, whiteG, whiteB
DRAWSTRING msg$, 10, 315, "Courier", 12