Star Hunter

Author(s): Robert Nappi
Publication: Syntax
Pub Details: Syntax/Syntax ZX80 v3 n11 (Volume 3, Issue 11)
Date: November 1982
Pages: 6

In Star Hunter, you control a laser cannon that fires when you press “F”. The cannon aims upward when you hit “D” and downward when you hit “C”. You may fire and move simultaneously.

Your ship is stationary on the left side of the screen as stars move towards you. The object is to shoot a star before one of them hits the left side of the screen. For every star you destroy, you are awarded 150 points. When you top 1500, a faster attack wave starts and your score resets to 0.

To exit, hit break and ENTER.

   1 RAND
2 LET R=0
3 LET P=0
4 LET R=R+1
5 LET A$="▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄"
10 LET A=11
20 LET B=0
30 LET O=INT (RND*20)+1
31 LET W=O+5
34 IF O-A>W-B THEN GOTO 30
40 CLS
41 PRINT AT 0,25;P
42 PRINT AT 0,10;"ATTACK WAVE ";R
50 PRINT AT A,B;"▐▄>"
60 PRINT AT A+1,B;" "
70 PRINT AT A-1,B;" "
80 IF INKEY$="D" THEN LET A=A-1
90 IF INKEY$="C" THEN LET A=A+1
100 PRINT AT O,W;"* "
110 LET W=W-R
111 IF W<2 AND ABS (A-O)<2 THEN STOP
113 IF W<2 THEN GOTO 10
120 IF INKEY$="F" THEN GOTO 150
140 GOTO 50
150 PRINT AT A,B+3;A$
151 PAUSE 5
152 CLS
160 IF A=O THEN GOTO 200
190 GOTO 50
200 PRINT AT O,W;"SMASH"
210 LET P=P+150
220 PAUSE 20
221 IF P>1500 THEN GOTO 3
240 GOTO 10
SYNTACTIC SUM: 40582, 8K ROM

If you have more than 1K RAM, try adding Dan Tandberg‘s Blast Effects (Aug.82) or Paul Quall‘s Screen Background (Jun.82) routines.–Ed.

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.