Crystal Cavern: a maze chase game
games/cavern: an original maze-chase game in C for the Z-80 - a miner gathers crystals while four bats hunt him, each choosing its target its own way and switching between chasing and scattering to its corner; lanterns scare them and their eyes fly home to the roost; nuggets and wrap-round tunnels. gen.py builds the maze from a grid of junctions, removing links at random while keeping it connected, mirrored and free of dead ends. The maze is drawn into the graphics in 8 x 8 tiles; figures are sprites. test-cavern.py has an autopilot gather every crystal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e1daf27891
commit
073db68754
11 files changed
+1447
No files matched your search
@@ -1228,6 +1228,35 @@ the 32 sprites, so the formation is drawn into the graphics, and its sway is
|
||||
the hardware scroll; a diving alien is wiped from the graphics and flies as a
|
||||
sprite until it is back in its place (`games/swarm/` on the PC).
|
||||
|
||||
### Crystal Cavern
|
||||
|
||||
A maze chase. You are a miner gathering the crystals in a cave, chased by four
|
||||
bats; gather every crystal to reach the next, faster cave.
|
||||
|
||||
```
|
||||
RUN "CAVERN"
|
||||
```
|
||||
|
||||
- **The cursor keys** or **W A S D** steer the miner. Hold a direction before
|
||||
a junction and it turns there; it can turn back at any time.
|
||||
- **The bats** each hunt their own way: the red one comes straight for you,
|
||||
the magenta one heads you off, the green one works with the red, and the
|
||||
orange one keeps its distance. Now and then they all break off and go to
|
||||
their corners for a while.
|
||||
- **Lanterns** (the four yellow lights) scare the bats blue for a few seconds:
|
||||
catch them then, and their eyes fly back to the roost in the middle. They
|
||||
flash white just before they recover.
|
||||
- **The side tunnels** wrap round to the other side; bats are slow in them.
|
||||
- **Score:** 10 a crystal, 50 a lantern, 200, 400, 800 and 1,600 for bats
|
||||
caught on one lantern, and a gold nugget (500 a cave) that appears twice a
|
||||
cave where you started. An extra life every 10,000.
|
||||
- **P** pauses; **Esc** gives up, and Esc at the title goes back to BASIC.
|
||||
|
||||
`CAVERN` loads the memory file `CAVEGAME` at 8600h. The maze was made by
|
||||
`gen.py`, which joins up a grid of junctions and takes links away at random
|
||||
while keeping the cave connected, mirrored and free of dead ends
|
||||
(`games/cavern/` on the PC).
|
||||
|
||||
## 15. Limits at a glance
|
||||
|
||||
| Item | Limit |
|
||||
|
||||
Reference in new issue
Block a user