Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:12 01 Dec 2026 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : ROAD - a pseudo-3D racer for the PicoCalc (PiCa)

Author Message
homa

Guru

Joined: 05/11/2021
Location: Germany
Posts: 789
Posted: 08:45pm 30 Nov 2026
Copy link to clipboard 
Print this post

ROAD - a pseudo-3D racer for the PicoCalc (PiCa)

ROAD now runs on the PicoCalc. It is the same game as on the Pico Computer 3: five tracks, world tour, rookie/veteran/practice, records per track, music and sound effects from the track MODs.

The original for the PC3: ROAD - a pseudo-3D racer for the PC3
How the port came along: ROAD is on its road to the PicoCalc (with Teaser video)

Download
ROAD-PICA_RC1.zip is attached. Copy the folder ROAD-PICA to the SD card, then:
CHDIR "B:/ROAD-PICA"
RUN "ROAD-PICA"


Important first
- tested with PicoMite V8.00.00b2 (the normal PicoMite for the RP2350, not WebMite)
- it needs the buffered LCD driver (otherwise MAP and the track colours do not work)
- ROAD-PICA writes into flash slots 2 and 3 (road and background pictures of the current track). If a slot holds other data, the game asks before it overwrites anything. Slot 1 is never touched.

Once at the prompt
After OPTION LCDPANEL DISABLE the screen stays dark - type the next line blind or use the serial console (e.g. TeraTerm).
OPTION LCDPANEL DISABLE
OPTION LCDPANEL ST7365PBUFF, PORTRAIT, GP14, GP15, GP13
OPTION LCDPANEL CONSOLE
OPTION CPUSPEED 300000
OPTION COMPILE ON
OPTION MODBUFF ENABLE 192


Keys
Arrows or 2 throttle, 1 brake, 9 left, 0 right - P pause, ESC menu, M music/effects, T map, I info. The keys are also shown on the last credits page in the title.

What is different to the PC3 version
- no PSRAM: road and sprite data are packed, the road is read from flash slot 2
- picture at the top (320 x 240), black bar below - FRAMEBUFFER COPY is 5 times faster than a centred BLIT
- the view distance follows the frame time, so it runs at an even 13-14 fps on all tracks
- 15 cars fewer, slightly more generous time limits
- sound only from the track MOD (music or effects MOD, key M), no engine mode
- the first load of a track takes longer, after that a track loads in 4-5 s (cached on the SD card)

The ZIP also holds a developer paper (PDF) about the port: the challenges and how they were solved. README and paper are in English and German.

@Peter
I found something on the PicoCalc (V8.00.00b2, ST7365PBUFF, 300 MHz): PLAY MODFILE freezes the machine (no error, only a reset helps) when it has to write a different MOD into the MODBUFF right after the LCD was updated. With a short PAUSE before PLAY MODFILE it works every time - ROAD-PICA uses PAUSE 100.

MODSWAP.BAS is attached (in MODSWAP.zip): MODSWAP.zip
Run it in the ROAD-PICA folder, it uses road1.mod and road1fx.mod from the ZIP:
- SPACE switches the MOD at once (PLAY STOP, then PLAY MODFILE)
- W does the same with PAUSE 300 before PLAY MODFILE
- G switches a graphics load on/off (a framebuffer copied to the LCD every loop, as in the game)
Every step is shown before it runs, so the last line tells where it hangs.

What I see:
- graphics off (G not pressed): SPACE and W both work, as often as I like
- graphics on (G): W works, SPACE freezes the PicoCalc on the first change
- CONST STARTWAIT (line 12) is the pause before the very first PLAY MODFILE after RUN. With 0 it freezes right after the start, with 300 (as attached) it starts fine.
While the graphics load runs, the MOD playback stutters a lot - but the freeze is the point here.

Maybe you can have a look. Thanks!



What comes next
With this RC1 the PicoCalc port is done for now. I will go on with the PC3 version and start using the new MOD features of firmware 8 (e.g. for the engine and Doppler sound).

Have a good drive!
Matthias


ROAD-PICA_RC1.zip
ROAD-PICA_Developer_EN.pdf
Edited 2026-12-01 06:46 by homa
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026