games/swarm: an original Galaxian-style game in C for the Z-80 - a
46-alien formation sways overhead and peels off in looping, firing dives,
flagships bring escorts. With more aliens than sprites, the formation is
drawn into the graphics and swayed by the hardware X scroll; a diver is
wiped out of the graphics and becomes a sprite until it flies back.
test-swarm.py has an autopilot destroy a whole swarm.
tools/boardemu.py: the frame counter now moves on once per wait, not on
every read (it had been running two frames per wait, so anything done on
odd frames never happened in tests). The other games' tests still pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
games/warden: an original Defender-style game in C for the Z-80 - landers
snatch humanoids from a planet that wraps round (1,280 pixels, exactly
four graphics widths, so world column x lives in buffer column x mod 320
and only columns scrolling into view are drawn), mutants, bombers and
mines, a laser, smart bombs, hyperspace and a long-range scanner in text.
test-warden.py checks scrolling and the scanner and has an autopilot
clear a wave; manual and README describe it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ports 35h-37h scroll the graphics layer (wrapping at 320 x 240); bit 1 of
36h hides a border (4 columns, 2 rows) where a program draws the strip
coming into view unseen. The video loads its own column/row counters from
the scroll registers each line and frame. CLS resets both. Testbench
checks scroll, wrap and border.
games/raid: an original Zaxxon-style game in C - fly over a fortress that
scrolls diagonally, climb over low walls and through doorways in tall
ones, shoot turrets, fuel tanks, radar and fighters, destroy the reactor.
The world is drawn pixel by pixel from a formula, two columns and a row a
frame (about 40% of the Z-80). test-raid.py flies the level with an
autopilot and checks the frame budget; tools/boardemu.py is now shared by
both games' tests. send-hex.py sets the date before saving.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
games/keep: an original game in C for the Z-80 using the sprites - twelve
rooms, guards that patrol, see along rows and columns and shoot, keys and
locked doors, gold, ammunition and a crown to steal. gen.py holds the art
and castle map and checks reachability; test-keep.py runs it in z80emu on
a model of the board's ports, takes screenshots and has a bot play it
through. keep.bas loads KEEPGAME at 8600h and CALLs it.
Ports 88h/89h read keys held down (ps2_keystate), the monitor writes
Intel HEX records typed at its prompt, and tools/send-hex.py sends a
whole file and saves it as a memory file. Testbench covers both.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>