Star Swarm: a swooping alien shooter; boardemu frame counter fix

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>
This commit is contained in:
brad ArantandClaude Opus 5.5 committed 2026-11-29 20:13:18 -08:00
1 parent 0b16e1dce0
commit e1daf27891
12 files changed
+1312 -5

No files matched your search

+27
View File
@@ -1201,6 +1201,33 @@ round, four times the graphics' width, so the game scrolls the graphics and
draws each column of mountains and stars as it comes into view
(`games/warden/` on the PC).
### Star Swarm
An alien swarm sways in formation across the top of the screen, and its
members peel off in looping dives at your ship, firing as they come. Those
that miss loop round and fly back into their places.
```
RUN "SWARM"
```
- **Left and right** move the ship; **Space** or **Ctrl** fires. You have one
shot in the air at a time, so make it count.
- **The swarm:** blue drones, purple warriors, red escorts and two yellow
flagships at the top. A flagship dives with up to two escorts; shoot both
escorts before the flagship for 800.
- **Score:** each alien is worth twice as much diving as in formation:
drones 30 / 60, warriors 40 / 80, escorts 50 / 100, flagships 60 / 150
(300 with an escort still flying). A new ship every 7,000.
- **Waves:** clear the swarm and a new one arrives, diving more often and
more of them at once.
- **P** pauses; **Esc** gives up, and Esc at the title goes back to BASIC.
`SWARM` loads the memory file `SWARMGAM` at 8600h. The 46 aliens are more than
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).
## 15. Limits at a glance
| Item | Limit |