Skier

In-game screen of Skier.

Program listing on 48K Spectrum.

Text Listing

1 POKE 23693,56:
 BORDER 7:
 CLS :
 RESTORE :
 FOR f=0 TO 39:
 READ c:
 POKE USR "a"+f,c:
 NEXT f:
 LET t=300:
 FOR m=1 TO 1e9:
 LET r=RND:
 LET i=(INKEY$="7" AND c<30)-(INKEY$="6" AND c>1):
 LET c=c+i:
 LET x$=SCREEN$ (9,c):
 LET g=(15 AND x$="_")+(3 AND x$="."):
 LET h=x$="":
 LET t=t+g-1:
 PRINT AT 8,c-i;" ";AT 0*USR 3582+8,c; FLASH h;CHR$ (147+i); FLASH 0;AT 0,0;m;"m";AT 0,28;t;"s";AT 21,RND*29+1; INK 3-2*(r>.1);CHR$ (46+98*(r>.1));AT 21,29*r; INK 2;CHR$ 145+"_"+CHR$ 145 AND PEEK 23672<14:
 BEEP .02+h,g-9*h:
 BEEP h,-30:
 IF t-t*h THEN NEXT m:
 DATA 8,28,42,93,42,73,8,8,16,28,30,31,16,c,c,c,18,c,36,124,190,37,72,c,36,c,c,126,189,36,c,c,72,c,36,62,125,164,18,c

About the game

Your goal is to reach as far as possible skiing down a mountain before the countdown is over. You can gain time extensions by passing through the flags placed at regular intervals. There are also some small coloured bonus items scattered around the mountainside at random, collecting them will also grant you smaller time extensions.

The keys for this game are "6" - left, "7" - right, or a Sinclair joystick.

Backstory

There's no story really. We have no good excuse for the coloured stuff spread all over the place, neither a reason for the time limit. You are welcome to use your own imagination and figure out a proper explanation yourself!

Technical Details

The game features user defined graphics for the player character and in-game scenery. It easily fits into the one-liner space limits, whilst providing a straightforward and easy-to-read source listing, which is uncommon for one-liners. Due to its reduced size, there was enough space left to even include performance optimizations, such as using boolean operators instead of the (shorter) mathematical equivalents, and some extra code to minimize the number of calls to the slower function RND.

The fast vertical scrolling is achieved by directly calling the built-in ROM routine at 3582/$0DFE.

Credits

This one-line game was written by Einar Saukas, converted from a BASIC game he originally co-produced with Eduardo Issao Ito over two decades ago (released as part of the collection "Jogos BASICOS vol.1").

Back to documentation index