BASIC2\LAKE.DOC ·
DOC ·
5.1 KB ·
1988-05-16 ·
from PCPlus_Issue-30_Mar-1989
- 1 - lake.doc
≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈
╔═════════════════════════════════════╗
║┌───────────────────────────────────┐║
║│ │║
║│ L A K E S I D E V I E W │║
║│ │║
║│ written by David Mylward │║
║│ │║
║│ using Locomotive Basic2 │║
║│ │║
║│ April 1988 │║
║└───────────────────────────────────┘║
╚═════════════════════════════════════╝
≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈
THE BLURB.
---------
This program started life as an experiment to determine exactly
what the limitations of BASIC2 graphics were. It was an experiment
that failed, since no limitations were found: everything I wanted to
achieve I did achieve, and I feel that with more time, patience, and
practise even more could be done.
What the program does is simply to draw pictures: ten thousand
of them. ( Well, 9999 to be precise.) All of them are variations on
the same theme - a lakeside view - but extensive use of the BASIC2
pseudo-random number generator has ensured that each is different in
detail, although all are produced by the same code.
The limit of 9999 is a purely arbitrary one. Anyone who wishes
to doctor the source code should have no trouble in making many more
variants (but remember - the higher the limit, the larger the chance
of near-duplicates occurring) or even using this same framework with
different graphic routines to create ten thousand variations on some
other theme.
THE MEATY BIT.
-------------
To use LAKESIDE VIEW: first load GEM and BASIC2 as normal, then
load the file LAKE.BAS and start it running with key F9. First, you
will be asked to enter the countdown. This is the time (in seconds)
that the program pauses between each picture when running in "Random
Cycle" mode. Enter any value from 10 to 9999, then press the RETURN
key. If you enter a value greater than 9999 the program will use the
last four digits only, and if you enter a value less than 10, or you
press RETURN without entering anything, it will use 10.
Once you have entered a count the Main Decision Box will appear
giving a choice of "Random Cycle", "Selection", or "Exit Program".
If you click on "Random Cycle" - the program will start drawing
a picture selected at random from the 9999 available. When this is
complete it will pause for the specified count ( a countdown appears
in the top lefthand corner of the screen ) and then start on another
picture selected at random. This will continue until you break the
cycle, which you do by clicking the left-hand mouse button while the
countdown is running. This takes you back to the Main Decision Box.
- 2 - lake.doc
If you click on "Selection" - you will be prompted to enter the
number of the picture you require. Enter a number in the range 1 to
9999 and press "RETURN". The program will then draw the picture you
have selected. If you enter a number over 9999 it will use the last
four digits only and if you enter zero, or press "RETURN" without an
entry, it will repeat the picture most recently drawn. After it has
completed it, the program will suspend itself until you click on the
left-hand mouse button, when the Main Decision Box will re-appear.
If you click on "Exit Program" - then you will drop out back to
BASIC2. You can also do this at any time by using Control+"C".
WHAT TO USE IT FOR.
------------------
Well, just to look at, really. Leave it on random cycle in the
corner as a talking point at your next party, or place it beside the
bed of a convalescent child. ( When monsters start appearing in the
lake you can be sure they're getting better! ).
A WORD OF WARNING.
-----------------
This is not a program for the impatient. Some of the pictures
take a number of minutes to complete, but I hope you will agree with
me that they are worth waiting for.
┌──────────────────────────────────────────────────┐
│LAKESIDE VIEW - THE PROGRAM THAT GIVES NEW MEANING│
│ TO THE TERM "TREE STRUCTURES" │
└──────────────────────────────────────────────────┘
David Mylward.
============================