Ski Run

Date: 1991
Type: Program
Platform(s): TS 2068
Tags: Game

A slalom game. The skier (*) stays at the top of the screen while a course of 25 gates scrolls up from the bottom; steer left and right with the 5 and 8 keys. Pass to the left of each < and to the right of each > to avoid a hit; each hit beeps. At the end it shows the number of gates hit and offers another try on the same course or a new one.

Answer the questions with a lower-case y or n: as printed, a capital Y or N only repeats the question. The skier is not stopped at the screen edges: steering off the right or left edge stops the program with an error.

No author is printed; the listing appears on its own in the issue.

Published in The Plotter January 1991 (Ski Run Program).

Image Gallery

Source Code

   5 REM ski run game
   6 REM a hit is counted if you pass on the open side of the gate
   8 REM you must pass on the point side of the gate.
  10 RANDOMIZE 0
  15 REM use < and > for <> in line 20.
  20 LET b$="<>"
  30 CLS
  40 DIM c(26,2)
  50 GO SUB 5000
  60 GO SUB 1000
  70 LET t=0
  80 LET p=0
  90 LET x=16
 100 GO SUB 2000
 110 GO TO 4000
1000 FOR i=1 TO 25
1010 LET c(i,1)=INT (RND*5)+5
1020 LET c(i,2)=INT (RND*25)+4
1030 NEXT i
1040 LET c(1,1)=21
1050 RETURN
2000 POKE 23692,255: PRINT AT 21,c(1,2);">";
2010 LET k=1
2020 LET j=0
2030 LET m=0
2040 LET i=2
2050 LET s=0
2060 LET s=s+1
2070 LET t=t+1
2080 PRINT AT 21,0''
2090 GO SUB 3000
2100 IF s<>c(i,1) THEN GO TO 2060
2110 POKE 23692,255: PRINT AT 21,c(i,2);b$(j+1);
2120 LET j=NOT j
2130 LET i=i+1
2140 IF i<26 THEN GO TO 2050
2150 FOR i=1 TO 23
2160 LET t=t+1
2170 POKE 23692,255: PRINT AT 21,0''
2180 GO SUB 3000
2190 NEXT i
2200 RETURN
3000 LET a$=INKEY$
3010 IF a$="5" THEN LET x=x-1
3020 IF a$="8" THEN LET x=x+1
3030 PRINT AT 0,x;"*";
3040 IF t<>c(m+1,1) THEN RETURN
3050 LET t=0
3060 LET m=m+1
3070 LET k=NOT k
3080 IF NOT k AND (x-c(m,2))>0 THEN RETURN
3090 IF k AND (x-c(m,2))<0 THEN RETURN
3100 LET p=p+1
3110 BEEP .05,20: PRINT "h"
3120 RETURN
4000 PRINT
4010 PRINT "You hit ";p;" gates"
4020 PRINT "Do you want to try again ?";
4030 INPUT a$
4040 PRINT a$
4050 IF a$(1)="n" OR a$(1)="N" THEN STOP
4060 IF a$(1)<>"y" OR a$="Y" THEN GO TO 4020
4070 PRINT "Same course?";
4080 INPUT a$
4090 PRINT a$
4100 IF a$(1)="y" OR a$(1)="Y" THEN GO TO 70
4110 IF a$(1)<>"n" OR a$(1)="N" THEN GO TO 4070
4120 GO TO 60
5000 CLS
5010 PRINT
5020 PRINT TAB 8;"SKI RUN"
5030 PRINT TAB 8;"---------"
5040 PRINT
5050 PRINT "You have to ski down a course"
5060 PRINT "of 25 flags."
5070 PRINT
5080 PRINT "You must pass to the left of <"
5090 PRINT " and to the right of > to not   have a hit."
5100 PRINT
5110 PRINT "You can move to the right and"
5120 PRINT "left by pressing the arrow keys"
5130 PRINT "(5 and 8)"
5140 PRINT
5150 PRINT "press any key to start"
5160 IF INKEY$="" THEN GO TO 5160
5165 CLS
5170 RETURN

Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.