20.02.2013 Views

ZX Computings - OpenLibra

ZX Computings - OpenLibra

ZX Computings - OpenLibra

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

I<br />

1K Games<br />

10 LET<br />

20 LET<br />

30 LET<br />

4-0 LET<br />

50 LET<br />

60 LET<br />

70 LET<br />

30 LET<br />

LET<br />

AND B)<br />

100 LET<br />

UFO<br />

+ X) - ( INKEV$ = "5" RNO Y.I<br />

110 LET D =D + Z<br />

LET F =F + Z<br />

PRINT RT NOT X,B,"<br />

";RT X-D,Y+Z<br />

160<br />

160<br />

170<br />

80<br />

lao<br />

1 90<br />

200<br />

210<br />

220<br />

230<br />

24-0<br />

This game UFO, written by S<br />

Hassen of Worthing, was written<br />

to show just how much can<br />

be squeezed into 1K without<br />

resorting to machine code. Mr<br />

Hassen tells us he has used<br />

every trick he knows to get the<br />

program into 1K. The object of<br />

the game is to shoot down the<br />

saucer hovering near the top of<br />

the screen. As you probably expect,<br />

the "5" will move you left<br />

while the "8" moves you right.<br />

Press "0" to fire. As you'll see<br />

when you run the program, the<br />

saucer does not sit still, but<br />

moves back and forth, calling<br />

for all your aiming skill. When<br />

struck (by a little full stop which<br />

zaps up to the saucerl it blows<br />

apart, and your score is shown.<br />

The lower the score, the better.<br />

Any score over 7 2 is lousy. Any<br />

score less than 10, I don't<br />

believe you. The game ends<br />

once you've hit the saucer, and<br />

waits until you press any key to<br />

start again. The PAUSE 4E4<br />

(developed by Trevor Toms,<br />

author of THE <strong>ZX</strong>81 POCKET<br />

BOOK) is remembered by thinking<br />

of it as 'pause forever'. It<br />

obligingly waits, more or less,<br />

forever for you to press a key to<br />

get things underway again. If<br />

you have trouble seeing the full<br />

stop as it slowly zaps towards<br />

the target, replace it with a<br />

graphic A.<br />

X=URL<br />

Q -NOT<br />

0=Q<br />

F=Q<br />

B=X<br />

Y=X<br />

Z=5GN X+SGN X<br />

K = INT (RND+RNO)<br />

B=B+ fK RNO X+X.V -<br />

TINKEY$="<br />

T NOT K<br />

RNO Y

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

Saved successfully!

Ooh no, something went wrong!