Three.js game · Portrait mobile
LAVA BRIDGE DASH:
A THREE.JS 3D ONE-TOUCH LAVA BRIDGE GAME
Lava Bridge Dash is a free Three.js 3D one-touch browser game. Hold to stretch a glowing energy plank over a lava canyon, drop it on the next basalt pillar and land on the gold stripe for PERFECT combos. WebGL, no download.
· Game overview · Hosted by Indie Forge Studio
Phones: press and hold to stretch the plank, let go to drop it · Desktop: hold the mouse button or Space · P pause · M mute
What Is Lava Bridge Dash?
Lava Bridge Dash is a free portrait 3D one-touch arcade game for phones and desktop. A little explorer with spiky hair and a glowing backpack stands on a dark basalt pillar high above a river of lava, deep inside a jagged low-poly canyon under a purple and orange sunset. There is no bridge to the next pillar, so you build one: hold to stretch a glowing cyan energy plank, then let go to drop it across the gap.
Judge it right and the explorer dashes across. Too short or too long and they fall into the lava. Land the end of the plank on the next pillar's gold center stripe for a PERFECT, and PERFECTs in a row build a combo that adds bonus points and gems. The further you get, the narrower the pillars and the wider the gaps.
How to Play Lava Bridge Dash
- Hold: press and hold anywhere on the screen. The energy plank grows straight up from the edge of your pillar.
- Release: let go and the plank tips forward across the gap. The explorer runs along it.
- Too short or too long: if the plank misses the next pillar or runs past its far edge, the explorer falls into the lava and the run ends.
- PERFECT: land the plank end on the gold center stripe. Each PERFECT in a row raises the combo (x2, x3...) and adds the combo number as bonus points plus a gem.
- Desktop: hold the left mouse button or Space instead. P or Esc pauses, M mutes.
How Lava Bridge Dash Is Built with Three.js
Lava Bridge Dash is a single self-contained ES module on a self-hosted Three.js build. There are no model files: the explorer is built from boxes, cones and an icosahedron head, the pillars and canyon cliffs are jittered low-poly cylinders, and the lava is one canvas texture. The plank is a box whose height is the plank length, pivoting from the front edge of the pillar.
Difficulty comes from one small function. Each new pillar gets a radius and a gap from how many pillars you have crossed, so the game starts wide and friendly and tightens up over about thirty pillars:
Built for Mobile and Portrait Play
Lava Bridge Dash is made for one thumb on a phone held upright, and it runs in a centered 9:16 portrait frame on every screen. The HUD keeps the top clear: a big score in the middle, a cyan PERFECT combo pill under it that only appears while you have a combo, and a gem counter at the top right. A HOLD TO BUILD hint sits at the bottom, with round pause and mute buttons in the corner. The pause menu has Resume and Main Menu, and the How to Play panel pauses the game while it is open. Your best score and gem total are saved on your device.
Code from Lava Bridge Dash
Each new pillar is placed from the current one. Its radius shrinks and its gap grows with the number of pillars crossed, with a little randomness so no two runs are the same:
function genNext() {
const c = P(S.cur), n = S.crossed, k = Math.min(1, n / 28);
const r = Math.max(0.3, (1.0 - k * 0.62) * (0.85 + Math.random() * 0.3));
const gap = 1.2 + Math.random() * (1.1 + k * 2.4) + k * 0.6;
S.next = S.cur + 1; placePillar(P(S.next), c.z - c.r - gap - r, r);
}
From games/lava-bridge-dash/game.js
When the plank finishes tipping, one check decides everything. The plank end has to land between the near and far edge of the next pillar, and a PERFECT is the narrow gold zone around its center:
function landPlank() {
const pk = plank(), n = P(S.next), end = S.pivot - pk.len;
S.success = end <= n.z + n.r && end >= n.z - n.r;
S.perfect = S.success && Math.abs(end - n.z) <= n.ph;
noise(0.12, 0.08, 900); beep(S.success ? 160 : 110, 0.12, 'sine', 0.09);
burst(0, 0.1, end, 0x6af0ff, 8, 0.5);
S.walkTo = S.success ? standZ(n) : end - 0.05;
if (S.perfect) {
S.combo++; S.perfects++; S.topCombo = Math.max(S.topCombo, S.combo); S.gems++;
try { if (S.mode === 'play') localStorage.setItem(GEM_KEY, String(S.gems)); } catch (e) {}
showBanner('PERFECT!', 1, 'COMBO X' + S.combo); burst(0, 0.15, n.z, GOLD, 18, 0.9);
beep(880, 0.1, 'triangle', 0.06); setTimeout(() => beep(1320, 0.14, 'triangle', 0.06), 90);
floatText('+' + (1 + S.combo), 0, 0.5, n.z, '#ffd24a');
$('perfectPill').classList.remove('bump'); void $('perfectPill').offsetWidth; $('perfectPill').classList.add('bump');
} else if (S.success) { S.combo = 0; floatText('+1', 0, 0.5, n.z, '#8ff4ff'); }
S.phase = 'walk';
if (S.showcase && S.success) { S.showcase = false; S.hold = 1e9; }
}
From games/lava-bridge-dash/game.js
The basalt pillars and canyon cliffs all come from one helper. It jitters every vertex by a hash of its position, so vertices on the cylinder seam move together and the faceted rock stays closed:
function rockGeo(sides, rTop, rBot, h, jit, segs = 4) {
const g = new THREE.CylinderGeometry(rTop, rBot, h, sides, segs, false); g.translate(0, -h / 2, 0);
const p = g.attributes.position;
for (let i = 0; i < p.count; i++) {
const x = p.getX(i), y = p.getY(i), z = p.getZ(i);
if (Math.abs(x) < 1e-4 && Math.abs(z) < 1e-4) continue;
const k = y > -0.01 ? jit * 0.3 : jit, n = hash(Math.round(x * 50), Math.round(y * 50), Math.round(z * 50));
p.setX(i, x * (1 + (n - 0.5) * k)); p.setZ(i, z * (1 + (hash(n, 3, 7) - 0.5) * k));
}
g.computeVertexNormals(); return g;
}
From games/lava-bridge-dash/game.js
The lava is a tileable cracked-crust texture drawn once on a canvas. Each pixel finds its two nearest random points with wrap-around distance, and the gap between the two distances draws the glowing yellow cracks between darker crust plates:
function lavaTexture() {
const N = 256, c = document.createElement('canvas'); c.width = c.height = N; const g = c.getContext('2d');
const img = g.createImageData(N, N), d = img.data, pts = Array.from({ length: 34 }, () => [Math.random() * N, Math.random() * N]);
for (let y = 0; y < N; y++) for (let x = 0; x < N; x++) {
let d1 = 1e9, d2 = 1e9;
for (const [px, py] of pts) {
let dx = Math.abs(x - px), dy = Math.abs(y - py); if (dx > N / 2) dx = N - dx; if (dy > N / 2) dy = N - dy;
const dd = Math.sqrt(dx * dx + dy * dy); if (dd < d1) { d2 = d1; d1 = dd; } else if (dd < d2) d2 = dd;
}
const e = d2 - d1, i = (y * N + x) * 4;
let r, gg, b;
if (e < 2.2) { r = 255; gg = 230; b = 120; }
else if (e < 6) { const t = (e - 2.2) / 3.8; r = 255; gg = 200 - t * 80; b = 60 - t * 40; }
else { const t = Math.min(1, (e - 6) / 16); r = 250 - t * 120; gg = 110 - t * 80; b = 20 + t * 4; }
d[i] = r; d[i + 1] = gg; d[i + 2] = b; d[i + 3] = 255;
}
g.putImageData(img, 0, 0);
const t = new THREE.CanvasTexture(c); t.colorSpace = THREE.SRGBColorSpace; t.wrapS = t.wrapT = THREE.RepeatWrapping; t.repeat.set(10, 20); t.anisotropy = 4; return t;
}
From games/lava-bridge-dash/game.js
Play Lava Bridge Dash
Free, in your browser, no download. Hosted by Indie Forge Studio.
More games: Browse all 3D games
Frequently Asked Questions
How do I play Lava Bridge Dash?
Open https://indieforgestudio.com/games/lava-bridge-dash/ and press Tap to Play. Press and hold to stretch a glowing energy plank, then let go to drop it across the lava gap to the next basalt pillar. If it is too short or too long you fall into the lava. On desktop, hold the mouse button or Space.
Is Lava Bridge Dash free and does it need a download?
Yes. Lava Bridge Dash is free and runs instantly in your web browser on phones, tablets and desktop. There is nothing to download or install.
What technology is Lava Bridge Dash built with?
Lava Bridge Dash is a 3D browser game built with Three.js on WebGL by Indie Forge Studio, using plain JavaScript and HTML5 with no plugins. The explorer, basalt pillars, energy plank, lava river and canyon cliffs are all built from Three.js shapes and canvas textures, with no model files.
Does Lava Bridge Dash work on mobile?
Yes. Lava Bridge Dash is designed portrait-first for phones with one-touch hold-and-release controls, and it also plays in a centered portrait frame on desktop with the mouse or keyboard.
How do I score a PERFECT in Lava Bridge Dash?
Release the plank so its end lands on the gold center stripe of the next pillar. Each PERFECT in a row raises your combo, adds the combo number as bonus points and earns a gem. A landing off the stripe resets the combo.