Wireframe cube on an 80x50 grid built from the 16 quarter-block PETSCII
characters, with an assembly Bresenham plotter that merges pixels into
shared cells. 256 perspective frames are precomputed by tools/gen_cube.py.
Two screens in VIC bank 2 are flipped in the border, paced by a frame-
counting raster IRQ, at a steady 25 fps (PAL). The self-test checks the
plotter, the per-image cycle budget and that no image is held too long.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bases every 256 columns (flat ground, water tower, H pad); the game starts
on one and the tank refills only when landed on a pad. The status bar shows
the direction and distance to the nearest base. Terrain tables move to
$6000/$7000 and $A800 (BASIC ROM banked out) to make room. Enemy spawns are
sparser (SPAWN_GAP 70, at most 4 at once).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cc65 C game logic over a ca65 engine (PAL):
- three-layer parallax (clouds, mountains, hills) with per-band $D016
splits; band shifts and sub-pixel layer stepping in scroll.s
- one raster IRQ scheduler (mux.s) driving the band splits and a sprite
multiplexer: 8 hazards + water spray on hardware sprites 3-7
- hazards (birds, balloons, jets) and tree fires in hazards.s; spray
water to put fires out, tank refills on landing, burnt trees persist
- terrain from height maps built at startup; columns built ahead and
background jobs scheduled by raster budget
- tools/gen_gfx.py generates all sprites and tiles (src/gfx.h, gfx.inc)
The self-test checks terrain, scrolling, the multiplexer and fire logic,
then flies 1000 demo frames, failing on any late frame, missed raster
split or scroll position jump.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
c64.cmd / tools/c64.ps1 give one entry point over cc65 and VICE:
doctor finds cl65/ca65/ld65/x64sc/x128/c1541/petcat (PATH, Program Files, WinGet)
new scaffolds projects/<name> from templates/{c,asm,basic}
build c64project.json or a single .c/.s/.bas -> build/*.prg, .lbl, .map, .d64
run autostarts in x64sc/x128; -Monitor opens the remote monitor with labels
test headless run that captures RAM, I/O, screen text, and a screenshot when
the program stores to $D7FF (0 = pass), reaches a label, or after N
jiffies; BASIC errors fail fast; prints the screen and PASS/FAIL
mon sends monitor commands to a running emulator and resumes it
lib/c64test.h and lib/c64test.inc wrap the $D7FF result protocol, which also
matches VICE's -debugcart. All three templates pass on C64; the C template
also passes as a C128 build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>