A shooting game for the ZX81. Your cannon sits at the left edge of the screen; press 7 to move it up and 6 to move it down, and 0 to fire a beam across the screen. Each target appears at a random height and moves toward you. A hit scores 150 points, and passing 1500 wins the game; if a target reaches your cannon at the same height, the computer wins and the game starts again.
Line 1 saves the program, so start it with GOTO 2. As the target moves it leaves a trail of brackets behind it, as printed. The game combines Robert Nappi’s Star Hunter and Dan Tandberg’s Blast Effects.
Published in Syntax February 1983 (Blast).
Source Code
1 SAVE "BLAST"
2 PRINT AT 10,5;"BLAST--A SHOOT OUT"
3 PRINT AT 17,4;"PRESS ANY KEY TO START"
4 IF INKEY$="" THEN GOTO 4
5 CLS
10 RAND
20 LET R=0
30 LET P=0
40 LET R=R+1
50 SLOW
60 LET A$=" "
70 LET B$="XXXXXXXXXXXXXXXXXXXXXXXXXXX"
80 LET G$="***************************"
90 LET H$="==========================="
100 LET I$="---------------------------"
110 LET J$=" "
120 LET A=11
130 LET B=0
140 LET O=INT (RND*20)+1
150 LET W=O+8
160 IF O-A>W-B THEN GOTO 140
170 CLS
180 PRINT AT 0,25;P
200 PRINT AT A,B;"ER7"
210 PRINT AT A+1,B;" "
220 PRINT AT A-1,B;" "
230 IF INKEY$="6" THEN LET A=A-1
240 IF INKEY$="7" THEN LET A=A+1
250 PRINT AT O,W;"(+)"
260 LET W=W-R
270 IF W<2 AND ABS (A-O)<2 THEN GOTO 420
280 IF W<2 THEN GOTO 120
290 IF INKEY$="0" THEN GOTO 310
300 GOTO 200
310 PRINT AT A,B+3;A$;AT A,B+3;B$;AT A,B+3;G$;AT A,B+3;H$;AT A,B+3;I$;AT A,B+3;J$;
320 PAUSE 5
340 IF A=O THEN GOTO 355
350 GOTO 200
355 LET K$="SMASH"
356 LET J$="SMASH"
360 PRINT AT O,W;K$;AT O,W;J$;AT O,W;K$;AT O,W;J$;AT O,W;K$;AT O,W;J$;AT O,W;K$;AT O,W;J$
370 LET P=P+150
380 PAUSE 20
390 IF P>1500 THEN GOTO 450
400 GOTO 120
420 PRINT AT O,W;"YOU STINK--I WON"
430 PAUSE 100
440 GOTO 20
450 CLS
460 PRINT AT 15,0;"YOU WON",,,,"WITH 9/10 LUCK AND 1/10 BRAIN",,,"TRY AGAIN"
470 PAUSE 200
480 CLS
490 GOTO 2Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.

