Ski Run
Posted: Fri Mar 10, 2023 3:58 pm
Staying indoors thanks to a few inches of snow here (this is Wales after all), so for a bit of fun I ported a ZX81 BASIC game by Trevor Toms to QL SuperBASIC. On the theme of snow, it's a downhill ski run, where you have to guide a skier down a curving ski run, using the left and right cursor arrow keys. Avoid hitting the course marker posts or straying off course - you get a penalty point for this. Keep your "score" as low as possible.
It's fairly basic graphically as it stands, and well commented for anyone wishing to tinker with it to enhance it.
To run it, just use LRUN flp1_SKIRUN_bas. The instructions are in a Quill doc file called SKIRUN_doc
It should run on any system, including unexpanded QL. You'll need to tweak the running speed by altering the value of the slowdown factor variable called "slowdown" in line 160. Very low value for slow systems such as unexpanded QL. On my QPC2 system, it needs a value as high as 200,000. Other systems will be a trial and error with values somewhere in between.
At the moment, it has two courses chosen at random. More can be added by adding values to the variable course$ by following instructions on how to code that. There are 3 skill levels, based on course width.
Enjoy yourself in the snow!
It's fairly basic graphically as it stands, and well commented for anyone wishing to tinker with it to enhance it.
To run it, just use LRUN flp1_SKIRUN_bas. The instructions are in a Quill doc file called SKIRUN_doc
It should run on any system, including unexpanded QL. You'll need to tweak the running speed by altering the value of the slowdown factor variable called "slowdown" in line 160. Very low value for slow systems such as unexpanded QL. On my QPC2 system, it needs a value as high as 200,000. Other systems will be a trial and error with values somewhere in between.
At the moment, it has two courses chosen at random. More can be added by adding values to the variable course$ by following instructions on how to code that. There are 3 skill levels, based on course width.
Enjoy yourself in the snow!