Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

5.9 KB
Raw Blame
<!doctype html><html lang="en"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Lumen · Godot Studio</title><link rel="icon" href="data:,">
<style>
*{box-sizing:border-box}body{margin:0;background:#09171d;color:#e0ebdf;font-family:Arial,Helvetica,sans-serif}header,main,footer{max-width:1440px;margin:auto;padding:26px 42px}header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #29403f}.brand{font-family:Georgia,serif;font-size:30px;letter-spacing:-1px}.eyebrow,small{font:10px monospace;letter-spacing:2px;color:#90ada6}.brand span{color:#d9c497;font-size:14px;margin-right:12px}.live{color:#bcf2ce;font:10px monospace;letter-spacing:1px}.intro{display:flex;align-items:end;justify-content:space-between;margin:18px 0 24px;gap:20px}h1{font:normal 45px Georgia,serif;letter-spacing:-1.3px;margin:9px 0}p{color:#90ada6;font-size:13px;line-height:1.7;margin:0}.score{text-align:right;font:30px Georgia,serif;white-space:nowrap}.score small{display:block;margin-top:8px}.arena{position:relative;border:1px solid #315048;border-radius:14px;overflow:hidden;background:#071218}canvas{width:100%;aspect-ratio:12/7;height:auto;display:block;outline:none;touch-action:none}canvas:focus-visible{outline:2px solid #bcf2ce;outline-offset:-3px}#loading{position:absolute;inset:0;display:grid;place-content:center;gap:15px;text-align:center;background:#071218;font:18px Georgia,serif}#loading[hidden]{display:none}progress{accent-color:#bcf2ce;width:220px;height:3px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:20px}.buttons{display:flex;gap:8px}button{background:#203a35;border:1px solid #456052;color:#dceaca;font-size:12px;padding:11px 17px;border-radius:7px;cursor:pointer}button:hover{background:#304b40}button:disabled{opacity:.45;cursor:wait}button:focus-visible{outline:2px solid #bcf2ce;outline-offset:2px}kbd{display:inline-block;border:1px solid #38534c;border-radius:4px;padding:3px 5px;font:10px monospace;color:#c1d9ca}.help{max-width:740px}footer{display:flex;justify-content:space-between;padding-top:8px;padding-bottom:30px;font:10px monospace;color:#6e948b}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:650px){header,main,footer{padding:20px}header{padding-block:17px}h1{font-size:34px}.intro{align-items:start}.score{font-size:24px;margin-top:25px}.toolbar{align-items:start;flex-direction:column}.eyebrow{font-size:8px}.live{font-size:8px}.help{font-size:12px}footer{gap:20px;font-size:9px}.intro p{max-width:200px}}
@media(min-width:900px) and (min-height:700px){.arena{max-width:calc((100dvh - 380px)*12/7);margin-inline:auto}.toolbar{max-width:calc((100dvh - 380px)*12/7);margin-inline:auto}}
</style>
<header><div class="brand"><span>✳</span>Lumen</div><div class="live">GODOT STUDIO / PLAYABLE PROJECT</div></header>
<main><div class="intro"><div><div class="eyebrow">A SMALL GAME ABOUT FINDING YOUR WAY</div><h1>Wake the light garden.</h1><p>Six sleeping blooms. One wandering spark. You.</p></div><div class="score"><span id="collected">0</span> <span style="color:#54776b">/ 06</span><small>BLOOMS AWAKE</small></div></div>
<div class="arena"><canvas id="canvas" width="1200" height="700" tabindex="0" aria-label="Light garden game. Move with arrows or WASD, click or tap a destination, Space to dash."></canvas><div id="loading"><span id="load-label">Preparing your little world…</span><progress id="progress"></progress></div></div>
<div class="toolbar"><p class="help">Click or tap a destination · <kbd>W A S D</kbd> / arrows to move · <kbd>SPACE</kbd> to dash<br><span id="story" role="status">Gather all six blooms to wake the garden.</span></p><div class="buttons"><button id="dash" disabled>Dash ↗</button><button id="pause" disabled aria-pressed="false">Pause</button><button id="restart" disabled>Restart ↺</button></div></div>
<output id="game-state" class="sr" aria-live="off" data-ready="false"></output></main><footer><span>ORIGINAL GDSCRIPT · NO EXTERNAL ASSETS</span><span id="time">00.0 SECONDS</span></footer>
<script>
window.lumen={command:null,update(state){const $=id=>document.getElementById(id);window.lumen.state=state;$('game-state').dataset.ready='true';for(const [key,value]of Object.entries(state))$('game-state').dataset[key]=String(value);$('collected').textContent=state.collected;$('story').textContent=state.won?'The garden is awake. A small world, made brighter.':state.paused?'Paused. Take your time.':'Gather all six blooms to wake the garden.';$('pause').textContent=state.paused?'Resume':'Pause';$('pause').setAttribute('aria-pressed',String(state.paused));$('time').textContent=Number(state.seconds).toFixed(1)+' SECONDS';$('dash').textContent=state.cooldown>0?'Recharging…':'Dash ↗';$('dash').disabled=state.cooldown>0||state.won||state.paused;$('pause').disabled=state.won;$('restart').disabled=false;}};
for(const id of ['dash','pause','restart'])document.getElementById(id).onclick=()=>{if(window.lumen.command)window.lumen.command(id);document.getElementById('canvas').focus();};
</script><script src="$GODOT_URL"></script><script>
const engine=new Engine($GODOT_CONFIG);const progress=document.getElementById('progress');
engine.startGame({canvas:document.getElementById('canvas'),canvasResizePolicy:0,persistentPaths:[],onProgress(current,total){if(total){progress.max=total;progress.value=current;}},onPrintError(message){
  // Godot 4.4 probes service workers even when PWA export is disabled. An opaque
  // sandbox intentionally forbids that optional feature; keep every game error fatal.
  if(message==='Failed to assign PWA callback' && globalThis.origin==='null')console.warn('Offline installation is unavailable in the isolated preview.');
  else console.error(message);
}}).then(()=>{document.getElementById('loading').hidden=true;}).catch(error=>{document.getElementById('load-label').textContent='Could not start: '+error.message;progress.hidden=true;console.error(error);});
</script></html>