Bridge Stress Test — Warren Trus
Procedural Warren truss & arch blueprint inspired by Bridge Stress Test (桥梁压力测试) by Ant Games — a free railway bridge-building physics simulation in your browser.
Play Bridge Stress Test: antgames.ai/play/bridge-stress-test/
Guide: antgames.ai/guide/bridge-stress-test/
All 5 Free Browser Games (no pay to win, no sign-up): antgames.ai/
60 levels on 5 railway lines (garden, gorge, estuary, pass, city), 8 kinds of train, timber/rope/iron/steel/cable/stone piers, live stress colours, slow-motion replay, Sandbox, Daily Level, Level Editor, 45 achievements.
STAR AGAINST THE DARK (孤星破暗) — free space survivor-like roguelite (13 worlds, 5 epochs, 5 bosses):
Browser: antgames.ai/play/star-against-the-dark/
Guide: antgames.ai/guide/star-against-the-dark/
Google Play: play.google.com/stor…s.staragainstthedark
Warship Workshop (战舰工坊):
Browser: antgames.ai/play/warship-workshop/
Google Play: play.google.com/stor…ames.warshipworkshop
Also: Apogee Keep (星轨要塞) & Scarecrow Smasher (流星锤打稻草人) at https://antgames.a
Log in to post a comment.
// Bridge Stress Test — Warren Truss & Arch Blueprint (Ant Games)
// https://antgames.ai/play/bridge-stress-test/
Canvas.setpenopacity(1);
const t = new Turtle();
function line(x1, y1, x2, y2) { t.jump(x1, y1); t.goto(x2, y2); }
const span = 160, bays = 8, dx = span / bays, yDeck = 12, yTop = -24;
// Deck & top chord
line(-span / 2, yDeck, span / 2, yDeck);
line(-span / 2, yDeck + 3, span / 2, yDeck + 3);
line(-span / 2 + dx * 0.5, yTop, span / 2 - dx * 0.5, yTop);
// Warren truss diagonals + verticals
for (let i = 0; i < bays; i++) {
const x0 = -span / 2 + i * dx;
const x1 = x0 + dx;
const xm = x0 + dx * 0.5;
line(x0, yDeck, xm, yTop);
line(xm, yTop, x1, yDeck);
line(xm, yTop, xm, yDeck);
if (i > 0) line(x0, yDeck, x0, yDeck + 3);
}
// Parabolic lower arch ribs
const segs = 32;
for (let s = 0; s < segs; s++) {
const u0 = -1 + 2 * (s / segs), u1 = -1 + 2 * ((s + 1) / segs);
const x0 = u0 * (span / 2 - 12), x1 = u1 * (span / 2 - 12);
const y0 = yDeck + 4 + 34 * (u0 * u0), y1 = yDeck + 4 + 34 * (u1 * u1);
line(x0, y0, x1, y1);
if (s % 4 === 0 && s > 0) line(x0, yDeck + 3, x0, y0);
}
// Stone abutment piers
for (const side of [-1, 1]) {
const px = side * (span / 2 - 8);
line(px - 8, yDeck + 3, px - 8, 62);
line(px + 8, yDeck + 3, px + 8, 62);
for (let y = yDeck + 11; y <= 62; y += 8) line(px - 8, y, px + 8, y);
}
// Suspension towers & cables
for (const side of [-1, 1]) {
const tx = side * (span / 4);
line(tx, yTop - 28, tx, yDeck);
line(tx - 2, yTop - 28, tx + 2, yTop - 28);
for (let k = 1; k <= 4; k++) {
line(tx, yTop - 26 + k * 2, tx - side * k * 9, yDeck);
line(tx, yTop - 26 + k * 2, tx + side * k * 9, yDeck);
}
}
function walk() { return false; }