TRACKS 1.2.2 Author: OakAcorn Software Copyright OakAcorn Software, 25 October 2026 INSTALLATION Extract Tracks-riscos5.zip on RISC OS using SparkFS or another ZIP tool that preserves Acorn filetype metadata. Keep all the files inside !Tracks together. Double-click !Tracks. A small steam-train icon appears on the icon bar. CONTROLS Select (left click): start or stop the desktop railway. Menu (middle click): Info traditional Name, Purpose, Author, Version box and Help button Train > Steam train, Diesel, Electric; the selected train is ticked SFX Off turns the currently enabled effects off SFX On turns the currently disabled effects on Quit removes the railway and closes Tracks Adjust-select a menu item to keep the menu open. Preferences last for this run. One locomotive pulls exactly three passenger carriages. The train runs along the top of the icon bar, roughly three quarters of its height. A stone tunnel appears as it approaches a screen edge. After the train disappears, a shutter closes; a few seconds later it opens and the train returns, locomotive first. The sequence repeats at the opposite edge. Changing train type applies to the current journey. Animation pauses while Tracks' menu is in use. The steam engine is green and brass with large driving wheels and maroon coaches. Diesel is an eighties-inspired blue-and-grey train with a yellow cab. Electric is a streamlined silver-and-green train with a pantograph. SOUND Effects are enabled initially. Steam has a rhythmic chuff and occasional whistle. Diesel has a low engine rumble and horn. Electric has a quiet motor whine and warning horn. Effects stop during the hidden tunnel pause, when the train is stopped, when SFX is switched off, and on quitting. Audio uses SharedSound with 16-bit sound configured. If it is unavailable, the application still runs silently. See the Help file for requirements. The sample rate is 11025 Hz, stereo, signed 16-bit little-endian PCM. SharedSound converts to the current output rate and mixes with other applications. No speech or external sound files are downloaded. All effects are synthesised by Build. IMPLEMENTATION BBC BASIC V handles normal Wimp events. Trains and tunnel are native 4bpp RISC OS sprites with palettes and masks. Their opaque silhouettes are split into disjoint rectangular, borderless Wimp windows. Consequently the actual desktop shows between wheels and around the body, without a painted backdrop, saved screen image, global pointer replacement, or a permanent desktop strip. Other applications can cover the train normally. New tunnel pieces appear behind the train. The vanishing plane is inside the dark opening, rather than at the curved stone edge. The entrance also clears the chimney/pantograph. Closed pieces expose the underlying desktop through normal Wimp redraws. This approach uses more Wimp windows than a rectangular toy window; frame timing yields to redraws and other desktop work. Window moves are submitted before returning to the normal Wimp polling/redraw cycle. Only the wheel/rod band is refreshed for wheel animation. Unchanged tunnel pieces are left in place, and redraw dispatch uses a small handle lookup table. The timer aims for 25 updates per second; a long desktop delay is capped to prevent a large catch-up jump. Actual smoothness depends on the desktop load. The icon bar height and screen dimensions are queried at start. Artwork uses an integer OS-unit pixel scale, choosing the nearest size to 75% of icon bar height (normally a 72 OS-unit-high train). It remains just above the bar; it does not resize the icon bar or reserve part of other applications' windows. Mode/palette changes rebuild colour translation and restart the journey. The application does not change the desktop screen mode or take input focus. SoundCode is a small ARMv4-compatible, position-independent SharedSound fill callback with a 32-bit return. Two separate RMA contexts allow the running sound and occasional call to mix. Handlers are removed before their memory is freed. SoundARM is the readable instruction listing. SOURCE AND REBUILDING !Tracks.Source readable, untokenised BBC BASIC V !Tracks.!RunImage tokenised BASIC application !Tracks.Trains train and tunnel sprite bank, editable with Paint !Tracks.!Sprites icon bar / Filer sprite, editable with Paint Build Python 3 build script, standard library only Geometry generated opaque-silhouette rectangles (JSON) SoundARM generated ARM assembly listing On another computer with Python 3: python3 Build The build recreates sprites, geometry DATA, PCM effects, callback, !RunImage, and the RISC OS ZIP with Acorn filetypes. It contains its own small BASIC tokeniser for this source's uppercase keywords and lowercase identifiers. It is not a general-purpose BASIC tokeniser. Regenerating overwrites manual sprite changes; edit the drawing routines in Build to keep artwork changes. CHANGES IN 1.2.1 Removed the explicit null-pointer Wimp_OpenWindow flush added in 1.2. It caused "Bad pointer passed to Wimp in R1" at BASIC line 3190 on your system. Pending moves now use the normal Wimp polling/redraw cycle. The native Info box, OakAcorn Software credit, movement changes and tunnel correction are retained. CHANGES IN 1.2 Replaced the incorrectly positioned custom-drawn Info text with native Wimp icons, in the traditional Name/Purpose/Author/Version layout. Author is OakAcorn Software. The window title is About this program, with inset fields, and a working Help button. The title and icon strings have persistent buffers. Reduced redraw overhead and unnecessary stationary-window moves. Wheel animation follows distance travelled. Movement uses smaller timed steps and limits jumps after delayed polls. Includes all tunnel corrections from 1.1. CHANGES IN 1.1 Fixed early, curved clipping at tunnels. Train pieces now stay in front of the tunnel, disappearing at a vertical plane inside the black opening. The return journey begins at that same plane. The shutter starts closing after the final carriage passes it. Increased tunnel clearance and retained the whole group's depth below other desktop windows. VALIDATION The package is checked for tokenised BASIC record structure, sprite headers, opaque rectangle coverage, animation mask consistency, audio alignment, and Acorn ZIP metadata, plus tunnel-layer ordering and entry/exit clipping on both sides. The SharedSound callback has also been executed in an ARM instruction emulator with mocked mixing helpers. A full RISC OS desktop and real SharedSound audio device were not available here. Version 1.0 ran on your desktop; version 1.2.1 still needs a desktop check on your machine. PUBLISHER AND LICENCE Copyright (c) 2026 OakAcorn Software. The MIT licence covers original code, documentation and artwork, and other original contributions to the extent of the rights held by the publisher and contributors. The full licence is in the License file inside the app. The OakAcorn name and logo identify the publisher. Trademark rights remain with their respective owners. This railway is a recreation from memory. The grant covers this implementation and its assets. The earlier program and its author are still unidentified.