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:
brad ArantandClaude Opus 5.5 committed 2026-11-29 21:07:33 -08:00
1 parent e1daf27891
commit 073db68754
11 files changed
+1447

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
; Start-up for a machine-code program that BASIC CALLs at 8600h: clear the
; variables, run main, and return to BASIC. The program has no initialised
; variables (gen.py's tables are const, so they stay in the code).
.module crt0
.globl _main
.globl s__DATA, l__DATA
.area _HEADER (ABS)
.org 0x8600
start:
ld hl, #s__DATA
ld bc, #l__DATA
ld a, b
or c
jr z, go
ld (hl), #0
dec bc
ld a, b
or c
jr z, go
ld d, h
ld e, l
inc de
ldir
go:
jp _main ; main's RET goes back to BASIC
.area _HOME
.area _CODE
.area _INITIALIZER
.area _GSINIT
.area _GSFINAL
.area _DATA
.area _INITIALIZED
.area _BSEG
.area _BSS
.area _HEAP