No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

15KB

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: light brown background with vertical bands of grey, green, blue and black, and a row of white 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 light 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:

  • Light 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 light 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 white 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 white trails and no damaged terrain pixels where dots have been.

Verifies: R3

M3 - Pixel-smooth scrolling

Colours: tools/run.ps1 starts VICE with the pepto-pal palette, in which the background (C64 colour 8) is light brown. If you start VICE another way, select that palette (Settings > Video > Palette) or the background looks salmon-orange.

MT3.1: Smooth scrolling (c64)

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

Automated first: pwsh -File tools/check-keys.ps1 should print [PASS] all 8 key scenarios decode correctly and pwsh -File tools/check-scroll.ps1 should print [PASS] all 3 scroll scenarios: ....

Keys (VICE maps the PC arrow keys to these): Right arrow = CRSR RIGHT, Down arrow = CRSR DOWN, Left arrow = SHIFT + CRSR RIGHT, Up arrow = SHIFT + CRSR DOWN. On a real C64 keyboard hold either SHIFT key with a cursor key to go left or up. SHIFT applies to both cursor keys, so only Right + Down and Left + Up work as diagonals: Up + Right and Down + Left scroll up and left (accepted limitation, see the spec's Controls).

Steps:

  1. Wait for the map. Hold Right until the view stops, then Down until it stops.
  2. Hold Left until the view stops, then Up until it stops.
  3. Hold Right + Down together for a few seconds, then Left + Up together.
  4. Tap Right a few times, then hold Right and switch to Left while still moving.
  5. Release all keys and tap SPACE; then scroll again in the new world.

Expected:

  • The map moves one pixel at a time in the direction held, with no jumps, tearing or flashes of wrong terrain when it crosses a cell edge; it stops as soon as the key is released. A very short hesitation right after a scroll starts is acceptable (the hidden buffer is being prepared); note it if it is noticeable.
  • Right stops at VIEW X 42 (the right world edge, column 79, at the right of the map); Down stops at VIEW Y 30 (row 49 at the bottom); Left and Up stop at 0. Holding a key against an edge does nothing.
  • Diagonal scrolling moves smoothly on both axes.
  • Across the whole world you see all five terrain colours (light brown land, green grass and trees, grey stone, blue water, black roads).
  • SPACE still generates a new map, and the view starts again at the top-left (0, 0).

Verifies: R1, R5

MT3.2: People while scrolling (c64)

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

Automated first (M3.4): pwsh -File tools/check-scroll.ps1 -Long (takes about 10 minutes) should print [PASS] all 4 scroll scenarios: ...; its tour line reports the stops checked byte for byte.

Steps:

  1. Scroll slowly past several people.
  2. From M3.4: scroll around the whole world for about 5 minutes (every direction, with stops), then stop with several people in view and watch them for a minute.
  3. From M3.4: find a place where many dots are in view near the top of the map (or wait for them to gather) and scroll left and right there.

Expected:

  • Dots stay on the terrain they walk on, while scrolling and after long runs
  • 16 dots in total across the world
  • No trails or damaged terrain left behind, even after 5 minutes
  • No flicker or tearing of the dots near the top of the map, even with many dots in view

Verifies: R2, R3, R5

MT3.4: Frame budget timing bar (c64, M3.4)

Setup: VICE x64sc, NTSC (-ntsc), pepto-pal palette (tools/run.ps1 selects it), warp off. Start: pwsh -File tools/run.ps1 -Target c64 -TimingBar (a separate build, build/land-map-64-timing.prg; the normal program is not changed).

The border colour shows what the CPU is doing during each frame:

Border Work
white scroll step, buffer flip, people restore and draw (vertical blank)
yellow keys, status text, people movement
cyan rebuilding the hidden buffer for the next scroll step
red raster interrupt (the split to the status area, and the top of the frame)
light brown idle, waiting for the next frame

Steps:

  1. Leave the view still for a few seconds.
  2. Hold a cursor key and watch the border while the map scrolls.

Expected:

  • View still: the border is mostly light brown, with a thin red stripe at the status split (the white and yellow work happens in lines the border mostly does not show).
  • Scrolling: the border is cyan down to near the bottom of the screen (the rebuild uses the frame's spare time), with the red stripe at the split and a little light brown below.
  • In both cases the border pattern is steady from frame to frame, not rolling or jumping: the program keeps up with every frame. (Small specks at colour changes are normal for a border-colour timing bar.)

Verifies: R3.3, A4 (measured numbers: tools/check-scroll.ps1 budget lines)

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. Hold each cursor key (and Right + Down, Left + Up) and watch the text and the boundary while the map scrolls, especially while it scrolls up and down.

Expected:

  • The map fills the top 20 cell rows; five lines of white upper-case text on light 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.
  • The text never moves while the map scrolls, and the boundary stays clean at every vertical scroll position.
  • VIEW X/Y show the view's top-left cell (X 0-42, Y 0-30) and follow the scrolling.
  • The people-in-view number follows dots entering and leaving the map (it updates 15 times a second; a dot cut by the map's edge counts).

Verifies: R6 (and the R1 view size)

M4 - Terrain all over the world

MT4.1: Terrain everywhere, a different mix per world (c64)

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

Automated first: pwsh -File tools/check-world.ps1 -Runs 10 should end with [PASS] the terrain mix varies between worlds ... and [PASS] 10 world(s) checked. (add -ShowMap to print each world as a character map: . land, g grass, T trees, # stone, ~ water; since M5.1 no roads).

Steps:

  1. Wait for the map (the generating message shows for about 4 seconds). Look at the first view.
  2. Scroll over the whole world: right to the edge, down, left, and up again.
  3. Tap SPACE five or six times, waiting for each new map, and compare the first views.
  4. In one world, scroll along a road that crosses a lake, and watch the dots near water and stone for a minute.
  5. Scroll left, right, up and down across busy terrain.
  6. Scroll, stop, then press a cursor key again, many times and in every direction (also straight back the way you came).

Expected:

  • Every view shows a mixture of terrain: open light brown land, green meadows with trees, grey rock outcrops and blue lakes with shores, spread over the whole world, not one big lake or a few patches.
  • Each new world has a different mix: some clearly wetter, rockier or greener than others.
  • (Before M5.1: black roads, two across and two down, with bridges over water. Since M5.1 there are no generated roads; see MT5.1.)
  • No colour clash, no stray pixels at shores, bridges or crossings.
  • Dots walk on land, grass, trees, roads and bridges, and never step onto water or stone. On a bridge a dot stays on the black road and never touches the blue water on either side.
  • Scrolling stays smooth over textured terrain (no regular stutter at each cell step). A short hesitation when a scroll starts from rest is acceptable, as before.
  • Every cursor key press from rest moves the view, at once or after a short hesitation; the view never stays stuck while a key is held (except at the world edge in that direction).

Verifies: R1 (R1.2-R1.6), R2.3, R5.1

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.

M5 - Worn paths

MT5.1: No roads (c64)

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

Automated first: pwsh -File tools/check-world.ps1 -Runs 10 should end with [PASS] 10 world(s) checked.

Steps:

  1. Wait for the map and scroll over the whole world.
  2. Tap SPACE a few times and look again.

Expected:

  • No black roads or bridges anywhere; land, meadows with trees, grey rock and lakes as before.
  • The dots walk as before.

Verifies: R1 (R1.2, R1.3)

MT5.2: Worn paths (c64)

Setup: VICE x64sc, NTSC (-ntsc), pepto-pal palette, warp off. Start (test build: a path at 4 steps, gone again below 2, every count one less each 400 frames): pwsh -File tools/run.ps1 -Target c64 -PathTest The normal build (pwsh -File tools/run.ps1 -Target c64) uses 128 and 64 with one count less every 60 seconds, so paths there take many minutes of walking to appear.

Automated first: pwsh -File tools/check-paths.ps1 should end with [PASS].

Steps:

  1. Start the test build and watch the first view for a minute without pressing keys.
  2. Scroll around while paths appear and fade, and come back to the first view.
  3. Press SPACE.
  4. Optionally run the normal build for a long time (for example 30 minutes) and look for paths.

Expected:

  • Dark brown worn patches appear where the dots walk most, and turn back into the terrain they were (light brown land, grass or trees) when the dots stop using them.
  • Never on water or stone.
  • No flicker, tearing, trails or wrong pixels when a cell changes, also while scrolling and where a dot is standing on the cell.
  • The dots keep walking over paths.
  • SPACE gives a new world with no paths.

Verifies: R7

Powered by TurnKey Linux.