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.

6.3 KB
Raw Blame
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Tidelands — World Studio</title><!-- FAVICON --><style>/* STUDIO_CSS */</style></head><body>
<header><div class="identity"><span class="mark"><!-- WORLD_ICON --></span><span>TIDELANDS<small>WORLD STUDIO</small></span></div><div class="project-heading"><strong id="world-title"></strong><span id="save-state">Opening world</span></div><nav><button id="open-project">Open</button><button id="save-project">Save project</button><button id="save-source" class="primary" hidden>Save to workspace</button><button id="deliver" class="primary">Export kit ↗</button></nav></header>
<div id="source-notice" class="notice" hidden><span></span><button id="source-load">Use source version</button><button id="draft-keep">Download my draft</button></div>
<main><aside class="objects-panel"><div class="panel-title">SCENE <span id="object-count"></span></div><div class="search"><input id="object-search" placeholder="Find an object" aria-label="Find an object"></div><div id="object-list"></div><button id="new-object" class="wide">+ New voxel object</button><button id="import-vox" class="wide">↗ Import .vox asset</button><div class="brief"><div class="eyebrow">THE BRIEF</div><p id="brief-text"></p><button id="edit-project">Project &amp; scale</button></div></aside>
<section class="stage"><div id="viewport" tabindex="0" aria-label="Interactive 3D world"></div><div class="modebar"><div class="segmented"><button id="edit-mode" class="active">Build</button><button id="walk-mode">Walk the world</button></div><button id="frame-world" title="Frame the whole world">↗ Frame all</button><button id="snapshot">Save view</button></div><div class="tools" id="edit-tools"><button data-tool="select" class="active" title="Select and move an object">↖ Select</button><button data-tool="add">+ Build</button><button data-tool="erase">− Erase</button><button data-tool="paint">◈ Paint</button><span></span><button id="undo" title="Undo (Command/Ctrl Z)">↶</button><button id="redo" title="Redo (Command/Ctrl Shift Z)">↷</button></div><div id="crosshair" hidden>+</div><div id="walk-overlay" hidden><button id="enter-walk" class="primary">Enter world</button><p>WASD to walk · drag to look · Space to jump · Esc to release</p><div id="tour-stops"></div></div><div id="touch-walk" hidden><button data-move="forward" aria-label="Walk forward">↑</button><div><button data-move="left" aria-label="Walk left">←</button><button data-move="back" aria-label="Walk backward">↓</button><button data-move="right" aria-label="Walk right">→</button><button data-move="jump" aria-label="Jump">↟</button></div></div><div class="scene-caption"><span id="scene-measures"></span><span id="interaction-hint">Drag to orbit · scroll to zoom · click an object</span></div></section>
<aside class="inspector"><div class="panel-title">OBJECT <button id="focus-object">Focus ↗</button></div><div id="object-editor"></div><section class="materials"><div class="panel-title">MATERIALS <button id="new-material">+</button></div><div id="palette"></div><div id="material-editor"></div><label>Brush radius <select id="brush-radius"><option value="0">One voxel</option><option value="1">3 × 3 × 3</option><option value="2">5 × 5 × 5</option></select></label></section><section class="lighting"><div class="panel-title">LIGHT</div><label>Time of day<input id="light" type="range" min="0" max="1" step=".01"></label><label class="check"><input id="cycle-light" type="checkbox"> Let daylight move</label></section></aside></main>
<footer><span id="status" role="status">Ready to shape your world</span><button id="check-routes">Check walking routes</button></footer>
<dialog id="project-dialog"><form method="dialog"><h2>Project &amp; scale</h2><label>Title<input id="project-title" required maxlength="120"></label><label>Your brief<textarea id="project-brief" rows="5" maxlength="12000"></textarea></label><label>Size in voxels<div class="xyz"><input id="size-x" type="number" min="4" max="128" aria-label="World width"><input id="size-y" type="number" min="4" max="128" aria-label="World height"><input id="size-z" type="number" min="4" max="128" aria-label="World depth"></div></label><label>Meters per voxel<input id="project-unit" type="number" min=".01" max="10" step=".01"></label><label>Notes<textarea id="project-notes" rows="3"></textarea></label><p>Changing scale changes the real size of the scene and visitor clearance.</p><div class="dialog-actions"><button value="cancel">Cancel</button><button id="apply-project" type="button" class="primary">Apply</button></div></form></dialog>
<dialog id="export-dialog"><h2>Take your world with you</h2><p id="export-summary"></p><div class="export-options"><button id="export-glb"><strong>3D world · GLB</strong><span>Named meshes and materials, in meters</span></button><button id="export-vox"><strong>Voxel world · VOX</strong><span>Flattened geometry and color palette</span></button><button id="export-walk"><strong>Walkthrough · HTML</strong><span>One offline file to share and explore</span></button><button id="export-kit" class="primary"><strong>Complete editable kit · ZIP</strong><span>3D files, project, studio and walkthrough</span></button></div><p class="fine">GLB keeps visible geometry and materials. VOX merges the scene into one voxel model. Keep the project JSON to retain object structure and project settings.</p><button id="close-export">Close</button></dialog>
<dialog id="open-dialog"><h2>Open a world</h2><p>Open a saved Tidelands project as a draft. Save it to this workspace when you are ready.</p><button id="choose-project">Choose project file…</button><section id="native-open"><label>Or paste the path to a project in your home folder<input id="project-path" placeholder="~/Downloads/my-world.tidelands.json"></label><button id="open-path">Open this project</button><div class="panel-title" style="margin-top:24px">RECENT PROJECTS</div><div id="recent-projects"></div></section><div class="dialog-actions"><button id="close-open">Close</button></div></dialog>
<input id="project-file" type="file" accept=".json,.tidelands.json" hidden><input id="vox-file" type="file" accept=".vox" hidden>
<script id="world-data" type="application/json">WORLD_DATA</script><script>/* WORLD_APP */</script></body></html>