Detects mobile via UA + 768 px media query (IS_MOBILE constant) and flips three knobs: - Renderer: antialias off, pixelRatio capped at 1.5 (vs 2 on desktop) - Parcels: spawn every 2.4 s (vs 1.4 s on desktop) to keep clone+ draw cost down Adds touch handlers so users without a mouse can speed the plane up: - touchstart bumps `touchBoost` from 1 to 6 → BASE_SPEED is multiplied by 6 each tick while a finger is on the screen - touchmove also feeds Math.hypot(dx, dy) * MOUSE_BOOST into targetProgress, so swiping advances the plane the same way mouse motion does on desktop - touchend / touchcancel reset touchBoost to 1 and clear last-touch coordinates Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| form-handler.js | ||
| intro-scene.js | ||
| main.js | ||
| translations.js | ||