Work top to bottom, one task at a time (AGENTS.md section 4). Every task must leave all targets building. Requirement IDs refer to docs/spec.md.
Goal: Prove the toolchain, emulator configuration and smoke test work before any feature work.
Requirements: R3
| Task | Description | Requirements | Buildable outcome | Completion check |
|---|---|---|---|---|
| M0.1 | Run tools/check-prereqs.ps1, then tools/smoke.ps1 for every target. | R3 | Starter artifact(s) built: build/land-map-64.prg | tools/smoke.ps1 exits 0 (or every target without automation is verified by hand), and the user confirms the M0 manual test. |
Manual verification: see docs/manual-tests.md section M0.
Goal: A different 2x2-screen world appears at start-up and on SPACE, shown one screen at a time in multicolour bitmap mode.
Requirements: R1, R4
| Task | Description | Requirements | Buildable outcome | Completion check |
|---|---|---|---|---|
| M1.1 | Tile set: 8-byte multicolour patterns for land, grass, trees, stone, water and roads, including edge and corner patterns, with per-tile screen-RAM colour pairs. | R1 | Tile table and a test view showing every tile | Manual test MT1.1 |
| M1.2 | Seeded generator: 80x50 tile world with water, stone, grass with trees, and connected roads; enforce the at-most-two-colours-per-cell rule. | R1 | World generated in RAM | Manual test MT1.1; smoke test reports MAP READY |
| M1.3 | Render the top-left screen of the world into the visible buffer; SPACE regenerates. | R1, R4 | PRG showing a generated world; SPACE makes a new one | Manual test MT1.2 |
Manual verification: see docs/manual-tests.md section M1.
Goal: 16 white people move without flicker, blocked by water and stone, with only their spots redrawn.
Requirements: R2, R3
| Task | Description | Requirements | Buildable outcome | Completion check |
|---|---|---|---|---|
| M2.1 | People table (world x, y, direction) and movement rules; water and stone block. | R2 | People move in world data | Manual test MT2.1 |
| M2.2 | Per-buffer saved-byte lists: restore the bytes under people from two frames ago, draw people in view, flip in vertical blank. | R3 | Flicker-free moving dots, no trails | Manual tests MT2.1 and MT2.2 |
Manual verification: see docs/manual-tests.md section M2.
Goal: A fixed 5-line status area sits below a 20-row map, and the cursor keys scroll the map smoothly across the whole world with people kept in place.
Requirements: R5, R6, R3, R2
| Task | Description | Requirements | Buildable outcome | Completion check |
|---|---|---|---|---|
| M3.1 | Keyboard matrix reading for the cursor keys with SHIFT, held-key repeat. | R5 | Scroll direction from keys | Manual test MT3.1 |
| M3.2 | Split screen: raster interrupts switch to text below a 20-row map and back at the top of the frame; status text screen and ROM font copy in both banks; status lines with the people-in-view count. | R6, R1 | Steady 20-row map with 5 status lines below | Manual test MT3.3 |
| M3.3 | Fine scroll via $D016/$D011 in the 38-column, 20-row map area; rebuild the hidden buffer from tiles over 8 frames and flip on wrap; stop at world edges; show the view position in the status area; draw people relative to the view (in the shown buffer during vertical blank while a rebuild runs). | R5, R3, R6, R2 | Smooth scrolling across the world under a fixed status area, people in place | Manual tests MT3.1, MT3.2 and MT3.3 |
| M3.4 | Check that people stay aligned with the terrain over long scrolling runs; measure the frame budget with a border-colour timing bar. | R2, R3, R5, R6 | People stay aligned with terrain over long runs; budget measured | Manual tests MT3.2, MT3.3 and MT3.4 |
Manual verification: see docs/manual-tests.md section M3.
Goal: Lakes, meadows with trees, rocky outcrops and open land are spread over the whole world, in a different mix for each world, with roads crossing water on bridges.
Requirements: R1, R2, R5
| Task | Description | Requirements | Buildable outcome | Completion check |
|---|---|---|---|---|
| M4.1 | Region generator: each world rolls its own terrain mix; jittered seeds on a grid give every class areas all over the world, shaped by noisy distances, smoothing and removal of thin water; shores from the neighbours; trees on grass. Roads stay a grid of two rows and two columns and become bridges over water. The scroll rebuild skips cells whose tile is already drawn, to keep the 8-frame rebuild with textured terrain everywhere. | R1, R2, R5 | Varied terrain in every view; SPACE gives a different mix | pwsh -File tools/check-world.ps1 -Runs 10, tools/check-scroll.ps1 -Long; manual test MT4.1 |
Manual verification: see docs/manual-tests.md section M4.
Goal: People wear paths into the land where they walk often; unused paths fade.
Requirements: R7, R1, R2, R3, R5
| Task | Description | Requirements | Buildable outcome | Completion check |
|---|---|---|---|---|
| M5.1 | Remove road generation: the world has land, grass and trees, stone and water only; tools/check-world.ps1 fails on any road or bridge tile. | R1 | Worlds without roads | pwsh -File tools/check-world.ps1 -Runs 10; manual test MT5.1 |
| M5.2 | Worn paths: a walk count per cell (4,000 bytes), +1 when a person steps into a cell, -1 for every cell every 60 seconds (10 cells every 9 frames); at 128 a land, grass or tree cell becomes a path tile (dark brown patch, one per terrain so it can turn back), below 64 it turns back. Changed cells are redrawn in each buffer while it is hidden (people's dots and saved bytes kept), so the shown map never tears; a buffer in the middle of a rebuild restarts it in full. A test build (PATH_TEST: path at 8, back below 4, fast decay) makes it checkable. | R7, R2, R3, R5 | Busy cells turn into paths, unused paths fade | pwsh -File tools/check-paths.ps1, tools/check-scroll.ps1 -Long; manual test MT5.2 |
Manual verification: see docs/manual-tests.md section M5.
Powered by TurnKey Linux.