Procházet zdrojové kódy

Spec: record the Up+Right / Down+Left diagonal as a known C64 limitation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main
Daniel Covington před 2 dny
rodič
revize
d6bc6b344a
4 změnil soubory, kde provedl 6 přidání a 2 odebrání
  1. +2
    -0
      docs/manual-tests.md
  2. +1
    -1
      docs/spec.md
  3. +2
    -0
      docs/verification-status.md
  4. +1
    -1
      project.json

+ 2
- 0
docs/manual-tests.md Zobrazit soubor

@@ -133,6 +133,8 @@ should print `[PASS] all 3 scroll scenarios: ...`.
Keys (VICE maps the PC arrow keys to these): Right arrow = CRSR RIGHT, Down arrow = 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 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. 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: Steps:
1. Wait for the map. Hold Right until the view stops, then Down until it stops. 1. Wait for the map. Hold Right until the view stops, then Down until it stops.


+ 1
- 1
docs/spec.md Zobrazit soubor

@@ -145,7 +145,7 @@ Capabilities: raster-interrupts


| Topic | Decision | Source | | Topic | Decision | Source |
|---|---|---| |---|---|---|
| Controls | Cursor keys scroll the view. On a real C64 these are CRSR down/right, plus SHIFT for up/left; the keyboard matrix is read directly so a key held down scrolls continuously. VICE maps the PC arrow keys to them. SPACE generates a new world. | decided by user |
| Controls | Cursor keys scroll the view. On a real C64 these are CRSR down/right, plus SHIFT for up/left; the keyboard matrix is read directly so a key held down scrolls continuously. VICE maps the PC arrow keys to them. SPACE generates a new world. Known limitation (accepted by the user, 2026-12-03): SHIFT applies to both cursor keys, so only the Right + Down and Left + Up diagonals work; Up + Right and Down + Left come out as Up + Left (VICE sends the PC Up and Left arrows as SHIFT + CRSR). | decided by user |
| Visuals | Multicolour bitmap mode (160x200, double-wide pixels) for a 38-column map area 20 cell rows high, smooth-scrolled; below it a raster split to a fixed 5-row, 40-column text status area in the upper-case ROM font, light red on light brown. Light brown (C64 colour 8 (named orange), which VICE's pepto-pal palette (measured from PAL C64s) shows as light brown; tools/run.ps1 starts VICE with that palette) is the shared background colour; light red is the colour-RAM colour in every cell, so people can be drawn anywhere without colour clash and colour RAM never needs scrolling. The two screen-RAM colours of each 4x8 cell come from grey (stone), green (grass and trees), blue (water) and black (roads). The world is stored as one tile byte per 4x8 cell; each tile is drawn from a small set of 8-byte pixel patterns (including edge and corner patterns) so shorelines and roads look natural. | decided by user | | Visuals | Multicolour bitmap mode (160x200, double-wide pixels) for a 38-column map area 20 cell rows high, smooth-scrolled; below it a raster split to a fixed 5-row, 40-column text status area in the upper-case ROM font, light red on light brown. Light brown (C64 colour 8 (named orange), which VICE's pepto-pal palette (measured from PAL C64s) shows as light brown; tools/run.ps1 starts VICE with that palette) is the shared background colour; light red is the colour-RAM colour in every cell, so people can be drawn anywhere without colour clash and colour RAM never needs scrolling. The two screen-RAM colours of each 4x8 cell come from grey (stone), green (grass and trees), blue (water) and black (roads). The world is stored as one tile byte per 4x8 cell; each tile is drawn from a small set of 8-byte pixel patterns (including edge and corner patterns) so shorelines and roads look natural. | decided by user |
| Sound | None in the first release. | practical default | | Sound | None in the first release. | practical default |
| Persistence (save/load) | None. Maps and seeds are not saved. | practical default | | Persistence (save/load) | None. Maps and seeds are not saved. | practical default |


+ 2
- 0
docs/verification-status.md Zobrazit soubor

@@ -22,6 +22,8 @@ manual = `pending`, `confirmed by user (<date>)`, `problem reported (<date>): <n


## Notes ## Notes


- 2026-12-03 (spec note, decided by the user): the user found that Up + Right scrolls up and left. On the C64 SHIFT applies to both cursor keys (VICE sends the PC Up and Left arrows as SHIFT + CRSR), so Up + Right and Down + Left cannot be told apart from Up + Left. Offered extra letter keys or a joystick; the user chose to leave it as is. Recorded as a known limitation in docs/spec.md (Controls), project.json (controls) and docs/manual-tests.md (MT3.1 keys). No code change; docs/milestones.md unchanged (no task affected).

- 2026-12-03 (scroll did not start, problem reported by the user during the M4.1 re-check: "the scroll will not move sometimes when the cursor keys are pressed"): - 2026-12-03 (scroll did not start, problem reported by the user during the M4.1 re-check: "the scroll will not move sometimes when the cursor keys are pressed"):
- Cause (from the M3.3 tear fix, commit a40ea04, not from the bridge fix): with the view resting exactly on a cell edge, a key toward that edge (left at fx 0, up at fy 0) needs the hidden buffer rebuilt before the first step, so the view waits. A waiting view counts as still, so people_vblank drew the people into the hidden buffer and set people_flip_pending; choose_rebuild_target does nothing while a flip is pending, so the rebuild never started. This repeated every frame for as long as the key was held. - Cause (from the M3.3 tear fix, commit a40ea04, not from the bridge fix): with the view resting exactly on a cell edge, a key toward that edge (left at fx 0, up at fy 0) needs the hidden buffer rebuilt before the first step, so the view waits. A waiting view counts as still, so people_vblank drew the people into the hidden buffer and set people_flip_pending; choose_rebuild_target does nothing while a flip is pending, so the rebuild never started. This repeated every frame for as long as the key was held.
- Fix (src/people.inc, people_vblank): when a step is wanted (step_x or step_y nonzero after get_steps) the people are drawn in the shown buffer, so the hidden buffer is free to rebuild. The tear fix stays in place. - Fix (src/people.inc, people_vblank): when a step is wanted (step_x or step_y nonzero after get_steps) the people are drawn in the shown buffer, so the hidden buffer is free to rebuild. The tear fix stays in place.


+ 1
- 1
project.json Zobrazit soubor

@@ -186,7 +186,7 @@
"value": "Keyboard only. No disk access after loading, no joystick." "value": "Keyboard only. No disk access after loading, no joystick."
}, },
"controls": { "controls": {
"value": "Cursor keys scroll the view. On a real C64 these are CRSR down/right, plus SHIFT for up/left; the keyboard matrix is read directly so a key held down scrolls continuously. VICE maps the PC arrow keys to them. SPACE generates a new world.",
"value": "Cursor keys scroll the view. On a real C64 these are CRSR down/right, plus SHIFT for up/left; the keyboard matrix is read directly so a key held down scrolls continuously. VICE maps the PC arrow keys to them. SPACE generates a new world. Known limitation (accepted by the user, 2026-12-03): SHIFT applies to both cursor keys, so only the Right + Down and Left + Up diagonals work; Up + Right and Down + Left come out as Up + Left (VICE sends the PC Up and Left arrows as SHIFT + CRSR).",
"source": "user" "source": "user"
}, },
"other": [ "other": [


Načítá se…
Zrušit
Uložit

Powered by TurnKey Linux.