Bridge Stress Test — Railway Tru
Procedural train-track rhythm & steel-cable synth inspired by Bridge Stress Test (桥梁压力测试) by Ant Games — free, no pay to win, no sign-up, plays in the browser.
Play: antgames.ai/play/bridge-stress-test/
中文: antgames.ai/zh/play/bridge-stress-test/
Guide: antgames.ai/guide/bridge-stress-test/
60 levels, 5 railway lines, 8 trains, live stress colours, slow-mo replay, Sandbox.
All 5 Games: antgames.ai/
Scarecrow Smasher (流星锤打稻草人): antgames.ai/play/scarecrow-smasher/
AR: antgames.ai/ar/play/scarecrow-smasher/
Guide: antgames.ai/guide/scarecrow-smasher/
Apogee Keep: antgames.ai/play/apogee-keep/
Warship Workshop: antgames.ai/play/warship-workshop/
Star Against the Dark: antgames.ai/play/star-against-the-dark/
Google Play:
Warship Workshop: play.google.com/stor…ames.warshipworkshop
Star Against the Dark: play.google.com/stor…s.staragainstthedark
Log in to post a comment.
// Bridge Stress Test — Railway Truss Rhythm (Ant Games)
// https://antgames.ai/play/bridge-stress-test/
ditty.bpm = 132;
const railClack = synth.def((phase, env, tick, opts) => {
const noise = (Math.random() * 2 - 1) * 0.35;
const body = Math.sin(phase * Math.PI * 2) * 0.65;
return (body + noise) * env.value * (opts.amp || 0.4);
});
const cablePluck = synth.def((phase, env, tick, opts) => {
const f = Math.sin(phase * Math.PI * 2) + 0.35 * Math.sin(phase * Math.PI * 4);
return f * env.value * (opts.amp || 0.25);
});
loop(() => {
// Classic 4-beat locomotive rail clack-clack pattern
railClack.play(c2, { attack: 0.002, release: 0.09, amp: 0.48 });
sleep(0.25);
railClack.play(g2, { attack: 0.002, release: 0.06, amp: 0.28 });
sleep(0.25);
railClack.play(c2, { attack: 0.002, release: 0.07, amp: 0.34 });
sleep(0.5);
}, { name: 'locomotive' });
const scale = [c4, d4, e4, g4, a4, c5, a4, g4];
loop((i) => {
const note = scale[i % scale.length];
cablePluck.play(note, { attack: 0.005, release: 0.35, amp: 0.22 });
sleep(0.5);
}, { name: 'truss-harmonics' });