GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - hackmods/morris-bridge-gba: Thomas's Bridge: a Game Boy Advance bridge builder with a real truss simulation. Weld timber, rod and cable across eight Sodor gaps and send a train over it. Fan-made parody.

BranchesTags
Open more actions menu

Latest commit

 

History

193 Commits
193 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
artifacts/walkthrough
artifacts/walkthrough
 
 
audio
audio
 
 
audio_preview
audio_preview
 
 
deploy
deploy
 
 
dmg_audio
dmg_audio
 
 
docs
docs
 
 
graphics
graphics
 
 
include
include
 
 
rom
rom
 
 
scripts
scripts
 
 
src
src
 
 
tests
tests
 
 
tools
tools
 
 
web
web
 
 
.dockerignore
.dockerignore
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
REPO.md
REPO.md
 
 
VERSION
VERSION
 
 
captain-definition
captain-definition
 
 

Repository files navigation

Thomas's Bridge

A bridge-building puzzle game for the Game Boy Advance. Weld timber, steel rod and cable across eight gaps on the Island of Sodor, then send a train over it and find out whether you were right.

Release ROM Docs

Thomas climbs Gordon's Hill with Annie and Clarabel while Edward banks from behind

The bridge is simulated as a real structure. Joints have weight, beams carry force and snap when they have had enough, and a deck with nothing under it falls into the river. The product is the ROM; the browser page is an emulator running that ROM.

A fan-made parody for friends. Original pixel art and music. Not affiliated with or endorsed by Mattel, Gullane, or anyone who owns Thomas & Friends.

Play it

How What to do
Emulator Open rom/thomas_bridge.gba in mGBA
Real hardware Copy the ROM to a GBA flash cart (EverDrive GBA and similar) — see hardware
Browser ./scripts/sync_rom_to_web.sh && cd web && npm install && npm run dev, then open http://127.0.0.1:4317
Docker ./scripts/sync_rom_to_web.sh && docker build -t thomas-bridge . && docker run --rm -p 8080:80 thomas-bridge

Controls

GBA Keyboard (browser) Does
D-pad Arrow keys Move the cursor
A Z Select a joint, then weld to another spot. Hold and drag to chain-weld
B X Delete the joint or beam under the cursor
R R Next material: timber → rod → cable. Hold with the D-pad to move faster
L L Undo the newest weld; keep pressing to unwind further
Start Enter Send the train. Press again to call it back. Hold A during the run for double speed
Select Backspace Pause

How a bridge works

Knapford: one deck joint propped on a rock Callan: cable stays from castle towers, amber under load
Build. Anchors are the only solid ground. Everything else you weld has weight. Test. Links turn amber at half their strength and red near breaking.
  • Timber carries the rails. Cheap, short, snaps at 8.
  • Rod is a brace that pushes or pulls. Costs double, reaches further, snaps at 12.
  • Cable is cheap and long and holds 12, but only in tension. Push on it and it goes slack.
  • The bridge settles under its own weight before the train leaves. If it cannot hold itself up, you find out early.
  • A snapped link dumps its load on its neighbours. Collapses cascade.
  • Engines slow uphill and lean into the grade, including on the sag of your own deck. Track steeper than 2 in 3 is too steep to climb.
  • Troublesome Trucks bump along and shake the bridge. Coaches do not.
  • Every level has a par cost for three stars and a purse (2× par) you cannot exceed.
  • After a failed run the bridge comes back as built, with the links that gave way still glowing.

The full rules are in game design; the maths is in physics.

The engines

Engine select: Henry, No. 3

No. Engine Pulls Total load Unlock
1 Thomas Annie and Clarabel 6 Start
2 Edward Tender, one coach 7 Clear Gordon's Hill
3 Henry Tender, two trucks (the Flying Kipper) 9 Clear Culdee Fell
4 Gordon Tender, two express coaches 14 Clear every track
5 James Tender, one coach 8 Clear Tidmouth
6 Percy One truck 4 Clear Knapford

Each track is timetabled for one engine. A lighter engine will get you across for one star. Gordon breaks every par design in the game except Gordon's Hill, where Edward pushes him up from behind.

The line

Track select: Gordon's Hill

# Track What you get What it asks for
1 Knapford A rock in the river A prop
2 Gordon's Hill Two crags over a climb, and Edward banking Cables
3 Culdee Fell Nothing A truss
4 Tidmouth Nothing, and only timber A truss in wood
5 Wellsworth Ledges low in the cutting Struts from below, under bumping trucks
6 Crovan's Gate One rock, off-centre A trestle and a free span
7 Callan A castle tower on each bank Stays
8 Vicarstown One pier in the channel The bridge to the mainland
Tidmouth: Percy and a truck on a timber queen-post truss Vicarstown: Henry hauls the Flying Kipper toward the mainland
Title screen A par win at Callan: REALLY USEFUL!

Under the hood

  • Engine: Butano, C++20, built with devkitARM
  • Simulation: a fixed-point pin-jointed truss solver — no floating point, no heap, four substeps a frame at 60 fps on a 16 MHz ARM7
  • Art: every sprite and background is generated by tools/gen_graphics.py; each level's terrain is drawn from the same anchor table the game uses
  • Proof: host tests check, for all eight levels, that an unsupported deck collapses, that the par design holds at par cost, and that removing any single link from it loses the train

Build and test

./scripts/build_rom.sh        # ROM, in Docker (no local devkitARM needed)
make -C tests                 # host physics, session, progress and save tests
cd web && npm ci && npm test  # web unit tests
npx playwright test           # end-to-end, drives the ROM in mGBA-WASM

More in building the ROM and testing.

Documentation

docs/README.md is the index. The pages most people want:

Topic Link
Rules, engines, levels, result lines Game design
The structural model Physics
Sprites and generated terrain Graphics
The backstory, for friends Lore leak
What changed and when Changelog

Repository

Game title Thomas's Bridge
ROM thomas_bridge.gba (header THOMASBRIDGE / THOM01), about 420 KB, committed for clone-and-play
Repo name morris-bridge-gba is the working codename and stayed
Licence MIT for this project's code, art and music. The characters are not ours to license — see NOTICE. Butano, the engine, is zlib-licensed

About

Thomas's Bridge: a Game Boy Advance bridge builder with a real truss simulation. Weld timber, rod and cable across eight Sodor gaps and send a train over it. Fan-made parody.

Topics

bridge-builderbutanocpp20devkitarmgame-boy-advancegbahomebrewphysics-simulationpixel-artpuzzle-game

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.