Publication: Syntax
Pub Details: Syntax/Syntax ZX80 v2 n12 (Volume 2, Issue 12)
Date: December 1981
Pages: 17
Use the ZX81’s continuous display to ski a slalom course. The INKEY$ function controls motion on the screen while the program runs. Five pairs of Xs appear and a small square starts down the screen. Ski between the X flags, using the 5 key for left, the 8 key for right. If you hit a flag, it vanishes. To see your path, delete line 60.
10 PRINT ,"SLALOM COURSE"
20 LET A$="X X"
30 PRINT AT 21,8;"FINISH";AT 4
,1;A$;AT 8,12;A$;AT 11,8;A$;AT 1
7,22;A$
40 LET A=0
50 LET B=43
60 UNPLOT A,B
70 LET A=A+1
80 LET B=B-1
90 IF INKEY$="5" THEN LET A=A-
4
100 IF INKEY$="8" THEN LET A=A+
2
110 PLOT A,B
120 IF B=0 THEN STOP
130 PAUSE 40
140 POKE 16437,255
150 GOTO 60
Syntactic Sum: 19043, 8K
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.