wip(mobile): checkpoint engine and experience round three in progress

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VVYRAqiQj9Y1V9ZfG1RcDH
This commit is contained in:
Claude committed 2026-10-23 07:29:27 +00:00
1 parent a6f98ce3c1
commit a720b10913
83 files changed
+50005 -416

No files matched your search

+25
View File
@@ -59,3 +59,28 @@ if (params.get('labels') !== '0') {
globe.on('camera', drawLabels);
setInterval(drawLabels, 1000);
}
// ?moment=empire-state&speed=30 plays a Moment on load; its events print in the HUD.
const momentLines = [];
globe.on('moment', (e) => {
if (!showHud) return;
const it = e.item || {};
const line =
e.type === 'chat'
? `💬 ${it.handle}: ${it.text}`
: e.type === 'post'
? `▤ ${it.kind} · ${it.handle}: ${it.text}`
: e.type === 'capture'
? `◉ ${it.firstEyes ? 'FIRST EYES ' : ''}@${it.handle} · ${it.title}`
: e.type === 'beat'
? `● ${it.title}`
: `[${e.type}]`;
momentLines.push(line);
while (momentLines.length > 8) momentLines.shift();
hud.textContent = momentLines.join('\n');
});
if (params.get('moment'))
globe.playMoment(params.get('moment'), {
speed: Number(params.get('speed')) || undefined,
autoplay: params.get('autoplay') !== '0',
});