For Retro Computing Enthusiasts
,

Snake Escape

By Daryl Biberdorf — originally published in Volume 1 – Issue 1 – June, 1983

For instance, suppose you want to use the Z key rather than the J key to move the snake left. Since location 197 reads the keyboard on the VIC and 64, you must first determine the number which is POKEd into this location when Z is pressed. Type the following line:

and then RUN the program. Next press the Z key, and the number in location 197 corresponding to the Z key will print repeatedly on the screen. The VIC will print 33, the 64 will show 12. Try some other keys, noting their values, then hit the RUN/STOP key.

You are now ready to make the modification in line 200. In the VIC version, replace 20 with 33, and in the 64 version, substitute 12 for 34. RUN the program (after deleting line 1, of course); you can move the snake left with the Z key.

If you don’t want to type in the program, I will make a copy of it for you. Send $3 and a stamped, self-addressed mailer to:

Daryl Biberdorf
1008 Mohawk Dr.
Irving, TX 75061

See program listings on page 118.

Companion disk Companion Disk (.d64)

Enjoyed this? It’s what we do every month.

The revived COMPUTE!’s Gazette brings the spirit of the golden era to today’s retro scene — Commodore, Atari, Amiga, and more, in full-color print and digital every month.