ROAD 1.0 RC2 - pseudo-3D racer for the Pico Computer 3 (PicoMite V7 or V8, MMBasic)
(c) Matthias (homa) with Claude - 2026
Based on Jake Gordon's javascript-racer (MIT licence) and Lou's Pseudo 3d Page.
Written entirely in MMBasic (firmware 7 or 8, no CSUB).  Video: https://youtu.be/W4qjgm6pynE
Manual: ROAD_Manual_EN.pdf / ROAD_Handbuch_DE.pdf
What RC2 changed and why: ROAD_RC2_Tuning_EN.pdf / ROAD_RC2_Tuning_DE.pdf

INSTALL
Copy all files into one folder on the SD card, then at the prompt:
  cd "road"            (the folder with the files)
  load "road.bas"
  run
Once at the prompt (important for the speed):
  OPTION RESOLUTION 640x480, 378000     (clock 378 MHz)
  OPTION COMPILE ON                     (compiler, V7 and V8)
Needs an RP2350 with PSRAM (the background pictures use the RAM image slots 4-8).

PLAY
Title: LEFT/RIGHT track or WORLD TOUR, ENTER start, N driver name, O options, ESC quit.
Race:  arrows (or W A S D), P pause, ESC menu, M music, E engine sound, I info, T map.
Finish a track to unlock the next one - or finish the world tour to unlock them all.
OPTIONS: DIFFICULTY rookie / veteran (own records), MODE race / practice
(no traffic, no records - unlocked tracks only), MENU MUSIC on / off.

FILES
  ROAD.BAS        the game
  roadN.trk       track N (text: road, sprites, palette, times, music, background)
  roadN.bmp       sprite sheet of track N
  roadNsky.bmp    background layers of track N (any width from 320 up,
  roadNfar.bmp      16 standard colours, black = transparent; see LAYER in road1.trk)
  roadNnear.bmp
  roadN.mod       music of track N (with the effect samples)
  road1fx.mod     effects only, no music (key M in the race)
Written by the game
  road.cfg        driver name, unlocked tracks, options
  roadN.hi        top 5 of track N (rookie), roadNv.hi = veteran
  world.hi        top 5 of the world tour (rookie), worldv.hi = veteran

HISTORY (key steps)
  RACER V1-V16   feasibility study: javascript-racer ported to MMBasic; road drawn
                 row by row with BOX arrays instead of POLYGON, 378 MHz + compiler
                 (10 -> 20 fps), MOD music with effect samples
  ROAD 0.1-0.3   real game: title, driver name, 3 laps, time limit, checkpoints,
                 records; tracks as text files with own sheet, music and palette
  ROAD 0.4-0.11  English UI; 5 tracks: Green Valley, Texas, California (coast,
                 4/2 lanes), Circuit (figure 8, bridge, tunnel), City (night)
  ROAD 0.12-0.14 quit questions, hazards (bull skulls), world tour, credits,
                 time bonus per checkpoint
  ROAD 0.15-0.18 pixel-art background layers (BLIT FLASH from PSRAM), parallax,
                 wide panoramas that turn with the road
  ROAD 1.0 RC1   options: rookie / veteran, practice, menu music; times measured
  ROAD 1.0 RC2   speed only, nothing else changed (runs on firmware 7 and 8):
                 scenery drawn without a SUB call per sprite (5-7 ms less per frame),
                 shorter scenery distance (60 instead of 80 segments) on busy
                 stretches, chosen automatically from the track. Green Valley start:
                 14 -> 17-18 fps. Optional in a track file:
                   SCENERY, 80, 60, 30   distance, distance on busy stretches,
                                         limit (scenery sprites ahead)

COMING NEXT
  ROAD 1.1       sound with the new MOD functions of firmware 8 - from then on
                 ROAD needs firmware 8.

Have a good drive!
