20.02.2013 Views

ZX Computings - OpenLibra

ZX Computings - OpenLibra

ZX Computings - OpenLibra

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Make<br />

the<br />

most<br />

of IK<br />

Chopper Squad<br />

R Morland and M Frobisher of<br />

Chalfont St Giles sent us this<br />

great little program for a 1K<br />

<strong>ZX</strong>81. You are in charge of a<br />

cleverly-drawn helicopter. The<br />

"6" and "1" keys move your<br />

chopper up and down, while<br />

the "F" key fires.<br />

Your helicopter flies in from<br />

the left of the screen, buffeted<br />

by random crosswinds, and air<br />

pockets. You use the "6" and<br />

"7" to keep your craft in flight,<br />

and from time to time, press<br />

"F" to obliterate an asterisk or<br />

two underneath you. Due to<br />

lack of space, the program is<br />

not perfect, as the helicopter<br />

from time to time leaves an<br />

'image' of itself behind if it<br />

lands on the base, then takes<br />

off again. You may well want to<br />

work on this problem. The<br />

variable S is your score.<br />

1K <strong>ZX</strong>81 Programs<br />

1 10<br />

* * * * * * * * * * * * * * * * * * * * * 120<br />

130<br />

140<br />

30<br />

150<br />

10 LET X = I 1 6 0<br />

2 0 LET H = LL? 1 7 0<br />

30 LET S = X — X 1 8 0<br />

40 LET B=X 190<br />

50 FOR R=5 TO 25 200<br />

60 PRINT BT IS/P;"®" 210<br />

70 PRINT RT 14- ,«>"*" 220<br />

3 0 NEXT R 230<br />

90 LET R =X-X 240<br />

100 LET H=H* T INKEV $ = **6" - » INKEV 250<br />

$ = " 7 "J<br />

260<br />

IF INKEV$="F" THEM GOTO 2<br />

PRINT RT H-X,B;"--»--"<br />

PRINT RT H^B;'*""*®"<br />

IP H>=14 OR H .6 THEN LET H=H*X<br />

LET B=0-T-X<br />

LET R=R + X<br />

IF R>70 THEN GOTO 260<br />

GOTO 100<br />

PRINT RT 14-,B," "<br />

L E T 5 = S 4 X<br />

GOTO 100<br />

PRINT S<br />

30

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!