|
CT CS HT SETSC 0 SETPC 4 SETFC 4
MAKE "KEY first questionbox "Input [Enter a DIGIT (0-9)]
IF :KEY = 0 [ZERO]
IF :KEY = 1 [ONE]
IF :KEY = 2 [TWO]
IF :KEY = 3 [THREE]
IF :KEY = 4 [FOUR]
IF :KEY = 5 [FIVE]
IF :KEY = 6 [SIX]
IF :KEY = 7 [SEVEN]
IF :KEY = 8 [EIGHT]
IF :KEY = 9 [NINE] |
; setup the program, screen, etc
; display instructions and wait for keystroke
; run procedure called zero to draw a 0
; run procedure called one to draw a 1
; run procedure called two to draw a 2
; run procedure called three to draw a 3
; run procedure called four to draw a 4
; run procedure called five to draw a 5
; run procedure called six to draw a 6
; run procedure called seven to draw a 7
; run procedure called eight to draw a 8
; run procedure called nine to draw a 9 |