Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

10KB

Land Map 64 - Milestones

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.

M0 - Starter builds and runs

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.

M1 - World generation and static view

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.

M2 - People and double-buffered partial redraw

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.

M3 - Split screen and pixel-smooth scrolling

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.

M4 - Terrain all over the world

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.

M5 - Worn paths

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 draws the rest of it in full and redraws the changed cells once it is ready (before M6.1: restarted the rebuild). A test build (PATH_TEST: path at 4, back below 2, one count less every 400 frames) 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, tools/check-scroll.ps1 -Long -PathTest; manual test MT5.2

Manual verification: see docs/manual-tests.md section M5.

M6 - People's attributes

Goal: Every person has a name, a sex and D&D-style scores that the player can look at one person at a time.

Requirements: R8, R6, R2, R3

Task Description Requirements Buildable outcome Completion check
M6.1 Six scores per person (STR, DEX, CON, INT, WIS, CHA; 3d6, one byte each, 96 bytes), rolled with the people for every new world. P (new press only) steps to the next person; status line 4 shows ‘Pnn’ and the six scores, rewritten only when the person changes, on a frame without the status update. The chosen person's dot is left out of the people draw for 16 of every 32 frames (draw_skip, which the checks read to know which dots to expect). The walk counts move to $C000 to make room below $4000. R8, R6, R2, R3 Scores per person, shown with P; the chosen person blinks pwsh -File tools/check-keys.ps1 (P held: one step; scores 3-18; status line 4 matches), tools/check-people.ps1, tools/check-scroll.ps1 -Long; manual test MT6.1
M6.2 Status area shows only the chosen person, who gets a random name and sex: sex 50/50 (people_sex), name from a start syllable, half the time a middle one, and a male or female end syllable (people_name, 10 letters, space padded), rolled with the scores. Row 20 ‘Pnn’ + name + M/F, row 21 the scores, rows 22-24 blank; the title, view position, people-in-view count and key help (and the per-frame status update and people-in-view count) are removed. All keys still work. R8, R6 Status area shows the chosen person's name, sex and scores only pwsh -File tools/check-keys.ps1 (names 3-10 letters, sex 0/1, rows 20-21 match the shown person), tools/check-split.ps1 (rows 20-21 lit, 22-24 blank, person 01 in both banks), tools/smoke.ps1; manual test MT6.2

Manual verification: see docs/manual-tests.md section M6.

M7 - A changing number of people

Goal: 1 to 255 people, 16 in a new world; + and - change the number while the program runs; people keep their speed.

Requirements: R2, R3, R8

Task Description Requirements Buildable outcome Completion check
M7.1 Memory layout that grows: every people table becomes one 256-byte page per field, indexed by person 0-254 (positions $4C00-$4FFF; direction, sex and the six scores $5800-$5FFF; saved bytes under the dots of both buffers $8C00-$91FF; the ten name letters $9200-$9BFF), so no table moves when the number changes. people_count (1-255) replaces the fixed 16 everywhere: placing, moving (every 8th person per frame), drawing, P, the status line. R2, R8 Same program with 16 people, its tables ready for up to 255 pwsh -File tools/smoke.ps1, tools/check-world.ps1, tools/check-keys.ps1, tools/check-people.ps1, tools/check-split.ps1, tools/check-paths.ps1
M7.2 People are drawn only into the hidden buffer (people_update in the main loop, once the hidden buffer is complete; buf_dots marks it) and flipped in at the next vertical blank, which now does no people work. A scroll step that crosses a cell waits until the rebuilt buffer has its people too. R3, R5 Vertical blank work no longer grows with the number of people pwsh -File tools/check-people.ps1 (both buffers hold the clean map plus the right dots), tools/check-scroll.ps1 -Long and -Long -PathTest
M7.3 + adds a person at a random walkable spot with a new name, sex and scores (up to 255); - removes the last one (down to 1; if they were shown, the new last person is shown). Held, both repeat after 30 frames, then every 5th frame. Status line 1 shows P001/016 (person / number of people). The raster IRQ counts frames, so when the main loop takes longer than a frame the people catch up on the missed frames (up to 4) and keep their speed. R2, R8, R3 + and - change the number of people while it runs pwsh -File tools/check-keys.ps1 (+ held: the count climbs past 40, - held: stops at 1, status shows P001/nnn), tools/check-people.ps1 -People 255, tools/smoke.ps1, manual test MT7.1

Manual verification: see docs/manual-tests.md section M7.

Powered by TurnKey Linux.