|
Im Magazin „8000 PLUS" wurde im November 1990 der folgende Artikel abgedruckt.
|
|
Here's a question for you, folks : how do you manage to get a coconut out of a coconut tree?
It may sound like a strange question with nothing whatsoever to do with your usual Listings spot, but, in fact, there are three possibilities.
The first is to climb the tree — not advisable, since they don't have any branches.
The second is to get an outrageously long stick, and knock them off — this is called the sensible approach.
The third is to run around like a madman beneath them, throwing a stone skywards and hoping that you eventually hit your target.
If this sounds like the kind of activity you enjoy, then you will probably appreciate this month's listing.
The game is called, appropriately enough.
Nuts, but whether this refers to the coconuts, or the state of mind of the little man is unclear.
The man sprints across the screen throwing rocks at the coconuts which are dangling alluringly above his head; they're actually hanging from strings of differing lengths rather than in their natural habitat.
The running figure is called, oddly enough, Algernon.
Algernon's role in life is to knock down as many coconuts as he can.
What the player must do is time each of his throws by pressing the space bar.
|
| The program is initialised above. Algernon himself is actually defined as a series of characters. |
| The instructions are printed out onto the screen in lines 130 to 140. |
| The game variables are set up and the actual screen is drawn. |
|
Timing is absolutely crucial, and the game is far more tricky than it sounds.
Once the stone has disappeared from the screen Algernon is immediately provided with a new one.
The coconuts are hanging at various heights and the object is not to beat the clock, but to hit as many coconuts as you can before running out of stones.
If you are good enough to clear the first screen, you go onto the next level.
The screen is more or less the same except the coconuts are in new positions.
To make things more difficult, they are also higher on each screen.
Moving images are still quite a novelty on the PCW, but that is not the only impressive aspect of this program.
What is really unusual is the attention to detail.
We've found here at 8000 Plus that many commercially produced programs are less user-friendly than this particular program.
The instructions, for example, are thoughtfully included at the beginning of the program.
The game also manages to end gracefully.
A banner saying "Game over" appears, and you are asked if you want to play again.
It even keeps track of the high score — a nice touch to a very professional program. •
|
|
| The game play happens here; a subroutine is used to throw the stone. |
|
The game ends on line 350. Line 360 is the space bar selection. The rest of the code, from line 370 to line 450 ,is dedicated to the throw itself. |
| The data above is used to print out the original message on the screen shown on the preceding page. & |
| [BASIC-Listing] |
HTML-Bearbeitung von
Werner Cirsovius
Februar 2015
© 8000 PLUS