See all articles from Timex Sinclair User n2
There is an over-abundance of Space Invaders games, but this one is worth a try because it fits into 1K of memory.
A fleet of 20 “X” ships is attacking you. You must destroy at least 15 of them or be destroyed.
The cursor arrows move you up and down (the shift 5 and shift 7 keys) and the 8 fires your laser cannon. You begin with 200 fuel units and use one every time you move or fire. If you manage to destroy all the “X” ships, the amount of fuel remaining is displayed.
10 LET A=0
20 LET J=200
30 LET K=10
40 LET G=10
50 LET X=INT (RND*18) + 2
60 LET A=A+1
70 IF A=21 THEN GOTO 260
80 LET Y=30
90 PRINT AT K,0;CHR$ 130;CHR$ 128;AT X,Y;"X"
100 IF J<0 THEN GOTO 150
110 IF INKEY$="7" THEN LET K=K-1
120 IF INKEY$="6" THEN LET K=K+1
130 IF INKEY$="8" THEN PRINT AT K,2;"********************"
140 IF INKEY$>"5" THEN LET J=J-1
150 LET Y=Y-1.5
160 IF Y=3 THEN LET G=G+1
170 IF G=5 THEN GOTO 240
180 IF Y=3 THEN GOTO 50
190 IF INKEY$="8" AND K=X AND Y<21 THEN GOTO 220
200 CLS
210 GOTO 90
220 PRINT AT X,Y+1;CHR$189
230 GOTO 50
240 PRINT "DESTROYED"
250 STOP
260 PRINT "YOU WIN"
270 PRINT "FUEL LEFT=";J