Marble Race Game
A marble race simulator with real glass marbles. They roll without slipping down a long wooden, metal and clear acrylic track, through pins, a spiral, a tube, a funnel and a spinner, and race to the finish. Name up to 100 marbles, watch with a camera that picks its own shots, or build your own marble race track in the track maker and test it with one marble. Free online, no sign in.
The marbles need WebGL
This browser could not start the 3D picture, so there is nothing to race here. Try a recent Chrome, Edge, Firefox or Safari, and check that hardware acceleration is switched on in the browser settings.
Setting up the track.
Without a pointer: Tab to the picture. The arrow keys turn the view, Plus and Minus zoom, C switches between following the leader and the whole track, and Space pauses. In the track maker, Tab to the list of pieces: the arrow keys choose a piece, R turns it, M changes its material, Delete removes it, [ and ] move it earlier or later, and Ctrl with Z or Y undoes and redoes. Press a piece in the tray to add it after the chosen one. Escape leaves Clean screen.
What does this prove?
The whole race is worked out before the first frame is shown, and a code made from its seed, track, marbles and winner is sealed first. When the race ends, the code is made again from what you saw, and a fresh run from the seed can be checked against it. The same seed, track and names give the same race on any device, so anyone with your link can check it too.
Every marble is a real rolling glass sphere: its spin always matches its travel, so it speeds up down a slope the way a marble does. Race lets you steer the camera by dragging, and Watch lets the camera choose its own shots and slow down for a close finish. Races play at a calm pace, and the speed control makes them half as fast or twice as fast. Sound stays off until you switch it on. Saved tracks stay on this device only.
How to play
- Press New race. The race is worked out first and sealed with a short code, then it plays. Type names in the box, one to a line, and the marbles carry them. The count goes up to 100.
- Pick Race to steer the camera yourself (drag to turn, scroll or pinch to zoom), or Watch to let the camera follow the leading marbles, ease out to a wide shot and slow down for a close finish. The speed control plays the race at 0.5x, 1x or 2x of its calm pace. The Motion dial in Comfort keeps it calm, or completely still.
- Pick Track maker to build a marble race track. Press a piece in the tray to add it after the chosen one, or drag it onto the track and it snaps to the nearest joint. Turn it, change its material, move it, delete it, and undo or redo as much as you like.
- Press Test run to send one marble down your track and see whether it finishes. Then Race on this track, or Copy link to this track to share it. Anyone with the link sees the same race, marble for marble.
Real marble physics
Each marble is a glass sphere that rolls without slipping, so it gathers speed down a slope the way a real marble does, a little slower than something sliding. Marbles of slightly different sizes bump into each other and pass on some of their spin. Wood, metal and acrylic each have their own bounce and their own grip. The track has straights, banked curves, ramps, drops, a clear tube, a spiral, bumper pins, a spinner and a funnel.
The same seed gives the same race
One number, the seed, decides the race. The whole race is worked out before the first frame, so its result is fixed and sealed with a SHA 256 code before anything moves. Nothing is tuned for drama. If a marble ever leaves the track it is put back where it last passed a gate, and if one stops for three seconds it gets a gentle nudge. Both are counted in the results.
A marble race maker for your own tracks
The track maker is a small marble race creator: build a track from thirteen kinds of piece, up to forty pieces end to end. Everything works from a keyboard as well as a pointer or a finger. Test it with a single marble, make a random track from a seed, save tracks on this device, and copy a link that holds the whole track. Your track is turned into a short code in the link, so there is nothing to upload.
Made to watch
Turn Sound on for synthesised glass clacks, wooden knocks, ringing metal ticks and a soft roll underneath. It stays off until you switch it on. Clean screen hides every control for screen recording, and the video recorder saves a clip with the sound. This is a race to watch and build, with nothing to score.