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ů.

8.5KB

Land Map 64 - Manual tests

Exact setup, actions and expected observations for each milestone and target. The agent asks you to run the relevant section after each task; record results in docs/verification-status.md.

General setup for every test: run commands from the repository folder in PowerShell 7. VICE keyboard mapping: letters, digits and Return map directly; RUN/STOP is Esc, RESTORE is Page Up and the Commodore key is Left Ctrl. Reset from the VICE menu (Machine > Reset). To use a joystick, assign a PC joystick or keyset to the port in VICE (Preferences > Settings > Input devices > Joystick) before the test.

M0 - Starter builds and runs

MT0-c64: starter on c64 (Commodore 64, vicii-40)

Setup: prerequisites installed (pwsh -File tools/check-prereqs.ps1 reports no missing tools).

Steps:

  1. Run pwsh -File tools/smoke.ps1 -Target c64 and note the result.
  2. Run pwsh -File tools/run.ps1 -Target c64 (VICE starts and autostarts build/land-map-64.prg).

Expected:

  • tools/smoke.ps1 prints [PASS] c64; screenshot in build/smoke/c64/.
  • A multicolour bitmap test screen: brown background with vertical bands of grey, green, blue and black, and a row of light red dots. Every second the buffers flip; buffer B shows the bands shifted by one cell, so the picture visibly alternates, proving both buffers and the flip work. Status mirror in the hidden text screen: row 0 “LAND MAP 64”, row 2 “STARTER OK”.

M1 - World generation and static view

MT1.1: Terrain tiles and generated world (c64)

Setup: VICE x64sc, NTSC (-ntsc), warp off. Start: pwsh -File tools/run.ps1 -Target c64

At M1.1, wait for the static test view and inspect any of the four matching panels. Each panel shows brown land, green grass and trees, grey stone, and a blue pool with shoreline edges and corners. The black roads meet at crossings and bend around a small loop on the right. Check that roads join without gaps and that the terrain shows only its intended colours.

At M1.2, run pwsh -File tools/smoke.ps1 -Target c64 and then pwsh -File tools/check-world.ps1 -ShowMap. Expect MAP READY in the smoke output and an 80×50 grid in the terminal. Look for water (~), stone (#), grass (g), trees (T), land (.), and four road intersections (+). The VICE window still shows the static tile test view for this task.

Starting at M1.3, when the generated world is displayed:

Steps:

  1. Wait for the map view.
  2. Inspect the screen.

Expected:

  • Brown land, grey stone, green grass and trees, blue water and black roads are visible (some may be off-screen until M3)
  • Roads are continuous
  • No colour clash in any cell

Verifies: R1

MT1.2: New world on SPACE (c64)

Setup: VICE x64sc, NTSC (-ntsc), warp off. Start: pwsh -File tools/run.ps1 -Target c64

Steps:

  1. Watch for the generating message, then note the map shown within 15 seconds.
  2. Tap SPACE, wait for the new map, then tap SPACE again.
  3. Hold SPACE for about two seconds and release it.

Expected:

  • Look for brown land, green grass and trees, grey stone, blue water, and black roads with no gaps at crossings or stray colours.
  • A visibly different map appears after each tap.
  • Holding SPACE generates one new map. The map stays steady until the next press.

Verifies: the M1 portions of R1 and R4.

M2 - People and double-buffered partial redraw

MT2.1: People move and are blocked (c64)

Setup: VICE x64sc, NTSC (-ntsc), warp off. Start: pwsh -File tools/run.ps1 -Target c64

Steps:

  1. Run pwsh -File tools/check-people.ps1 and note the result.
  2. Start the program and wait for the map view.
  3. Watch the visible dots for 30 seconds. Pay attention to dots near the blue pool and the grey stone patch.
  4. Tap SPACE, wait for the new map, and watch the dots for another 10 seconds.

Expected:

  • tools/check-people.ps1 prints [PASS].
  • About four light red dots are visible (16 people are spread over the four screens of the world; until scrolling arrives in M3 only the top-left screen is shown).
  • Dots move at least once per second (each takes about 7 small steps a second and sometimes changes direction).
  • No dot enters blue or grey pixels. A dot that reaches water or stone turns away.
  • After SPACE, dots appear on the new map and keep moving.
  • From M2.2 the dots are drawn into the hidden buffer, which is flipped into view each frame (see MT2.2).

Verifies: R2

MT2.2: No flicker, no trails (c64)

Setup: VICE x64sc, NTSC (-ntsc), warp off. Start: pwsh -File tools/run.ps1 -Target c64

Steps:

  1. Run pwsh -File tools/check-people.ps1 and note the result.
  2. Start the program and let it run for 5 minutes at normal speed (warp off).
  3. Watch the dots closely during that time, especially where two dots pass close to each other.
  4. At the end, inspect the map closely, including the places dots walked over.
  5. Tap SPACE, let the new map run for a minute, and inspect it again.

Expected:

  • tools/check-people.ps1 prints [PASS], with 0 missed buffer flips.
  • Dots step smoothly; they never flicker, blink out, or show doubled or half-drawn.
  • The terrain does not flicker or shake (both buffers show the same map).
  • No light red trails and no damaged terrain pixels where dots have been.

Verifies: R3

M3 - Pixel-smooth scrolling

MT3.1: Smooth scrolling (c64)

Setup: VICE x64sc, NTSC (-ntsc), warp off. Start: pwsh -File tools/run.ps1 -Target c64

At M3.1 (keys only, no scrolling yet): run pwsh -File tools/check-keys.ps1 and expect [PASS] all 8 key scenarios decode correctly. Then start the program and, while the map is shown, hold each key below for a second or two and release it. Until M3.3 the border colour shows the direction that is held:

Keys held (VICE PC key) Border
nothing brown (same as the background)
CRSR RIGHT (Right arrow) light green
SHIFT + CRSR RIGHT (Left arrow) cyan
CRSR DOWN (Down arrow) yellow
SHIFT + CRSR DOWN (Up arrow) white
CRSR RIGHT + CRSR DOWN (Right + Down arrows) orange
SHIFT + both (Left + Up arrows) light blue

Expected at M3.1: the colour stays as long as the key is held and returns to brown on release; both the left and the right SHIFT key work; the dots keep moving smoothly. Tapping SPACE gives a new map; holding SPACE gives exactly one. (Right + Up or Left + Down cannot be told apart on a real C64, because SHIFT reverses both cursor keys; they show grey or one of the colours above.)

From M3.3:

Steps:

  1. Hold each cursor key (with SHIFT for up and left) until the view stops.

Expected:

  • Smooth movement, no jumps or tearing
  • The view stops at each world edge
  • All five terrain colours seen across the world

Verifies: R1, R5

MT3.2: People while scrolling (c64)

Setup: VICE x64sc, NTSC (-ntsc), warp off. Start: pwsh -File tools/run.ps1 -Target c64

Steps:

  1. Scroll slowly past several people.

Expected:

  • Dots stay on the terrain they walk on
  • 16 dots in total across the world
  • No trails left behind

Verifies: R2, R3, R5

MT3.3: Status area (c64)

Setup: VICE x64sc, NTSC (-ntsc), warp off. Start: pwsh -File tools/run.ps1 -Target c64

Steps:

  1. Wait for the map view and read the text below the map.
  2. Watch the boundary between map and text for 30 seconds while the dots move.
  3. Tap SPACE and watch the boundary while the new map is generated and shown.
  4. From M3.3: hold each cursor key and watch the text and the boundary while the map scrolls.

Expected:

  • The map fills the top 20 cell rows; five lines of light red upper-case text on brown sit below it: LAND MAP 64, VIEW X 00 Y 00, PEOPLE IN VIEW nn OF 16, an empty line, CRSR SCROLL SPACE NEW WORLD.
  • The people-in-view number equals the number of dots you can count on the map.
  • The boundary is a clean, steady horizontal line: no flicker, jitter, garbage characters or half-height rows.
  • From M3.3: the text never moves while the map scrolls, and the VIEW X/Y values follow the scrolling.

Verifies: R6 (and the R1 view size)

Real hardware

Optional for this release. Use these steps when hardware is available.

  1. Build: pwsh -File tools/build.ps1.
  2. Get the program onto a disk the machine can read, for example: copy the .prg (or .d64) to an SD2IEC/Pi1541/1541 Ultimate SD card; or write the .d64 to a real floppy with a ZoomFloppy/XUM1541 and OpenCBM (d64copy build\<image>.d64 8).
  3. On the machine: LOAD"*",8 then RUN (a C128 in native mode can also use RUN"name"). For C64-mode targets on a C128, enter C64 mode first (GO 64, then Y).
  4. Repeat the manual tests for the current milestone and note any difference from VICE (timing, colours, display artefacts, disk speed) in docs/verification-status.md.

Powered by TurnKey Linux.