diff --git a/public/auth.js b/public/auth.js index 9360b0c..ca16ff9 100644 --- a/public/auth.js +++ b/public/auth.js @@ -197,341 +197,137 @@ const Auth = (() => { })(); // ============================================================================ -// LAUNCHER: THE DASHBOARD AFTER LOGIN (EAGLERCRAFT / DECENTRALAND STYLE) +// LAUNCHER: A LOADING SCREEN AFTER LOGIN (LEGO.COM STYLE) // ============================================================================ -// After signing in, the dev lands on a launcher instead of straight in the -// world: a top bar (logo, Home / Play / Servers / Worlds / Resource Packs / -// News, the username and the MVC balance), a grid of entry points on the left -// (Genesis Plaza, Gamer District, Underground Cafe, Private Lobby) and the big -// launch panel on the right. "LAUNCH GAME" or a card's play button enters the -// world at that spot. The daily bonus (+50 MVC every 20 hours) can be claimed -// here. Card covers come from the place screenshots in assets/places.jpg. -// The Home tab lists the versions of the game, from the first walkable -// universe to the current one: an older version plays its own build, loaded -// from the repository history (see the ?v= loader in index.html). +// After signing in, the dev goes straight in: a heavily blurred picture of the +// worlds fills the screen, a thin progress line runs across the middle and the +// cursor avatar rolls along it, leaving a green trail, with the percentage +// below. It follows the real loading and then the world fades in. +// Launcher.open(session, ready) resolves with { session, entry }. const Launcher = (() => { - const ATLAS = { columns: 8, rows: 8, extra: { underground: 46 } }; - // Versions: commit = the build to load (null = this one); tile = its screenshot in the atlas - const VERSIONS = [ - { key: 'v10', version: 'v10', commit: null, tile: 57, date: 'Nov 2, 2026', title: 'Squid Game World & Launcher', text: 'Squid Game Epic Edition becomes its own world on a bare concrete island, resources to gather (E or G, hold G to pull them in, /bag), working Mac demos in the House of MAC and this launcher with the daily bonus.' }, - { key: 'v9', version: 'v9', commit: 'fc82b3e', tile: 56, date: 'Oct 24, 2026', title: 'Realistic Surfaces & Scene Builder', text: 'Detailed stone, brick, wood, glass and water with relief, grass back across Genesis City, JUMP IN cards with real screenshots and Decentraland-style scenes built in game with B.' }, - { key: 'v8', version: 'v8', commit: '1a0289d', tile: 55, date: 'Oct 20, 2026', title: 'Night Soundtrack & House of MAC', text: 'A night coding playlist, the Developers Daily Life museum, the underground lounge lit by the pool, firelight at the firepits, a colored Codify editor and the House of MAC billboards and reel.' }, - { key: 'v7', version: 'v7', commit: '73e0b86', tile: 54, date: 'Oct 17, 2026', title: 'Lounge, Forests & Leafy Trees', text: 'Bigger districts, the beach on the West Sea shore, the underground lounge and Gig Plaza, the forest chalet hotel, silent session resume and realistic leafy trees.' }, - { key: 'v6', version: 'v6', commit: '895ce5a', tile: 53, date: 'Oct 16, 2026', title: 'MVC Token, Live Events & Glass Cube', text: 'Seas and islands around the city, new districts, the MVC token on testnet, live community events and The Glass Cube with the Underground Tech Hub.' }, - { key: 'v5', version: 'v5', commit: '7666562', tile: 52, date: 'Oct 14, 2026', title: 'Code Chests & Land Parcels', text: 'Chests drop real code files, cursor wearables, the Underground Cafe menu, the museum timeline and a Decentraland-style city of land parcels.' }, - { key: 'v4', version: 'v4', commit: '95e8bec', tile: 51, date: 'Oct 12, 2026', title: 'Codify & Fry your Code', text: 'Write code right in the world with Codify, fry your bugs at the firepit, sleep in hotels, earn MVC and enjoy a cleaner HUD.' }, - { key: 'v3', version: 'v3', commit: 'd2fe76c', tile: 50, date: 'Oct 12, 2026', title: 'Underground, Metro & Tower of Icons', text: 'An organic Genesis City, the underground plaza below the pool, the Multiverse Metro to every district and the Tower of Icons.' }, - { key: 'v2', version: 'v2', commit: 'f1ba4a4', tile: 49, date: 'Oct 11, 2026', title: 'Genesis Plaza & Real Logos', text: 'Accounts and a welcome screen, dev loot chests, the Genesis City spawn, separate Worlds, real brand logos and HQs you can walk into.' }, - { key: 'v1', version: 'v1', commit: '013e991', tile: 48, date: 'Oct 11, 2026', title: 'The First Walkable Universe', text: 'Where it all began: GitVerse turns into a walkable Decentraland-style universe with Genesis Plaza, districts, chat commands and multiplayer cursors.' } - ]; - const ENTRIES = [ - { key: 'plaza', title: 'Genesis Plaza', version: '26.3', popular: 4, date: 4, text: 'The heart of the Multiverse: Welcome Hall, Theatre, Events Wall, the firepit and the pool down to the Underground.' }, - { key: 'gamer', title: 'Gamer District', version: '26.2', popular: 3, date: 3, text: 'The Gravity Flip tower, arcades, a LAN party and the mini-game arena.' }, - { key: 'underground', title: 'Underground Cafe', version: '26.1', popular: 2, date: 2, text: 'Start below Genesis Plaza: the lounge, the cafe menu and the Hall of Internet & Software History.' }, - { key: 'private', title: 'Private Lobby', version: 'Invite only', tile: 'lobby', popular: 1, date: 1, text: 'A new instance only the devs you invite can see. Share the link from the top bar once inside.' } - ]; - const NEWS = [ - ['Squid Game Epic Edition', 'A new world: Red Build Green Build, the Glass Bridge of Code Review and more. Nobody gets hurt, builds just fail.'], - ['Build your own scene', 'Buy a parcel and press B: Decentraland-style Builder with per-parcel limits, publish for everyone.'], - ['Gather resources', 'Code Crystals, Coffee Beans, RAM and Git Gems around Genesis City: E or G to pick up, hold G to gather.'], - ['House of MAC demo Macs', 'Try a working macOS-style desktop on the Avenue tables: Finder, Terminal, Notes, Calculator.'], - ['Realistic surfaces', 'Stone, brick, wood, glass and water got detailed textures with relief.'] - ]; - let worlds = []; - let state = null; - - const esc = (text) => String(text).replace(/[&<>"]/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c])); - function tileStyle(key) { - const index = typeof key === 'number' ? key : key in ATLAS.extra ? ATLAS.extra[key] : worlds.findIndex((world) => world.key === key); - const world = worlds[index]; - if (index < 0 || (typeof key !== 'number' && world && !world.photo && !(key in ATLAS.extra))) return world && world.cardImage ? `background-image:url(${world.cardImage});background-size:cover;background-position:center` : 'background:linear-gradient(135deg,#1f6feb,#8957e5)'; - const col = index % ATLAS.columns; - const row = Math.floor(index / ATLAS.columns); - return `background-image:url(assets/places.jpg);background-size:${ATLAS.columns * 100}% ${ATLAS.rows * 100}%;background-position:${(col / (ATLAS.columns - 1)) * 100}% ${(row / (ATLAS.rows - 1)) * 100}%`; - } - + const CURSOR_SVG = ``; function css() { if (document.getElementById('launcher-style')) return; - const font = document.createElement('link'); - font.rel = 'stylesheet'; - font.href = 'https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;600;700&display=swap'; - document.head.appendChild(font); const style = document.createElement('style'); style.id = 'launcher-style'; style.textContent = ` - #launcher { position: fixed; inset: 0; z-index: 80; overflow: auto; color: #e9ecef; font: 14px Inter, "Segoe UI", Arial, sans-serif; - background: radial-gradient(1200px 500px at 15% -10%, rgba(46, 160, 67, 0.28), transparent 60%), radial-gradient(900px 500px at 100% 0%, rgba(31, 111, 235, 0.22), transparent 60%), linear-gradient(180deg, #0f1115 0%, #15181f 100%); } - #launcher .ln-top { position: sticky; top: 0; z-index: 2; margin: 14px auto 0; width: min(1180px, calc(100% - 28px)); display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-radius: 18px; background: rgba(24, 26, 32, 0.86); border: 1px solid rgba(255,255,255,0.07); backdrop-filter: blur(10px); box-sizing: border-box; flex-wrap: wrap; } - #launcher .ln-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; } - #launcher .ln-logo img { height: 28px; } - #launcher nav { display: flex; gap: 4px; flex-wrap: wrap; } - #launcher nav button { background: none; border: 0; color: #adb5bd; font: 600 13px Inter, sans-serif; padding: 7px 10px; border-radius: 10px; cursor: pointer; } - #launcher nav button:hover { color: #fff; } - #launcher nav button.on { background: rgba(255,255,255,0.1); color: #fff; } - #launcher .ln-right { margin-left: auto; display: flex; align-items: center; gap: 10px; } - #launcher .ln-user { color: #ced4da; font-weight: 600; } - #launcher .ln-coins { font: 10px "Press Start 2P", monospace; padding: 9px 12px; border-radius: 12px; background: #f59f00; color: #1b1300; box-shadow: 0 0 18px rgba(245,159,0,0.35); white-space: nowrap; } - #launcher .ln-daily { font: 8px/1.4 "Press Start 2P", monospace; padding: 9px 12px; border-radius: 12px; border: 0; cursor: pointer; background: #2ea043; color: #fff; } - #launcher .ln-daily[disabled] { background: #2b3138; color: #8b949e; cursor: default; } - #launcher .ln-main { width: min(1180px, calc(100% - 28px)); margin: 26px auto 40px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; } - @media (max-width: 900px) { #launcher .ln-main { grid-template-columns: 1fr; } } - #launcher .ln-tools { display: flex; gap: 10px; margin-bottom: 16px; } - #launcher .ln-search { flex: 1; max-width: 280px; padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); background: #1e2229; color: #fff; font: inherit; } - #launcher .ln-sort { padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); background: #1e2229; color: #fff; font: inherit; } - #launcher .ln-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; } - #launcher .ln-card { cursor: pointer; } - #launcher .ln-cover { aspect-ratio: 3 / 4; border-radius: 18px; border: 3px solid transparent; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.35); transition: transform 0.15s; } - #launcher .ln-card:hover .ln-cover { transform: translateY(-3px); } - #launcher .ln-card.on .ln-cover { border-color: #3fb950; box-shadow: 0 0 0 2px rgba(63,185,80,0.25), 0 10px 30px rgba(0,0,0,0.35); } - #launcher .ln-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.65) 100%); } - #launcher .ln-cover b { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 1; font: 11px/1.5 "Press Start 2P", monospace; color: #fff; text-shadow: 0 2px 0 #000, 0 0 8px rgba(0,0,0,0.8); } - #launcher .ln-cover em { position: absolute; left: 12px; bottom: 10px; z-index: 1; font: 600 11px Inter, sans-serif; font-style: normal; color: #ced4da; } - #launcher .ln-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; } - #launcher .ln-card-foot span { font: 12px "Press Start 2P", monospace; color: #fff; } - #launcher .ln-play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #2ea043; color: #fff; font-size: 13px; cursor: pointer; box-shadow: 0 0 0 4px rgba(46,160,67,0.18); } - #launcher .ln-play:hover { background: #3fb950; } - #launcher .ln-panel { position: sticky; top: 96px; padding: 18px; border-radius: 22px; background: #1c1f26; border: 1px solid rgba(255,255,255,0.07); box-shadow: 0 20px 50px rgba(0,0,0,0.4); } - #launcher .ln-hero { aspect-ratio: 16 / 10; border-radius: 16px; } - #launcher .ln-title { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; } - #launcher .ln-title i { width: 44px; height: 44px; border-radius: 10px; background: #2ea043 url(assets/icon.png) center / 70% no-repeat; flex: none; } - #launcher .ln-title h2 { margin: 0; font: 15px/1.6 "Press Start 2P", monospace; letter-spacing: 0.02em; } - #launcher .ln-desc { color: #adb5bd; line-height: 1.55; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); } - #launcher .ln-launch-row { display: flex; gap: 10px; align-items: center; } - #launcher .ln-launch { flex: 1; padding: 15px; border-radius: 18px; border: 0; background: linear-gradient(180deg, #3fb950, #2ea043); color: #fff; font: 13px "Press Start 2P", monospace; cursor: pointer; box-shadow: 0 6px 0 #1a7f37, 0 10px 30px rgba(46,160,67,0.35); } - #launcher .ln-launch:active { transform: translateY(3px); box-shadow: 0 3px 0 #1a7f37; } - #launcher .ln-launch[disabled] { filter: grayscale(0.6); cursor: progress; } - #launcher .ln-gear { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); background: #262a32; color: #fff; font-size: 20px; cursor: pointer; } - #launcher .ln-settings { display: none; margin-top: 14px; padding: 12px; border-radius: 14px; background: #262a32; } - #launcher .ln-settings label { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; color: #ced4da; } - #launcher .ln-settings select { background: #1c1f26; color: #fff; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 5px 8px; } - #launcher .ln-entry { margin-top: 12px; font-size: 12px; color: #8b949e; } - #launcher .ln-list { display: grid; gap: 12px; } - #launcher .ln-row { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: #1c1f26; border: 1px solid rgba(255,255,255,0.06); } - #launcher .ln-row h3 { margin: 0 0 4px; font-size: 15px; } - #launcher .ln-row p { margin: 0; color: #adb5bd; } - #launcher .ln-dot { width: 10px; height: 10px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 8px #3fb950; flex: none; } - #launcher .ln-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 12px 18px; border-radius: 14px; background: #1c1f26; border: 1px solid rgba(255,255,255,0.12); display: none; z-index: 3; } + #launcher { position: fixed; inset: 0; z-index: 80; overflow: hidden; background: #1b1f27; transition: opacity 0.6s; } + #launcher.leaving { opacity: 0; } + #launcher .mv-panorama div { filter: blur(28px) saturate(1.25) brightness(0.8); } + #launcher .mv-panorama::after { background: rgba(18, 20, 26, 0.25); } + #launcher .ld-box { position: absolute; left: 50%; top: 44%; width: min(400px, 70vw); transform: translate(-50%, -50%); z-index: 1; } + #launcher .ld-line { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.45); } + #launcher .ld-trail { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, rgba(198, 255, 0, 0.2), #c6ff00); box-shadow: 0 0 10px rgba(198, 255, 0, 0.6); } + #launcher .ld-end { position: absolute; right: -1px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #3fb950; } + #launcher .ld-roller { position: absolute; top: 50%; left: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35)); } + #launcher .ld-roller svg { display: block; } + #launcher .ld-pct { margin-top: 30px; text-align: center; color: #fff; font: 800 17px Inter, "Segoe UI", Arial, sans-serif; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); } + #launcher .ld-place { margin-top: 6px; text-align: center; color: rgba(255, 255, 255, 0.75); font: 500 12px Inter, "Segoe UI", Arial, sans-serif; letter-spacing: 0.04em; } `; document.head.appendChild(style); } - function request(url, options = {}) { - const headers = { 'Content-Type': 'application/json', 'x-session-token': state.session.token }; - return fetch(url, { ...options, headers }).then(async (response) => ({ ok: response.ok, data: await response.json().catch(() => ({})) })); - } - - function toast(text) { - const box = state.root.querySelector('.ln-toast'); - box.textContent = text; - box.style.display = 'block'; - clearTimeout(state.toastTimer); - state.toastTimer = setTimeout(() => { box.style.display = 'none'; }, 3200); - } - - function renderWallet() { - const coins = state.root.querySelector('.ln-coins'); - const daily = state.root.querySelector('.ln-daily'); - coins.textContent = state.coins === null ? 'MVC · solo' : `${state.coins} MVC`; - if (!Auth.hasServer) { daily.disabled = true; daily.textContent = 'Daily bonus · online only'; return; } - const wait = Math.max(0, (state.nextDailyAt || 0) - Date.now()); - daily.disabled = wait > 0; - daily.textContent = wait > 0 ? `Next bonus in ${Math.ceil(wait / 3600000)} h` : 'Claim daily bonus (+50 MVC)'; - } - - function cardHtml(entry) { - return `
-
${esc(entry.title)}${entry.when ? `${esc(entry.when)}` : ''}
-
${esc(entry.version)}
`; - } - - function renderLeft() { - const left = state.root.querySelector('.ln-left'); - const tab = state.tab; - if (tab === 'home' || tab === 'play' || tab === 'worlds') { - const query = (state.query || '').toLowerCase(); - let list = tab === 'worlds' - ? worlds.filter((world) => world.world).map((world, i) => ({ key: world.key, title: world.name, version: 'World', popular: i, date: i, text: world.description })) - : tab === 'home' ? VERSIONS.map((entry, i) => ({ ...entry, when: entry.date, popular: VERSIONS.length - i, date: VERSIONS.length - i })) - : ENTRIES.concat(worlds.filter((world) => !world.world && world.key !== 'plaza' && world.photo).map((world, i) => ({ key: world.key, title: world.name, version: 'District', popular: 0, date: -i, text: world.description }))); - list = list.filter((entry) => !query || `${entry.title} ${entry.version} ${entry.text || ''}`.toLowerCase().includes(query)); - const sort = state.sort || 'popular'; - list.sort((a, b) => (sort === 'az' ? a.title.localeCompare(b.title) : sort === 'newest' ? b.date - a.date : b.popular - a.popular)); - left.innerHTML = `
-
-
${list.map(cardHtml).join('') || '

Nothing found.

'}
`; - const search = left.querySelector('.ln-search'); - search.addEventListener('input', () => { state.query = search.value; const caret = search.selectionStart; renderLeft(); const again = state.root.querySelector('.ln-search'); again.focus(); again.setSelectionRange(caret, caret); }); - left.querySelector('.ln-sort').addEventListener('change', (event) => { state.sort = event.target.value; renderLeft(); }); - state.visible = list; - left.querySelectorAll('.ln-card').forEach((card) => card.addEventListener('click', (event) => { - if (event.target.closest('.ln-play')) return; - select(card.dataset.key); - })); - left.querySelectorAll('[data-play]').forEach((button) => button.addEventListener('click', () => launch(button.dataset.play))); - } else if (tab === 'servers') { - left.innerHTML = `
-

Genesis · main server

${Auth.hasServer ? 'Online · multiplayer, chat, land and scenes' : 'Solo mode: no multiplayer server on this host'}

-

Private lobby

Your own instance: only devs with the invite link see you

`; - left.querySelectorAll('[data-play]').forEach((button) => button.addEventListener('click', () => launch(button.dataset.play))); - } else if (tab === 'packs') { - let quality = 'auto'; - let sound = true; - try { quality = localStorage.getItem('multiverse-quality') || 'auto'; sound = localStorage.getItem('multiverse-sound') !== 'off'; } catch (error) { /* storage blocked */ } - left.innerHTML = `
${[['minimum', 'Potato', 'Old computers: no shadows, short view distance'], ['low', 'Light', 'Laptops and integrated graphics'], ['medium', 'Default', 'Balanced look and speed'], ['high', 'Ultra', 'Big shadows and the longest view distance'], ['auto', 'Auto', 'The game picks and adapts while you play']].map(([value, name, text]) => `

${name} graphics pack

${text}

`).join('')} -

Sound pack

Mouse glide, firepits, birds and the night soundtrack

`; - left.querySelectorAll('[data-pack]').forEach((button) => button.addEventListener('click', () => { try { localStorage.setItem('multiverse-quality', button.dataset.pack); } catch (error) { /* storage blocked */ } renderLeft(); toast('Graphics pack applied when the world opens.'); })); - left.querySelector('[data-sound]').addEventListener('click', () => { try { localStorage.setItem('multiverse-sound', sound ? 'off' : 'on'); } catch (error) { /* storage blocked */ } renderLeft(); }); - } else if (tab === 'news') { - left.innerHTML = `
${NEWS.map(([title, text]) => `

${esc(title)}

${esc(text)}

`).join('')}
`; - } - } - - function select(key) { - state.selected = key; - const entry = VERSIONS.find((item) => item.key === key) || ENTRIES.find((item) => item.key === key) || (() => { const world = worlds.find((item) => item.key === key); return world && { key, title: world.name, text: world.description }; })() || ENTRIES[0]; - const version = entry.commit !== undefined ? entry : VERSIONS[0]; - state.root.querySelector('.ln-hero').setAttribute('style', tileStyle(entry.tile ?? entry.key)); - state.root.querySelector('.ln-title h2').textContent = `GITHUB MULTIVERSE ${version.version}`; - state.root.querySelector('.ln-desc').textContent = entry.commit !== undefined ? `${entry.title}. ${entry.text}` : entry.text || ''; - state.root.querySelector('.ln-entry').textContent = entry.commit ? `Classic version from ${entry.date}: plays that build as it was (solo world, progress kept apart)` : entry.commit === null ? `Latest version · ${entry.date}` : `Starting point: ${entry.title}`; - state.root.querySelectorAll('.ln-card').forEach((card) => card.classList.toggle('on', card.dataset.key === key)); - } - - function launch(key) { - let target = key || state.selected || 'plaza'; - const version = VERSIONS.find((item) => item.key === target); - if (version && version.commit) { - const here = new URLSearchParams(location.search); - const cdn = here.get('cdn') ? `&cdn=${encodeURIComponent(here.get('cdn'))}` : ''; - location.href = `/?v=${version.commit}&label=${version.version}${cdn}`; - return; - } - if (version) target = 'plaza'; - if (target === 'private' && !new URLSearchParams(location.search).get('lobby')) { - const id = Math.random().toString(36).slice(2, 8); - location.search = `?lobby=${id}`; - return; - } - const button = state.root.querySelector('.ln-launch'); - button.disabled = true; - button.textContent = 'LOADING WORLD...'; - Promise.resolve(state.ready).then(() => { - state.root.remove(); - state.resolve({ session: state.session, entry: target === 'private' ? 'plaza' : target }); - }); - } - - // Shows the launcher; resolves with { session, entry } when the dev launches + // Shows the loading screen; resolves with { session, entry } when the world is ready function open(session, ready) { css(); - return new Promise(async (resolve) => { - worlds = await fetch('maps/worlds.json').then((response) => response.json()).catch(() => []); + return new Promise((resolve) => { const root = document.createElement('div'); root.id = 'launcher'; - root.innerHTML = ` -
- -
${esc(session.username)}... MVC
-
-
-
`; + root.innerHTML = `
${CURSOR_SVG}
+
0%
Joining Genesis City
`; document.body.appendChild(root); - state = { root, session, ready, resolve, tab: 'home', selected: 'v10', coins: Auth.hasServer ? 0 : null, nextDailyAt: 0 }; - renderLeft(); - select('v10'); - renderWallet(); - root.querySelectorAll('nav button').forEach((button) => button.addEventListener('click', () => { - state.tab = button.dataset.tab; - root.querySelectorAll('nav button').forEach((other) => other.classList.toggle('on', other === button)); - renderLeft(); - if (['home', 'play', 'worlds'].includes(state.tab) && state.visible && state.visible.length) select(state.visible[0].key); - })); - root.querySelector('.ln-launch').addEventListener('click', () => launch()); - // Settings (gear): graphics quality, sound, sign out - const settings = root.querySelector('.ln-settings'); - root.querySelector('.ln-gear').addEventListener('click', () => { settings.style.display = settings.style.display === 'block' ? 'none' : 'block'; }); - const quality = root.querySelector('.ln-quality'); - const sound = root.querySelector('.ln-sound'); - try { quality.value = localStorage.getItem('multiverse-quality') || 'auto'; sound.checked = localStorage.getItem('multiverse-sound') !== 'off'; } catch (error) { /* storage blocked */ } - quality.addEventListener('change', () => { try { localStorage.setItem('multiverse-quality', quality.value); } catch (error) { /* storage blocked */ } }); - sound.addEventListener('change', () => { try { localStorage.setItem('multiverse-sound', sound.checked ? 'on' : 'off'); } catch (error) { /* storage blocked */ } }); - root.querySelector('.ln-signout').addEventListener('click', () => Auth.signOut()); - // Wallet and daily bonus - if (Auth.hasServer) { - request('/api/wallet').then(({ ok, data }) => { if (ok) { state.coins = data.coins; state.nextDailyAt = Date.now() + (data.nextDailyInMs || 0); renderWallet(); } }).catch(() => {}); - } - root.querySelector('.ln-daily').addEventListener('click', () => { - request('/api/daily', { method: 'POST' }).then(({ ok, data }) => { - if (typeof data.coins === 'number') state.coins = data.coins; - state.nextDailyAt = Date.now() + (data.nextDailyInMs || 0); - renderWallet(); - toast(ok ? `+${data.earned} MVC daily bonus claimed!` : data.error || 'Could not claim the bonus.'); - }).catch(() => toast('Could not reach the server.')); - }); - setInterval(renderWallet, 60000); + if (typeof MultiversePanorama !== 'undefined') MultiversePanorama.attach(root); + const trail = root.querySelector('.ld-trail'); + const roller = root.querySelector('.ld-roller'); + const label = root.querySelector('.ld-pct'); + let progress = 0; + let target = 0; + let done = false; + const shownAt = performance.now(); + // Eases toward 90% while the world loads, then runs to 100% once it is ready + (function frame() { + target = done ? 100 : Math.min(90, target + (90 - target) * 0.012 + 0.05); + progress += (target - progress) * 0.12; + const shown = done && progress > 99.5 ? 100 : progress; + trail.style.width = `${shown}%`; + roller.style.left = `${shown}%`; + roller.style.transform = `rotate(${shown * 10.8}deg)`; + label.textContent = `${Math.floor(shown)}%`; + if (shown >= 100) { + setTimeout(() => { + root.classList.add('leaving'); + setTimeout(() => root.remove(), 600); + resolve({ session, entry: 'plaza' }); + }, 250); + return; + } + requestAnimationFrame(frame); + })(); + Promise.resolve(ready) + .then(() => new Promise((wait) => setTimeout(wait, Math.max(0, 1600 - (performance.now() - shownAt))))) + .then(() => { done = true; }); }); } - return { open, currentVersion: () => VERSIONS[0].version }; + return { open, currentVersion: () => 'v10' }; })(); // ============================================================================ -// LOGIN PANORAMA (MINECRAFT TITLE SCREEN STYLE) +// PANORAMA (MINECRAFT TITLE SCREEN STYLE) // ============================================================================ -// Behind the welcome card, screenshots of the worlds and districts drift -// slowly and cross-fade one into the next, like the Minecraft title screen. -// The shots are tiles of assets/places.jpg (8 x 8 tiles in worlds.json order). -(() => { - const screen = document.getElementById('auth-screen'); - if (!screen) return; +// Behind the welcome card and the title screen, screenshots of the worlds and +// districts drift slowly and cross-fade one into the next, like the Minecraft +// title screen. The shots are tiles of assets/places.jpg (8 x 8, worlds.json order). +const MultiversePanorama = (() => { const TILES = [57, 41, 38, 0, 39, 15, 33, 23, 40, 8, 36, 1, 35, 46, 37, 16]; const SHOW_MS = 7000; const style = document.createElement('style'); style.textContent = ` - #auth-panorama { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #0d1117; } - #auth-panorama div { position: absolute; left: 50%; top: 50%; width: max(130vw, 186vh); aspect-ratio: 320 / 224; opacity: 0; filter: blur(1.5px) saturate(1.1); + .mv-panorama { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #0d1117; } + #auth-screen > .mv-panorama { position: fixed; } + .mv-panorama div { position: absolute; left: 50%; top: 50%; width: max(130vw, 186vh); aspect-ratio: 320 / 224; opacity: 0; filter: blur(1.5px) saturate(1.1); background-image: url(assets/places.jpg); background-size: 800% 800%; transition: opacity 2.4s ease-in-out; will-change: transform, opacity; } - #auth-panorama div.on { opacity: 1; } - #auth-panorama div.pan-a { animation: auth-pan-a 16s linear forwards; } - #auth-panorama div.pan-b { animation: auth-pan-b 16s linear forwards; } - @keyframes auth-pan-a { from { transform: translate(-53%, -50%) scale(1.02); } to { transform: translate(-47%, -51%) scale(1.1); } } - @keyframes auth-pan-b { from { transform: translate(-47%, -51%) scale(1.1); } to { transform: translate(-53%, -49%) scale(1.02); } } - #auth-panorama::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 17, 23, 0.3), rgba(13, 17, 23, 0.72)); } - @media (prefers-reduced-motion: reduce) { #auth-panorama div.pan-a, #auth-panorama div.pan-b { animation: none; transform: translate(-50%, -50%); } } - #auth-screen > :not(#auth-panorama) { position: relative; z-index: 1; } + .mv-panorama div.on { opacity: 1; } + .mv-panorama div.pan-a { animation: mv-pan-a 16s linear forwards; } + .mv-panorama div.pan-b { animation: mv-pan-b 16s linear forwards; } + @keyframes mv-pan-a { from { transform: translate(-53%, -50%) scale(1.02); } to { transform: translate(-47%, -51%) scale(1.1); } } + @keyframes mv-pan-b { from { transform: translate(-47%, -51%) scale(1.1); } to { transform: translate(-53%, -49%) scale(1.02); } } + .mv-panorama::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 17, 23, 0.25), rgba(13, 17, 23, 0.6)); } + @media (prefers-reduced-motion: reduce) { .mv-panorama div.pan-a, .mv-panorama div.pan-b { animation: none; transform: translate(-50%, -50%); } } + #auth-screen > :not(.mv-panorama) { position: relative; z-index: 1; } `; document.head.appendChild(style); - const panorama = document.createElement('div'); - panorama.id = 'auth-panorama'; - const slides = [document.createElement('div'), document.createElement('div')]; - slides.forEach((slide) => panorama.appendChild(slide)); - screen.prepend(panorama); - let turn = 0; - let timer = null; - function show() { - const slide = slides[turn % 2]; - const other = slides[(turn + 1) % 2]; - const tile = TILES[turn % TILES.length]; - slide.style.backgroundPosition = `${((tile % 8) / 7) * 100}% ${(Math.floor(tile / 8) / 7) * 100}%`; - slide.className = ''; - void slide.offsetWidth; // restart the drift animation - slide.className = `on ${turn % 2 ? 'pan-b' : 'pan-a'}`; - other.classList.remove('on'); - turn += 1; - } - const atlas = new Image(); - atlas.onload = () => { - show(); - timer = setInterval(() => { - if (!document.body.contains(screen) || screen.classList.contains('leaving') || getComputedStyle(screen).display === 'none') { clearInterval(timer); return; } + function attach(host) { + const panorama = document.createElement('div'); + panorama.className = 'mv-panorama'; + const slides = [document.createElement('div'), document.createElement('div')]; + slides.forEach((slide) => panorama.appendChild(slide)); + host.prepend(panorama); + let turn = Math.floor(Math.random() * TILES.length); + function show() { + const slide = slides[turn % 2]; + const other = slides[(turn + 1) % 2]; + const tile = TILES[turn % TILES.length]; + slide.style.backgroundPosition = `${((tile % 8) / 7) * 100}% ${(Math.floor(tile / 8) / 7) * 100}%`; + slide.className = ''; + void slide.offsetWidth; // restart the drift animation + slide.className = `on ${turn % 2 ? 'pan-b' : 'pan-a'}`; + other.classList.remove('on'); + turn += 1; + } + const atlas = new Image(); + atlas.onload = () => { show(); - }, SHOW_MS); - }; - atlas.src = 'assets/places.jpg'; + const timer = setInterval(() => { + const gone = !document.body.contains(panorama) || panorama.style.display === 'none' || host.classList.contains('leaving') || getComputedStyle(host).display === 'none'; + if (gone) { clearInterval(timer); return; } + show(); + }, SHOW_MS); + }; + atlas.src = 'assets/places.jpg'; + return panorama; + } + const screen = document.getElementById('auth-screen'); + if (screen) attach(screen); + return { attach }; })(); diff --git a/public/city.js b/public/city.js index 63bf144..37e0e34 100644 --- a/public/city.js +++ b/public/city.js @@ -28,6 +28,8 @@ const City = (() => { let scene; let sky; let sun; + let lastSunAnchor = null; + let sunMoved = true; let hemisphere; let stars; let moon; @@ -190,6 +192,8 @@ const City = (() => { scene.add(instanced); }); edging = { spots: grassSpots, edges, corners, edgeMatrices: edges.instanceMatrix.array.slice(), cornerMatrices: corners.instanceMatrix.array.slice() }; + edges.userData.noChunk = true; // updated when land owners change + corners.userData.noChunk = true; updateEstateEdging(); buildSeas(); } @@ -1347,6 +1351,7 @@ const City = (() => { sun.shadow.bias = -0.0004; sun.shadow.normalBias = 0.06; scene.add(sun, sun.target); + lastSunAnchor = new THREE.Vector3(Infinity, 0, Infinity); const starPositions = []; const random = seededRandom(7); @@ -1424,6 +1429,9 @@ const City = (() => { scene.fog.color.copy(colors.bottom); scene.fog.near = weather === 'clear' ? 140 : 60; scene.fog.far = weather === 'clear' ? 900 : 380; + // Lighter quality levels see less far (the fog closes in, and everything + // behind it is not drawn at all): the biggest saving per frame + if (window.MULTIVERSE_VIEW_CAP) scene.fog.far = Math.min(scene.fog.far, window.MULTIVERSE_VIEW_CAP); // The higher you fly, the hazier the view; inside the cloud layer it turns white if (!cloudLayer) buildCloudLayer(); updateCloudLayer(camera, time); @@ -1451,8 +1459,14 @@ const City = (() => { sun.intensity = isDay ? daylight * 0.85 : 0.12; sun.color.set(isDay ? '#fff4e0' : '#9db4ff'); const lightDirection = new THREE.Vector3(Math.cos(sunAngle) * 120, Math.abs(Math.sin(sunAngle)) * 160 + 30, 60); - sun.position.copy(focus).add(lightDirection); - sun.target.position.copy(focus); + // The sun follows the player in 10 m steps, so its shadow map only needs + // redrawing when that step changes (or every few frames for moving things) + const anchorX = Math.round(focus.x / 10) * 10; + const anchorZ = Math.round(focus.z / 10) * 10; + sunMoved = anchorX !== lastSunAnchor.x || anchorZ !== lastSunAnchor.z || Math.abs(focus.y - lastSunAnchor.y) > 3; + if (sunMoved) lastSunAnchor.set(anchorX, focus.y, anchorZ); + sun.position.copy(lastSunAnchor).add(lightDirection); + sun.target.position.copy(lastSunAnchor); const night = 1 - Math.min(1, colors.light / 0.5); stars.material.opacity = weather === 'clear' ? Math.max(0, night) : 0; @@ -1480,7 +1494,7 @@ const City = (() => { positions.needsUpdate = true; }); animatedCity.forEach((update) => update(time)); - return { flash: weather === 'thunder' && Math.random() < 0.004, haze, inCloud }; + return { flash: weather === 'thunder' && Math.random() < 0.004, haze, inCloud, sunMoved }; } function init(targetScene) { diff --git a/public/games.js b/public/games.js index a4ca03e..be78262 100644 --- a/public/games.js +++ b/public/games.js @@ -364,7 +364,7 @@ const GameSystems = (() => { const screenMesh = box(w, h, 0.05, new THREE.MeshBasicMaterial({ map: screen.texture }), 0, 0, d / 2 + 0.03); group.add(screenMesh); // The keynotes autoplay (muted) right on the big screen when you are close - keynoteVideo = VideoScreens.register(screenMesh, w, h, VideoScreens.youtubeEmbed(KEYNOTE_PLAYLIST.map((entry) => entry.videoId)), { distance: 160 }); + keynoteVideo = VideoScreens.register(screenMesh, w, h, VideoScreens.youtubeEmbed(KEYNOTE_PLAYLIST.map((entry) => entry.videoId)), { distance: 230, spatial: { full: 85, fade: 220 } }); [-1, 1].forEach((side) => group.add(box(1.2, h + 4, 1.2, material('#2b2d42'), side * (w / 2 + 1), -2, 0))); keynoteScreen = { screen, group }; group.userData.isKeynoteScreen = true; diff --git a/public/index.html b/public/index.html index 6843b99..0c01658 100644 --- a/public/index.html +++ b/public/index.html @@ -14,7 +14,7 @@ var version = params.get('v'); if (!version || !/^[0-9a-f]{7,40}$/.test(version)) return; var local = /^(localhost|127\.0\.0\.1)$/.test(location.hostname); - var base = ((local && params.get('cdn')) || 'https://cdn.jsdelivr.net/gh/FavoriteDevX/Github-Universe@') + version + '/public/'; + var base = ((local && params.get('cdn')) || 'https://cdn.jsdelivr.net/gh/FavoriteDevX/Github-Multiverse@') + version + '/public/'; var origin = location.origin; function shim(cfg) { var fix = function (url) { return typeof url === 'string' && url.charAt(0) === '/' && url.charAt(1) !== '/' ? cfg.origin + url : url; }; diff --git a/public/landmarks.js b/public/landmarks.js index 2319be0..f0e1ee3 100644 --- a/public/landmarks.js +++ b/public/landmarks.js @@ -41,26 +41,31 @@ } // Instanced low-poly trees scattered inside a rectangle (skips optional holes) + // Campus trees: the same realistic leafy trees as Genesis City (bark, layered + // crowns and leaf cards), instanced; coast live oaks in green, a share of + // blossoming trees where the palette asks for pink (the Apple Park orchards) function scatterTrees(group, count, width, depth, seed, { y = 0, avoid = null, palette = ['#2e7d32', '#388e3c', '#43a047', '#558b2f'], scale = 1 } = {}) { const random = seededRandom(seed); - const trunks = new THREE.InstancedMesh(new THREE.CylinderGeometry(0.2, 0.3, 1, 6).translate(0, 0.5, 0), material('#6d4c41'), count); - const crowns = new THREE.InstancedMesh(new THREE.IcosahedronGeometry(1, 0), material('#ffffff', { flatShading: true }), count); + const blossoms = palette.some((color) => /^#f[0-9a-f]8/i.test(color) || /f48fb1|f8bbd0|ec407a/i.test(color)); + const geometry = PropKit.kit.realisticTreeGeometry('broadleaf'); + const green = new THREE.InstancedMesh(geometry, PropKit.kit.treeMaterial('green'), count); + const pink = blossoms ? new THREE.InstancedMesh(geometry, PropKit.kit.treeMaterial('blossom'), count) : null; + let greens = 0; + let pinks = 0; let placed = 0; for (let attempt = 0; attempt < count * 4 && placed < count; attempt++) { const x = (random() - 0.5) * width; const z = (random() - 0.5) * depth; if (avoid && avoid(x, z)) continue; - const size = (0.8 + random() * 0.8) * scale; - matrix.compose(positionVector.set(x, y, z), quaternion.identity(), scaleVector.set(size, size * 2.4, size)); - trunks.setMatrixAt(placed, matrix); - matrix.compose(positionVector.set(x, y + size * 3, z), quaternion.identity(), scaleVector.set(size * 1.6, size * 1.8, size * 1.6)); - crowns.setMatrixAt(placed, matrix); - crowns.setColorAt(placed, tint.set(palette[Math.floor(random() * palette.length)])); + const size = (0.75 + random() * 0.55) * scale; + quaternion.setFromAxisAngle(positionVector.set(0, 1, 0), random() * Math.PI * 2); + matrix.compose(positionVector.set(x, y, z), quaternion, scaleVector.set(size, size * (0.9 + random() * 0.25), size)); + if (pink && random() < 0.3) pink.setMatrixAt(pinks++, matrix); + else green.setMatrixAt(greens++, matrix); placed++; } - trunks.count = placed; - crowns.count = placed; - [trunks, crowns].forEach((instanced) => { instanced.castShadow = true; instanced.receiveShadow = true; group.add(instanced); }); + green.count = greens; + [green, pink].filter(Boolean).forEach((instanced) => { if (instanced === pink) instanced.count = pinks; instanced.castShadow = true; instanced.receiveShadow = true; group.add(instanced); }); } // Parking lot full of instanced cars @@ -337,8 +342,13 @@ group.add(box(w, 0.1, d, material('#cfd8dc', { roughness: 0.9 }), 0, base + 0.05, 0)); const shell = new THREE.Group(); - const outside = new THREE.MeshStandardMaterial({ map: repeated(windowsTexture(wallColor, isWarm ? '#f4e3cf' : '#cfe8ff'), Math.max(1, Math.round(bw / 5)), floors), roughness: 0.5, metalness: 0.2 }); - const sideWall = new THREE.MeshStandardMaterial({ map: repeated(windowsTexture(wallColor, isWarm ? '#f4e3cf' : '#cfe8ff'), Math.max(1, Math.round(bd / 5)), floors), roughness: 0.5, metalness: 0.2 }); + // GitHub (88 Colin P. Kelly Jr. St) and OpenAI (the Pioneer Building in the + // Mission) are brick buildings in San Francisco: brick walls, tall windows + const brick = /github|openai/.test(type) && PropKit.kit.brickTexture; + const outside = brick + ? new THREE.MeshStandardMaterial({ map: repeated(PropKit.kit.brickTexture(/github/.test(type) ? '#8e3b2b' : '#b07a55'), Math.max(1, Math.round(bw / 3)), Math.max(1, Math.round(h / 3))), roughness: 0.85 }) + : new THREE.MeshStandardMaterial({ map: repeated(windowsTexture(wallColor, isWarm ? '#f4e3cf' : '#cfe8ff'), Math.max(1, Math.round(bw / 5)), floors), roughness: 0.5, metalness: 0.2 }); + const sideWall = brick ? outside : new THREE.MeshStandardMaterial({ map: repeated(windowsTexture(wallColor, isWarm ? '#f4e3cf' : '#cfe8ff'), Math.max(1, Math.round(bd / 5)), floors), roughness: 0.5, metalness: 0.2 }); // Back and side walls shell.add(box(bw, h, wallThickness, outside, 0, base + h / 2, bz - bd / 2)); [-1, 1].forEach((side) => shell.add(box(wallThickness, h, bd, sideWall, side * bw / 2, base + h / 2, bz))); @@ -348,6 +358,39 @@ shell.add(box(doorWidth, h - doorHeight, wallThickness, outside, 0, base + doorHeight + (h - doorHeight) / 2, frontZ)); shell.add(box(doorWidth + 0.6, 0.4, 1.6, material(brandColor), 0, base + doorHeight + 0.2, frontZ + 0.8)); group.add(shell); + if (brick) { + // Tall steel-framed windows on the brick, a stone cornice on top + const panes = new THREE.Group(); + const glass = material('#1d2a33', { roughness: 0.1, metalness: 0.6 }); + const frame = material('#1a1a1a', { metalness: 0.5 }); + for (let f = 0; f < floors; f++) { + const y = base + f * floorHeight + floorHeight * 0.55; + for (let x = -bw / 2 + 2.5; x <= bw / 2 - 2.5; x += 3.2) { + if (f === 0 && Math.abs(x) < doorWidth) continue; + panes.add(box(1.8, floorHeight * 0.62, 0.08, glass, x, y, frontZ + 0.2)); + panes.add(box(2, 0.12, 0.14, frame, x, y + floorHeight * 0.31, frontZ + 0.22)); + panes.add(box(0.1, floorHeight * 0.62, 0.12, frame, x, y, frontZ + 0.22)); + } + [-1, 1].forEach((side) => { + for (let z = bz - bd / 2 + 2.5; z <= bz + bd / 2 - 2.5; z += 3.2) panes.add(box(0.08, floorHeight * 0.62, 1.8, glass, side * (bw / 2 + 0.2), y, z)); + }); + } + panes.add(box(bw + 0.8, 0.6, bd + 0.8, material('#d9d2c3', { roughness: 0.8 }), 0, base + h + 0.1, bz)); + group.add(PropKit.kit.mergeByMaterial(panes)); + } + if (/github/.test(type)) { + // The lobby of the real GitHub HQ is a replica of the Oval Office: + // an oval blue rug, a heavy wooden desk and two flags behind it + const oval = cylinder(1, 1, 0.04, material('#1f3a68', { roughness: 1 }), 0, base + 0.22, bz - bd * 0.18, 40); + oval.scale.set(5, 1, 3.4); + group.add(oval); + group.add(box(3.4, 1.05, 1.6, material('#5b3a21', { roughness: 0.6 }), 0, base + 0.75, bz - bd * 0.3)); + [-1.6, 1.6].forEach((x, i) => { + group.add(cylinder(0.04, 0.04, 2.6, material('#c9a64b', { metalness: 0.8 }), x, base + 1.5, bz - bd / 2 + 1, 6)); + group.add(box(0.05, 1, 1.4, material(i ? '#24292f' : '#1f6feb'), x, base + 2.3, bz - bd / 2 + 1.7)); + }); + [-1, 1].forEach((side) => group.add(box(2.6, 0.7, 1, material('#e8dcc2'), side * 3, base + 0.55, bz - bd * 0.12))); + } // Floor slabs with a stair opening, plus the roof (also opened for rooftop access) const slabMaterial = material(isWarm ? '#d9c6ad' : '#c9ced6', { roughness: 0.7 }); @@ -448,9 +491,61 @@ const hole = new THREE.Path(); hole.absarc(0, 0, inner, 0, Math.PI * 2, true); ringShape.holes.push(hole); - const ringGeometry = new THREE.ExtrudeGeometry(ringShape, { depth: h * 0.7, bevelEnabled: false, curveSegments: 64 }); - ringGeometry.rotateX(-Math.PI / 2); - group.add(mesh(ringGeometry, material('#f2f2f2', { roughness: 0.4 }), 0, -h / 2, 0)); + // The Ring as it is: four floors behind floor-to-ceiling glass, a white + // canopy fin sticking out at every floor on both sides, and open offices + // (desks, pods, wood floors) you can see through the glass + const ringSlab = (r1, r2, depth) => { + const shape = new THREE.Shape(); + shape.absarc(0, 0, r2, 0, Math.PI * 2, false); + const cut = new THREE.Path(); + cut.absarc(0, 0, r1, 0, Math.PI * 2, true); + shape.holes.push(cut); + const geometry = new THREE.ExtrudeGeometry(shape, { depth, bevelEnabled: false, curveSegments: 96 }); + geometry.rotateX(-Math.PI / 2); + return geometry; + }; + const floorsCount = 4; + const storey = (h * 0.6) / floorsCount; + const finMaterial = material('#f7f7f5', { roughness: 0.35 }); + const woodFloor = new THREE.MeshStandardMaterial({ map: repeated(PropKit.kit.plankTexture('#c8a27a'), 40, 2), roughness: 0.6 }); + for (let f = 0; f <= floorsCount; f++) { + const y = -h / 2 + f * storey; + if (f < floorsCount) group.add(mesh(ringSlab(inner, outer, 0.35), woodFloor, 0, y, 0)); + if (f > 0) { + group.add(mesh(ringSlab(outer, outer + 2.4, 0.22), finMaterial, 0, y - 0.1, 0)); + group.add(mesh(ringSlab(inner - 2.4, inner, 0.22), finMaterial, 0, y - 0.1, 0)); + } + } + // Office floors: rows of white desks with dark chairs around the whole ring + const perFloor = 72; + const desks = new THREE.InstancedMesh(new THREE.BoxGeometry(3.4, 0.08, 1.4).translate(0, 0.75, 0), material('#fafafa', { roughness: 0.4 }), perFloor * floorsCount); + const legs = new THREE.InstancedMesh(new THREE.BoxGeometry(3.2, 0.72, 0.08).translate(0, 0.36, 0), material('#b0b0b0', { metalness: 0.6, roughness: 0.3 }), perFloor * floorsCount); + const chairs = new THREE.InstancedMesh(new THREE.BoxGeometry(0.6, 1, 0.6).translate(0, 0.5, 0), material('#2b2b2b'), perFloor * floorsCount * 2); + const middle = (inner + outer) / 2; + let deskIndex = 0; + for (let f = 0; f < floorsCount; f++) { + for (let i = 0; i < perFloor; i++) { + const angle = (i / perFloor) * Math.PI * 2; + const y = -h / 2 + f * storey + 0.35; + matrix.makeRotationY(-angle).setPosition(Math.cos(angle) * middle, y, Math.sin(angle) * middle); + desks.setMatrixAt(deskIndex, matrix); + legs.setMatrixAt(deskIndex, matrix); + [-1, 1].forEach((side, k) => { + const r = middle + side * 1.1; + matrix.makeRotationY(-angle).setPosition(Math.cos(angle) * r, y, Math.sin(angle) * r); + chairs.setMatrixAt(deskIndex * 2 + k, matrix); + }); + deskIndex += 1; + } + } + group.add(desks, legs, chairs); + // Stone cores between the office bays (stairs and elevators) + for (let i = 0; i < 8; i++) { + const angle = (i / 8) * Math.PI * 2 + Math.PI / 8; + const core = box(4, h * 0.6, (outer - inner) * 0.6, material('#e6e0d4', { roughness: 0.8 }), Math.cos(angle) * middle, -h / 2 + h * 0.3, Math.sin(angle) * middle); + core.rotation.y = -angle; + group.add(core); + } // Curved glass facades and the solar roof [outer + 0.05, inner - 0.05].forEach((radius) => { const facade = mesh(new THREE.CylinderGeometry(radius, radius, h * 0.6, 96, 1, true), material('#9fc5e8', { transparent: true, opacity: 0.55, roughness: 0.05, metalness: 0.7, side: THREE.DoubleSide }), 0, -h / 2 + h * 0.32, 0); @@ -464,7 +559,7 @@ roofShape.holes.push(roofHole); const roof = new THREE.ExtrudeGeometry(roofShape, { depth: 0.4, bevelEnabled: false, curveSegments: 64 }); roof.rotateX(-Math.PI / 2); - group.add(mesh(roof, material('#b8c4cc', { roughness: 0.35, metalness: 0.5 }), 0, -h / 2 + h * 0.7, 0)); + group.add(mesh(roof, material('#1f2a36', { roughness: 0.25, metalness: 0.7 }), 0, -h / 2 + h * 0.6 + 0.2, 0)); // Inner park: meadow, pond and orchards group.add(cylinder(inner - 2, inner - 2, 0.2, material('#7cb342', { roughness: 1 }), 0, -h / 2 + 0.1, 0, 64)); group.add(cylinder(inner * 0.3, inner * 0.3, 0.25, material('#4fc3f7', { roughness: 0.1, metalness: 0.2 }), inner * 0.2, -h / 2 + 0.15, -inner * 0.2, 32)); @@ -474,6 +569,14 @@ const theater = new THREE.Group(); theater.add(cylinder(7, 7, 4, material('#d6eaf8', { transparent: true, opacity: 0.45, roughness: 0.02, metalness: 0.6 }), 0, 2, 0, 48)); theater.add(cylinder(7.6, 7.6, 0.6, material('#e5e7e9', { roughness: 0.3, metalness: 0.5 }), 0, 4.3, 0, 48)); + // Inside: a pale stone floor and the two curved staircases down to the auditorium + theater.add(cylinder(6.8, 6.8, 0.1, material('#ece6da', { roughness: 0.6 }), 0, 0.06, 0, 48)); + [0, Math.PI].forEach((start) => { + const stair = mesh(new THREE.TorusGeometry(4.6, 0.55, 6, 32, Math.PI * 0.8), material('#d8cfc0', { roughness: 0.7 }), 0, 0.3, 0); + stair.rotation.set(Math.PI / 2, 0, start); + theater.add(stair); + }); + theater.add(cylinder(1.2, 1.2, 4, material('#d6eaf8', { transparent: true, opacity: 0.35, roughness: 0.02 }), 0, 2, 0, 24)); const caption = textSprite('Steve Jobs Theater', { width: 10 }); caption.position.y = 8; theater.add(caption); @@ -498,14 +601,58 @@ group.add(box(18.2, 0.8, 12.2, material(brand[index]), x, -h / 2 + 9, z)); group.add(box(3, 9.02, 0.3, material(brand[(index + 1) % 4]), x - 6, -h / 2 + 4.5, z + 6.05)); }); - // Bay View: dragonscale canopy roofs + // Bay View: low glass halls under a roof of tent-like peaks covered in + // silver "dragonscale" solar panels, with clerestory windows between peaks + const scale = new THREE.MeshStandardMaterial({ map: repeated(windowsTexture('#9aa7b3', '#cfd8dc'), 3, 2), roughness: 0.25, metalness: 0.75, flatShading: true }); for (let i = 0; i < 3; i++) { - const canopy = mesh(new THREE.ConeGeometry(11, 5, 4, 1), material(i % 2 ? '#b3e5fc' : '#e1f5fe', { roughness: 0.2, metalness: 0.4, flatShading: true }), w * 0.22 + (i % 2) * 6, -h / 2 + 8, -d * 0.05 + i * 13 - 8); - canopy.rotation.y = Math.PI / 4; - canopy.scale.set(1.2, 1, 0.8); - group.add(canopy); - group.add(box(18, 5.5, 10, material('#fafafa', { transparent: true, opacity: 0.8 }), w * 0.22 + (i % 2) * 6, -h / 2 + 2.75, -d * 0.05 + i * 13 - 8)); + const cx = w * 0.22 + (i % 2) * 6; + const cz = -d * 0.05 + i * 13 - 8; + group.add(box(22, 4.6, 11, material('#e9f4fb', { transparent: true, opacity: 0.55, roughness: 0.05, metalness: 0.3 }), cx, -h / 2 + 2.3, cz)); + group.add(box(22.4, 0.3, 11.4, material('#d7ccc8'), cx, -h / 2 + 4.7, cz)); + for (let px = -1; px <= 1; px++) { + for (let pz = -0.5; pz <= 0.5; pz += 1) { + const peak = mesh(new THREE.ConeGeometry(4.6, 3.2, 4, 1), scale, cx + px * 7.2, -h / 2 + 6.4, cz + pz * 5.4); + peak.rotation.y = Math.PI / 4; + peak.scale.set(1.1, 1, 0.82); + group.add(peak); + } + } + } + // Stan, the T. rex skeleton by the old campus, in bone white + const bone = material('#efe6d2', { roughness: 0.8 }); + const rex = new THREE.Group(); + for (let i = 0; i < 16; i++) { + const t = i / 15; + rex.add(sphere(0.32 - t * 0.12, bone, -3.6 + i * 0.55, 3.1 + Math.sin(t * Math.PI) * 0.5 - t * t * 1.4, 0, 6)); } + for (let i = 0; i < 7; i++) { + const rib = mesh(new THREE.TorusGeometry(0.75 - i * 0.05, 0.05, 4, 12, Math.PI), bone, -1.6 + i * 0.36, 3.1, 0); + rib.rotation.set(0, Math.PI / 2, Math.PI); + rex.add(rib); + } + rex.add(box(1.6, 0.8, 0.6, bone, -4.4, 3.9, 0)); + rex.add(box(1.2, 0.25, 0.5, bone, -4.6, 3.35, 0)); + [-0.45, 0.45].forEach((side) => { + rex.add(cylinder(0.14, 0.12, 2.4, bone, -0.8, 1.6, side, 6)); + rex.add(box(0.8, 0.15, 0.3, bone, -1.1, 0.25, side)); + rex.add(cylinder(0.05, 0.05, 0.7, bone, -2.6, 2.6, side * 0.6, 4)); + }); + rex.add(box(3, 0.3, 1.6, material('#9e9e9e'), -0.8, 0.15, 0)); + rex.position.set(-w * 0.12, -h / 2, d * 0.32); + rex.rotation.y = 0.4; + group.add(rex); + // The green Android robot statue on the lawn + const android = new THREE.Group(); + const robot = material('#3ddc84', { roughness: 0.5 }); + android.add(cylinder(1.1, 1.1, 1.8, robot, 0, 1.9, 0, 20)); + const head = mesh(new THREE.SphereGeometry(1.1, 20, 10, 0, Math.PI * 2, 0, Math.PI / 2), robot, 0, 2.95, 0); + android.add(head); + [-0.4, 0.4].forEach((x) => android.add(sphere(0.12, material('#ffffff'), x, 3.45, 0.95, 8))); + [-0.55, 0.55].forEach((x) => { const antenna = cylinder(0.06, 0.06, 0.6, robot, x, 4.15, 0, 6); antenna.rotation.z = -x * 0.8; android.add(antenna); }); + [-1.45, 1.45].forEach((x) => android.add(cylinder(0.28, 0.28, 1.4, robot, x, 2.1, 0, 10))); + [-0.45, 0.45].forEach((x) => android.add(cylinder(0.3, 0.3, 1, robot, x, 0.6, 0, 10))); + android.position.set(w * 0.05, -h / 2, d * 0.36); + group.add(android); // Colorful bikes, volleyball court, wordmark sign // Colorful campus bikes: two wheels, a frame and handlebars each const bikeCount = 24; @@ -558,6 +705,15 @@ sign.position.set(-w * 0.3, -h / 2, d * 0.38); group.add(sign); parkingLot(group, w * 0.45, d * 0.25, w * 0.2, d * 0.3, 9); + // Hacker Square: the courtyard of the Classic Campus, with HACK written + // in giant letters on the pavement, ringed by low "Main Street" buildings + const square = box(w * 0.32, 0.12, d * 0.22, material('#d7d2c8', { roughness: 0.9 }), -w * 0.18, -h / 2 + 0.12, d * 0.22); + group.add(square); + const hack = box(w * 0.28, 0.02, d * 0.12, new THREE.MeshBasicMaterial({ map: labelTexture('HACK', { bg: '#d7d2c8', fg: '#8a8578', width: 1024, height: 360, font: 'bold 300px Segoe UI, Arial, sans-serif' }) }), -w * 0.18, -h / 2 + 0.2, d * 0.22); + group.add(hack); + [['#c8b89a', -0.33], ['#9fb3c8', -0.03], ['#d6c4a8', -0.2]].forEach(([wall, x], index) => { + group.add(box(w * 0.08, 5 + index, 4, new THREE.MeshStandardMaterial({ map: repeated(windowsTexture(wall, '#cfe8ff'), 2, 2), roughness: 0.6 }), w * x, -h / 2 + 2.5 + index / 2, d * 0.22 + (index === 2 ? d * 0.14 : -d * 0.14))); + }); const caption = textSprite('Meta — MPK 20', { width: 14 }); caption.position.y = h + 6; group.add(caption); @@ -610,6 +766,100 @@ group.add(caption); }, + // The Bay Area around the campus: golden-green foothills of the Santa Cruz + // Mountains to the west and south, the San Francisco Bay to the north with + // its colored salt ponds along the shore, and US-101 with traffic between + bayArea(group, { w, d }) { + const random = seededRandom(1849); + // Foothills: a displaced strip, green in the folds and golden on the crests + const hills = (length, depthOut, x, z, rotation) => { + const geometry = new THREE.PlaneGeometry(length, depthOut, 90, 24); + geometry.rotateX(-Math.PI / 2); + const position = geometry.attributes.position; + const colors = []; + const low = new THREE.Color('#5f7f3c'); + const high = new THREE.Color('#c9a75c'); + const oak = new THREE.Color('#3f5a2a'); + for (let i = 0; i < position.count; i++) { + const px = position.getX(i); + const pz = position.getZ(i); + const away = (pz + depthOut / 2) / depthOut; // 0 at the campus edge, 1 far away + const ridge = Math.sin(px * 0.018 + 1.3) * 0.5 + Math.sin(px * 0.047 + pz * 0.02) * 0.3 + Math.sin(px * 0.11 - pz * 0.07) * 0.12; + const height = Math.max(0, away * away * (48 + ridge * 30) + ridge * 6 * away); + position.setY(i, height - 0.4); + const t = Math.min(1, height / 55); + const c = low.clone().lerp(high, t * 0.85); + if (Math.sin(px * 0.3 + pz * 0.21) > 0.55 && t < 0.7) c.lerp(oak, 0.6); // oak groves in the folds + colors.push(c.r, c.g, c.b); + } + geometry.setAttribute('color', new THREE.Float32BufferAttribute(colors, 3)); + geometry.computeVertexNormals(); + const strip = mesh(geometry, new THREE.MeshStandardMaterial({ vertexColors: true, roughness: 1 }), x, 0, z); + strip.rotation.y = rotation; + strip.receiveShadow = true; + strip.userData.alwaysVisible = true; + group.add(strip); + }; + hills(w + 420, 260, 0, d / 2 + 130, Math.PI); // south + hills(d + 420, 260, -w / 2 - 130, 0, -Math.PI / 2); // west + // San Francisco Bay to the north, with salt ponds in their real colors + const bay = box(w + 600, 0.2, 320, material('#4f86a8', { roughness: 0.15, metalness: 0.3 }), 0, -0.35, -d / 2 - 175); + bay.userData.alwaysVisible = true; + group.add(bay); + const pondColors = ['#c0504d', '#d9826b', '#b5713a', '#7fa98a', '#c98aa6', '#8f6a4a', '#5f9e9b']; + let px = -w / 2 - 60; + while (px < w / 2 + 60) { + const pw = 28 + random() * 40; + const pd = 22 + random() * 26; + group.add(box(pw, 0.12, pd, material(pondColors[Math.floor(random() * pondColors.length)], { roughness: 0.4 }), px + pw / 2, -0.2, -d / 2 - 40 - pd / 2 - random() * 10)); + group.add(box(pw + 1.2, 0.3, 1.2, material('#a89f8a'), px + pw / 2, -0.15, -d / 2 - 38)); + px += pw + 2; + } + // US-101: six lanes with traffic, between the campus and the bay + const roadZ = -d / 2 - 18; + const road = box(w + 260, 0.1, 22, new THREE.MeshStandardMaterial({ map: repeated(PropKit.kit.asphaltTexture ? PropKit.kit.asphaltTexture() : windowsTexture('#3a3d42', '#3a3d42'), 40, 2), roughness: 0.9 }), 0, 0.02, roadZ); + group.add(road); + group.add(box(w + 260, 0.6, 0.6, material('#c9c9c9'), 0, 0.3, roadZ)); + const lanes = [-8, -4.5, -1.5, 1.5, 4.5, 8]; + const length = w + 240; + const perLane = 14; + const cars = new THREE.InstancedMesh(new THREE.BoxGeometry(4.3, 1.4, 1.9).translate(0, 0.75, 0), material('#ffffff', { roughness: 0.25, metalness: 0.5 }), lanes.length * perLane); + const carColors = ['#f2f2f2', '#1b1b1b', '#9aa1a8', '#b3261e', '#22446e', '#c7c9cc', '#3c3c3c']; + const starts = []; + for (let i = 0; i < cars.count; i++) { starts.push(random() * length); cars.setColorAt(i, tint.set(carColors[i % carColors.length])); } + cars.castShadow = true; + group.add(cars); + animate(cars, (time) => { + for (let i = 0; i < cars.count; i++) { + const lane = i % lanes.length; + const direction = lane < 3 ? 1 : -1; + const travel = (starts[i] + time * (16 + (i % 4) * 3)) % length; + matrix.makeRotationY(direction > 0 ? 0 : Math.PI).setPosition(direction > 0 ? -length / 2 + travel : length / 2 - travel, 0, roadZ + lanes[lane]); + cars.setMatrixAt(i, matrix); + } + cars.instanceMatrix.needsUpdate = true; + }); + for (let x = -w / 2; x <= w / 2; x += 110) { + const shield = new THREE.Group(); + shield.add(box(0.25, 5, 0.25, material('#7f8c8d'), 0, 2.5, 0)); + shield.add(facedBox(2.6, 2.6, 0.15, material('#ffffff'), new THREE.MeshBasicMaterial({ map: labelTexture('101', { bg: '#ffffff', fg: '#111111', border: '#111111', width: 256, height: 256, font: 'bold 110px Arial, sans-serif' }) }), 0, 5.6, 0)); + shield.position.set(x, 0, roadZ + 12.5); + group.add(shield); + } + // Rows of palms and oaks along the boulevards beside the freeway + const palms = new THREE.InstancedMesh(new THREE.CylinderGeometry(0.18, 0.28, 9, 6).translate(0, 4.5, 0), material('#8d7a5f'), 40); + const fronds = new THREE.InstancedMesh(new THREE.ConeGeometry(2.6, 1.6, 8, 1, true).translate(0, 9.2, 0), material('#4f7a35', { side: THREE.DoubleSide, flatShading: true }), 40); + for (let i = 0; i < 40; i++) { + matrix.makeRotationY(i).setPosition(-w / 2 + 10 + i * (w - 20) / 39, 0, roadZ + 15.5); + palms.setMatrixAt(i, matrix); + fronds.setMatrixAt(i, matrix); + } + group.add(palms, fronds); + const caption = textSprite('San Francisco Bay', { width: 18 }); + caption.position.set(0, 14, -d / 2 - 120); + group.add(caption); + }, + stanfordCampus(group, { w, h, d }) { const sandstone = material('#e0c9a6', { roughness: 0.9 }); const tile = material('#b7472a', { flatShading: true }); @@ -748,6 +998,7 @@ [/oracle_campus/, 'oracleCampus'], [/ea_campus/, 'eaCampus'], [/stanford_campus/, 'stanfordCampus'], + [/bay_area/, 'bayArea'], [/hp_garage/, 'hpGarage'], [/vc_row/, 'vcRow'], [/hangar/, 'hangar'], diff --git a/public/main.js b/public/main.js index 8c00b72..7fdbecc 100644 --- a/public/main.js +++ b/public/main.js @@ -136,7 +136,11 @@ const Quality = (() => { const pixelRatio = () => Math.min(window.devicePixelRatio || 1, RATIOS[current]); const viewDistance = () => VIEW[current]; + // How far the city is drawn at each level (the fog closes in to match) + const FAR = [320, 420, 560, 900]; + window.MULTIVERSE_VIEW_CAP = FAR[current]; function apply() { + window.MULTIVERSE_VIEW_CAP = FAR[current]; if (!renderer) return; renderer.setPixelRatio(pixelRatio()); renderer.setSize(window.innerWidth, window.innerHeight); @@ -253,6 +257,115 @@ const DistanceCulling = (() => { return { prepare, update, count: () => units.length }; })(); +// ============================================================================ +// TREE LOD: THOUSANDS OF REALISTIC TREES WITHOUT DRAWING THEM ALL +// ============================================================================ +// Every forest was one InstancedMesh: the GPU drew all of its trees every +// frame, even far away or behind the camera (two thirds of all triangles). +// Once the world is built, the trees are regrouped in 64 m chunks: chunks +// outside the view are skipped, nearby chunks show the full tree and distant +// ones a light silhouette (a few triangles) in the same place. +const TreeLOD = (() => { + const CELL = 96; + const NEAR = [55, 80, 110, 160]; + const chunks = []; + const frustum = new THREE.Frustum(); + const viewProjection = new THREE.Matrix4(); + const testSphere = new THREE.Sphere(); + const farGeometries = {}; + const farMaterials = {}; + const FAR_COLORS = { green: '#5b7d3a', blossom: '#e3a6c2', autumn: '#c47a36' }; + function farGeometry(kind) { + if (!farGeometries[kind]) { + farGeometries[kind] = kind === 'pine' + ? new THREE.ConeGeometry(2.6, 7.2, 6, 1).translate(0, 4.8, 0) + : new THREE.IcosahedronGeometry(3, 0).scale(1, 0.85, 1).translate(0, 5.8, 0); + } + return farGeometries[kind]; + } + function farMaterial(material, kind) { + const variant = kind === 'pine' ? 'pine' : (material.userData.variant || 'green'); + if (!farMaterials[variant]) farMaterials[variant] = new THREE.MeshLambertMaterial({ color: variant === 'pine' ? '#4d6b45' : FAR_COLORS[variant] || FAR_COLORS.green, flatShading: true }); + return farMaterials[variant]; + } + function prepare() { + const sources = []; + // Trees anywhere, plus the big static instanced sets of the city (houses, + // lamps, fences...) that sit right in the scene; never anything animated + const animated = new Set(PropKit.animatedObjects); + scene.traverse((node) => { + if (!node.isInstancedMesh || node.userData.lodChunk || node.userData.noChunk || node.count <= 0 || animated.has(node)) return; + if (node.geometry.userData.treeKind || (node.parent === scene && node.count >= 120 && !node.userData.animate)) sources.push(node); + }); + const local = new THREE.Matrix4(); + const position = new THREE.Vector3(); + const color = new THREE.Color(); + sources.forEach((source) => { + source.updateMatrixWorld(true); + const cells = new Map(); + for (let i = 0; i < source.count; i++) { + source.getMatrixAt(i, local); + const world = new THREE.Matrix4().multiplyMatrices(source.matrixWorld, local); + position.setFromMatrixPosition(world); + const key = `${Math.floor(position.x / CELL)},${Math.floor(position.z / CELL)}`; + if (!cells.has(key)) cells.set(key, []); + cells.get(key).push({ world, index: i }); + } + const kind = source.geometry.userData.treeKind; + cells.forEach((list) => { + const near = new THREE.InstancedMesh(source.geometry, source.material, list.length); + // Trees get a light far version; other sets simply stop at the view distance + const far = kind ? new THREE.InstancedMesh(farGeometry(kind), farMaterial(source.material, kind), list.length) : near; + const center = new THREE.Vector3(); + list.forEach(({ world, index }, i) => { + near.setMatrixAt(i, world); + far.setMatrixAt(i, world); + if (source.instanceColor) { source.getColorAt(index, color); near.setColorAt(i, color); } + center.add(position.setFromMatrixPosition(world)); + }); + center.divideScalar(list.length); + let radius = 0; + list.forEach(({ world }) => { radius = Math.max(radius, position.setFromMatrixPosition(world).distanceTo(center)); }); + center.y += 5; + [near, far].forEach((instanced) => { + instanced.frustumCulled = false; + instanced.matrixAutoUpdate = false; + instanced.userData.lodChunk = true; + instanced.userData.alwaysVisible = true; + if (kind) instanced.raycast = () => {}; + instanced.visible = false; + }); + near.castShadow = source.castShadow; + near.receiveShadow = source.receiveShadow || Boolean(kind); + if (far !== near) { far.castShadow = false; scene.add(far); } + scene.add(near); + chunks.push({ near, far, center, radius: radius + 10 }); + }); + // The original stays (hidden) so collisions with tree trunks keep working + source.visible = false; + source.userData.alwaysVisible = true; + source.userData.lodSource = true; + }); + } + // Every frame: only the chunks in front of the camera, full trees up close + function update() { + if (!chunks.length) return; + viewProjection.multiplyMatrices(camera.projectionMatrix, camera.matrixWorldInverse); + frustum.setFromProjectionMatrix(viewProjection); + const near = NEAR[Quality.level()]; + const far = Math.min(scene.fog ? scene.fog.far : 900, window.MULTIVERSE_VIEW_CAP || 900); + for (const chunk of chunks) { + const distance = chunk.center.distanceTo(camera.position) - chunk.radius; + testSphere.set(chunk.center, chunk.radius + 6); + const inView = distance < far && frustum.intersectsSphere(testSphere); + if (chunk.far === chunk.near) { chunk.near.visible = inView; continue; } + chunk.near.visible = inView && distance < near; + chunk.far.visible = inView && distance >= near; + } + } + return { prepare, update, count: () => chunks.length }; +})(); + // ============================================================================ // ENGINE BOOTSTRAP // ============================================================================ @@ -267,6 +380,7 @@ function initEngine() { renderer.setSize(window.innerWidth, window.innerHeight); renderer.shadowMap.enabled = true; renderer.shadowMap.type = THREE.PCFShadowMap; + renderer.shadowMap.autoUpdate = false; // Filmic tone mapping + an image-based environment give every material soft, // realistic reflections (glass, metal, polished floors) instead of flat colors renderer.toneMapping = THREE.ACESFilmicToneMapping; @@ -330,11 +444,32 @@ async function loadUniverse() { City.finalize(); renderWorldList(); worldFullyLoaded = true; + sharpenTextures(); + TreeLOD.prepare(); DistanceCulling.prepare(); Quality.refresh(); FireLights.init(scene); } +// Anisotropic filtering: stone, brick, wood and grass stay sharp when seen at +// a grazing angle (the ground no longer blurs a few meters ahead) +function sharpenTextures() { + const level = Quality.level(); + if (level === 0) return; + const anisotropy = Math.min(renderer.capabilities.getMaxAnisotropy(), level >= 2 ? 8 : 4); + const seen = new Set(); + scene.traverse((node) => { + const materials = node.material ? (Array.isArray(node.material) ? node.material : [node.material]) : []; + materials.forEach((material) => ['map', 'normalMap', 'roughnessMap', 'bumpMap', 'aoMap'].forEach((slot) => { + const texture = material[slot]; + if (!texture || seen.has(texture) || texture.anisotropy >= anisotropy || texture.isVideoTexture) return; + seen.add(texture); + texture.anisotropy = anisotropy; + texture.needsUpdate = true; + })); + }); +} + let resolvePlazaReady = () => {}; const plazaReady = new Promise((resolve) => { resolvePlazaReady = resolve; }); let worldFullyLoaded = false; @@ -656,8 +791,23 @@ function create3DMousePointerMesh(hexagonalColor) { arrowMesh.castShadow = true; arrowMesh.add(new THREE.LineSegments(new THREE.EdgesGeometry(arrowGeometry, 30), new THREE.LineBasicMaterial({ color: 0x1d1b26 }))); + // The "clicking hand" (like the OS pointer over a link): shown instead of + // the arrow while the mouse is over something that can be clicked + const hand = [[0.12, 0], [0.4, 0], [0.4, -0.6], [0.52, -0.56], [0.66, -0.6], [0.66, -0.68], [0.8, -0.64], [0.94, -0.7], [0.94, -0.78], [1.06, -0.76], [1.18, -0.84], [1.18, -1.4], [1.02, -1.86], [0.28, -1.86], [0.04, -1.5], [-0.3, -1.12], [-0.3, -0.94], [-0.12, -0.9], [0.12, -1.04]]; + const handShape = new THREE.Shape(); + handShape.moveTo(hand[0][0], hand[0][1]); + hand.slice(1).forEach(([x, y]) => handShape.lineTo(x, y)); + handShape.closePath(); + const handGeometry = new THREE.ExtrudeGeometry(handShape, { depth: 0.22, bevelEnabled: true, bevelThickness: 0.05, bevelSize: 0.05, bevelSegments: 2 }); + handGeometry.translate(-0.26, 0, -0.11); + const handMesh = new THREE.Mesh(handGeometry, arrowMesh.material); + handMesh.castShadow = true; + handMesh.add(new THREE.LineSegments(new THREE.EdgesGeometry(handGeometry, 30), new THREE.LineBasicMaterial({ color: 0x1d1b26 }))); + handMesh.visible = false; + const arrowPivot = new THREE.Group(); arrowPivot.add(arrowMesh); + arrowPivot.add(handMesh); arrowPivot.position.y = 0.25; pointerGroup.add(arrowPivot); @@ -668,6 +818,7 @@ function create3DMousePointerMesh(hexagonalColor) { pointerGroup.userData.arrowPivot = arrowPivot; pointerGroup.userData.arrowMesh = arrowMesh; + pointerGroup.userData.handMesh = handMesh; pointerGroup.userData.ring = ringMesh; pointerGroup.scale.setScalar(1.1); pointerGroup.traverse((node) => { node.raycast = () => {}; }); @@ -860,7 +1011,13 @@ function bindInputEvents() { pointerInsideCanvas = false; ui.tooltip.style.display = 'none'; }); - canvas.addEventListener('pointerdown', (event) => { pointerDownAt = { x: event.clientX, y: event.clientY }; }); + canvas.addEventListener('pointerdown', (event) => { + pointerDownAt = { x: event.clientX, y: event.clientY }; + if (event.button !== 0 || !lastHoverPoint || !localCursor) return; + const color = localCursor.mesh.userData.arrowMesh.material.color.getHex(); + spawnClickRipple(lastHoverPoint, color, localCursor.hand); + if (localCursor.hand) { localCursor.pressAt = performance.now(); Sound.play('click'); } + }); canvas.addEventListener('pointerup', (event) => { if (!pointerDownAt) return; const dragDistance = Math.hypot(event.clientX - pointerDownAt.x, event.clientY - pointerDownAt.y); @@ -924,7 +1081,7 @@ function bindInputEvents() { if (window.SceneBuilder && SceneBuilder.handleKey(event)) return; // Shift+U: hide every overlay and keep only the scenery (screenshot mode) if (event.key === 'U') { document.body.classList.toggle('hide-ui'); return; } - if (event.key === 'Escape') { closeInfoCard(); closeStream(); Cafe.close(); document.getElementById('mvc-store').style.display = 'none'; } + if (event.key === 'Escape') { CommunityPortals.close(); closeInfoCard(); closeStream(); Cafe.close(); document.getElementById('mvc-store').style.display = 'none'; } // M: the Genesis City map (top view of every parcel); from the 3D overhead view, M walks again if (event.key.toLowerCase() === 'm') { if (viewMode === 'map') setViewMode('explore'); else CityMap.toggle(); return; } if (event.key.toLowerCase() === 'v') { appendSystemMessage(VideoScreens.toggleSound() ? 'Video screens: sound ON (press V to mute).' : 'Video screens muted (press V for sound).'); return; } @@ -989,14 +1146,46 @@ function findLabeledAncestor(object) { return null; } +// Over something clickable the avatar becomes a pointing hand (wearables step +// aside while it points); a click presses it and leaves a ripple where it landed +function setCursorHand(record, on) { + if (!record || record.hand === on) return; + record.hand = on; + const { arrowPivot, arrowMesh, handMesh } = record.mesh.userData; + arrowPivot.children.forEach((child) => { child.visible = child === handMesh ? on : !on; }); + arrowMesh.visible = !on; +} +const clickRipples = []; +function spawnClickRipple(point, color, big) { + const ring = new THREE.Mesh(new THREE.RingGeometry(0.3, 0.42, 40), new THREE.MeshBasicMaterial({ color: new THREE.Color(color), transparent: true, opacity: 0.9, side: THREE.DoubleSide, depthWrite: false })); + ring.rotation.x = -Math.PI / 2; + ring.position.copy(point).add(new THREE.Vector3(0, 0.06, 0)); + ring.raycast = () => {}; + scene.add(ring); + clickRipples.push({ ring, start: performance.now(), size: big ? 3.2 : 1.8 }); +} +function updateClickRipples() { + for (let i = clickRipples.length - 1; i >= 0; i--) { + const ripple = clickRipples[i]; + const t = (performance.now() - ripple.start) / 650; + if (t >= 1) { scene.remove(ripple.ring); ripple.ring.geometry.dispose(); ripple.ring.material.dispose(); clickRipples.splice(i, 1); continue; } + ripple.ring.scale.setScalar(1 + t * ripple.size); + ripple.ring.material.opacity = 0.9 * (1 - t); + } +} +let lastHoverPoint = null; + function updateLocalCursorFromPointer() { - if (!pointerInsideCanvas || !pointerDirty) return; + if (!pointerInsideCanvas) { setCursorHand(localCursor, false); return; } + if (!pointerDirty) return; pointerDirty = false; raycaster.setFromCamera(pointerNDC, camera); const hit = raycaster.intersectObjects(City.pickables, true).find((candidate) => candidate.object.visible && !(candidate.object.material && candidate.object.material.opacity < 0.1)); hoveredObject = hit ? hit.object : null; const labeled = hoveredObject ? findLabeledAncestor(hoveredObject) : null; renderer.domElement.style.cursor = hit ? (labeled ? 'pointer' : 'none') : 'default'; + lastHoverPoint = hit ? hit.point.clone() : null; + setCursorHand(localCursor, Boolean(labeled)); if (labeled) { ui.tooltip.textContent = labeled.userData.label; ui.tooltip.style.display = 'block'; @@ -1700,6 +1889,7 @@ function setupNetwork(session) { // is not drawn at all: those screens stay smooth and the districts finish // building sooner, instead of the GPU drawing frames nobody can see let coverScreens = null; +let shadowFrame = 0; function worldCovered() { if (!coverScreens) coverScreens = { auth: document.getElementById('auth-screen') }; const auth = coverScreens.auth; @@ -1710,6 +1900,7 @@ function worldCovered() { function animate() { requestAnimationFrame(animate); if (worldCovered()) { clock.getDelta(); return; } + updateClickRipples(); const frameSeconds = Math.min(clock.getDelta(), 0.25); Quality.sample(frameSeconds); const deltaSeconds = Math.min(frameSeconds, 0.1); @@ -1726,7 +1917,7 @@ function animate() { updateLocalCursorFromPointer(); emitCursor(false); - const { flash, haze, inCloud } = City.updateEnvironment({ ticks: currentTicks(), weather: worldClock.weather, camera, focus: controls.target, deltaSeconds, time: elapsed }); + const { flash, haze, inCloud, sunMoved } = City.updateEnvironment({ ticks: currentTicks(), weather: worldClock.weather, camera, focus: controls.target, deltaSeconds, time: elapsed }); // Firelight: the firepits register themselves once built; 0 by day, 1 at night with a dusk/dawn ramp (window.firepits || []).forEach((pit) => { if (!pit.userData.fireLit) { pit.userData.fireLit = true; FireLights.register(pit, { radius: 11, height: 1.4, strength: 1.15 }); } }); { @@ -1773,6 +1964,7 @@ function animate() { LootSystem.update(elapsed, deltaSeconds); if (viewMode === 'explore') Prank.update(avatar.position); Interactions.update(avatar.position, !!avatar.moving); + CommunityPortals.update(avatar.position); // District titles fade out when the camera gets close, so they never block the view City.districts.forEach((district) => { const titlePosition = district.title.getWorldPosition(new THREE.Vector3()); @@ -1797,6 +1989,11 @@ function animate() { else if (emote === 'clap') pivot.scale.setScalar(1 + Math.abs(Math.sin(elapsed * 12)) * 0.15); else if (emote === 'think') pivot.rotation.z = 0.25; else if (emote === 'sit') pivot.position.y = 1.2; + // Click: the hand dips and squashes like a finger pressing a mouse button + if (record.pressAt) { + const press = (performance.now() - record.pressAt) / 220; + if (press < 1) { const k = Math.sin(Math.PI * press); pivot.position.y -= 0.45 * k; pivot.rotation.x = -0.4 * k; pivot.scale.set(1 + 0.08 * k, 1 - 0.2 * k, 1); } else record.pressAt = 0; + } projectToScreen(record); }); @@ -1822,6 +2019,12 @@ function animate() { camera.position.y = cameraGround + 0.6; } } + // Shadows are redrawn when the sun steps along with the player, and every + // third frame for things that move (instead of every single frame) + shadowFrame += 1; + if (sunMoved || shadowFrame % 3 === 0) renderer.shadowMap.needsUpdate = true; + camera.updateMatrixWorld(); + TreeLOD.update(); renderer.render(scene, camera); VideoScreens.update(camera, avatar.position, () => City.collidablesAt(avatar.position.x, avatar.position.z)); if (restoreCamera) camera.position.copy(restoreCamera); @@ -2032,6 +2235,7 @@ Promise.all([launched, universeReady]).then(([launch]) => { const session = launch.session; if (Auth.hasServer) socket = io({ auth: { token: session.token, lobby: lobbyId } }); setupNetwork(session); + CommunityPortals.connect(socket, { system: appendSystemMessage }); enterFromLauncher(launch.entry); // First time only: customize the cursor before entering (Decentraland-style). // A look saved in this browser or in the account (server) skips it. diff --git a/public/maps/districts.json b/public/maps/districts.json index 047bcfc..3eba6cf 100644 --- a/public/maps/districts.json +++ b/public/maps/districts.json @@ -1 +1 @@ -{"_how_to":"Every district map in one file (fewer files to download). Keys are the 'file' names used in worlds.json. A separate public/maps/ still works and wins over this bundle, so new maps can be added either way.","maps":{"map_agile_board.json":{"themeName":"Scrum & Agile Open Space","backgroundColor":"#e9edf2","blocks":[{"type":"office_floor","position":[0,-0.5,0],"scale":[30,1,30],"color":"#c8d0da","label":"Agile Open Space"},{"type":"kanban_board_todo","position":[-8,3,-12],"scale":[6,5,0.3],"color":"#ffffff","label":"Kanban: To Do"},{"type":"kanban_board_doing","position":[0,3,-12],"scale":[6,5,0.3],"color":"#ffffff","label":"Kanban: In Progress"},{"type":"kanban_board_done","position":[8,3,-12],"scale":[6,5,0.3],"color":"#ffffff","label":"Kanban: Done"},{"type":"sticky_note","position":[-9.5,4.2,-11.75],"scale":[1.2,1.2,0.1],"color":"#ffd43b","label":"Implement /world command"},{"type":"sticky_note","position":[-7.5,4.2,-11.75],"scale":[1.2,1.2,0.1],"color":"#ff8787","label":"Proximity voice chat (WebRTC)"},{"type":"sticky_note","position":[-8.5,2.5,-11.75],"scale":[1.2,1.2,0.1],"color":"#74c0fc","label":"GitHub API integration"},{"type":"sticky_note","position":[-1,4.2,-11.75],"scale":[1.2,1.2,0.1],"color":"#8ce99a","label":"Chat bubbles over cursors"},{"type":"sticky_note","position":[1,2.5,-11.75],"scale":[1.2,1.2,0.1],"color":"#ffd43b","label":"Fix broken map JSONs"},{"type":"sticky_note","position":[7,4.2,-11.75],"scale":[1.2,1.2,0.1],"color":"#b197fc","label":"Socket.io real-time sync"},{"type":"sticky_note","position":[9,4.2,-11.75],"scale":[1.2,1.2,0.1],"color":"#8ce99a","label":"3D cursor meshes"},{"type":"standup_table","position":[0,0.5,2],"scale":[8,1,4],"color":"#4dabf7","label":"Daily Stand-up Table"},{"type":"retro_corner","position":[10,0.3,8],"scale":[5,0.6,5],"color":"#ff922b","label":"Sprint Retrospective Corner"},{"type":"burndown_screen","position":[-12,2.5,4],"scale":[0.3,4,7],"color":"#212529","label":"Sprint Burndown Chart"}]},"map_apple_house.json":{"themeName":"House of MAC - Apple Store Experience","backgroundColor":"#f5f5f7","blocks":[{"type":"aluminum_floor","position":[0,-0.2,0],"scale":[52,0.4,52],"color":"#e5e5ea","label":"Apple Plaza Ground"},{"type":"apple_store","position":[0,0,-4],"scale":[30,9,22],"color":"#f5f5f7","label":"House of MAC - Apple Store"},{"type":"mac_flagship","position":[0,0,-4],"scale":[34,29,26],"color":"#d8c7ad","label":"House of MAC"},{"type":"macos_interactive_terminal","position":[0,1,12],"scale":[6,2,1],"color":"#1d1d1f","label":"Software Integration Node (Xcode Mini-Game)"},{"type":"pocket_show_stage","position":[14,0.3,16],"scale":[10,0.6,6],"color":"#ff3b30","label":"Live Music Virtual Stage"},{"type":"apple_billboard","position":[-18,5,18],"scale":[8,10,0.3],"color":"#000000","label":"Mac|Apple personal computers","image":"macbook-air.jpg"},{"type":"apple_billboard","position":[-8,5,22],"scale":[8,10,0.3],"color":"#f5f5f7","label":"macOS|Apple desktop operating system","dark":false,"image":"macos.jpg"},{"type":"apple_billboard","position":[22,5,-20],"scale":[8,10,0.3],"color":"#000000","label":"MacBook Air|Built to go places.","image":"macbook-air-places.jpg"},{"type":"apple_billboard","position":[-22,5,-20],"scale":[8,10,0.3],"color":"#000000","label":"M6|The next generation of Apple silicon.","image":"mac-m6.jpg"},{"type":"plant","position":[20,1,6],"scale":[1.8,2.2,1.8],"color":"#2f9e44"},{"type":"bench","position":[6,0,20],"scale":[2.4,1,0.8],"color":"#d4b48c"},{"type":"apple_video_billboard","position":[18,6,20],"scale":[12,12,0.5],"color":"#000000","label":"Apple on YouTube - official films and ads"},{"type":"apple_billboard","position":[-24,5,0],"scale":[8,10,0.3],"color":"#000000","label":"Apple Intelligence|On Mac, iPhone, iPad, Apple Watch and Vision Pro.","image":"apple-intelligence.jpg"},{"type":"apple_billboard","position":[24,5,0],"scale":[8,10,0.3],"color":"#000000","label":"Mac|MacBook Air, iMac and MacBook Pro.","image":"mac-lineup.jpg"},{"type":"apple_billboard","position":[-14,5,-24],"scale":[8,10,0.3],"color":"#000000","label":"iMac|No artificial colors.","image":"imac-colors.jpg"},{"type":"apple_billboard","position":[14,5,-24],"scale":[8,10,0.3],"color":"#000000","label":"macOS Tahoe|Fresh faced. Timelessly Mac.","image":"macos-tahoe.jpg"},{"type":"apple_billboard","position":[-26,5,10],"scale":[12,12,0.3],"color":"#000000","label":"MacBook Neo|Big value for small business.","image":"macbook-neo.jpg"},{"type":"apple_billboard","position":[26,5,10],"scale":[12,12,0.3],"color":"#000000","label":"Apple M1|Small chip. Giant leap.","image":"m1.jpg"},{"type":"apple_billboard","position":[4,5,26],"scale":[12,12,0.3],"color":"#000000","label":"macOS apps|Finder, Safari, Music, Messages and more","image":"mac-apps.jpg"},{"type":"macos_section","position":[0,0,-23],"scale":[16,6.5,5],"rotationY":3.141592653589793,"label":"macOS section","banners":[{"file":"macos-tahoe.jpg","title":"macOS Tahoe: Fresh faced. Timelessly Mac."},{"file":"macos-finder-apps.jpg","title":"macOS: every app in Finder's Applications folder"},{"file":"macos-creator-studio.jpg","title":"Apple Creator Studio: All yours for the making."},{"file":"macos-logic-packs.jpg","title":"Logic Pro: sound, artist and instrument packs"},{"file":"macos-logic-pro.jpg","title":"Logic Pro for iPad: get hands on with your music, anywhere"}]}]},"map_azure_cloud.json":{"themeName":"The Azure Cloud Core","backgroundColor":"#0b1d33","blocks":[{"type":"azure_upload_beam","position":[0,0.48,0],"scale":[5,13,5],"color":"#59d2ff"},{"type":"azure_cloud_shell","position":[0,23,0],"scale":[50,26,50],"color":"#3fb6ff"},{"type":"azure_core_levels","position":[0,0,0],"scale":[28,34,28],"color":"#3c8ee0"},{"type":"azure_storage_lounge","position":[0,23,0],"scale":[21,4,21],"color":"#0d3a72"},{"type":"azure_voxel_zone","position":[0,33,0],"scale":[14,2,14],"color":"#e9f5ff"},{"type":"azure_name_sign","position":[8.5,0.48,0],"scale":[7,3,0.4],"color":"#0d4c8f","rotationY":1.5708},{"type":"lamp_post","position":[8.5,3,5],"scale":[0.4,6,0.4],"color":"#bfe9ff"},{"type":"lamp_post","position":[8.5,3,-5],"scale":[0.4,6,0.4],"color":"#bfe9ff"},{"type":"bench","position":[12,0.48,6],"scale":[2.4,1,0.8],"color":"#7a8fa8","rotationY":-1.5708},{"type":"bench","position":[12,0.48,-6],"scale":[2.4,1,0.8],"color":"#7a8fa8","rotationY":-1.5708},{"type":"round_tree","position":[27,3.5,27],"scale":[4,7,4],"color":"#2f7e5a"},{"type":"round_tree","position":[27,3.5,-27],"scale":[4,7,4],"color":"#2f7e5a"},{"type":"round_tree","position":[-27,3.5,27],"scale":[4,7,4],"color":"#2f7e5a"},{"type":"round_tree","position":[-27,3.5,-27],"scale":[4,7,4],"color":"#2f7e5a"},{"type":"round_tree","position":[28,3,14],"scale":[3.5,6,3.5],"color":"#2f7e5a"},{"type":"round_tree","position":[28,3,-14],"scale":[3.5,6,3.5],"color":"#2f7e5a"}]},"map_beach.json":{"themeName":"Tropical Beach","backgroundColor":"#74c0fc","blocks":[{"type":"beach_arena","position":[0,0,0],"scale":[54,6,54],"color":"#f2dca2","label":"Tropical Beach"}]},"map_candlestick_maze.json":{"themeName":"The Candlestick Maze","backgroundColor":"#0b0f16","blocks":[{"type":"candle_maze","position":[0,0,0],"scale":[96,6,96],"color":"#15181d","label":"The Candlestick Maze"},{"type":"lamp_post","position":[-46,3,-30],"scale":[0.4,6,0.4],"color":"#bfefff"},{"type":"lamp_post","position":[-46,3,-20],"scale":[0.4,6,0.4],"color":"#bfefff"},{"type":"lamp_post","position":[-46,3,22],"scale":[0.4,6,0.4],"color":"#bfefff"},{"type":"lamp_post","position":[-46,3,32],"scale":[0.4,6,0.4],"color":"#bfefff"}]},"map_cyberpunk.json":{"themeName":"The Cyberpunk Repository","backgroundColor":"#0d0211","blocks":[{"type":"floor","position":[0,-0.5,0],"scale":[30,1,30],"color":"#1a0826"},{"type":"neon_pillar","position":[-5,4,-5],"scale":[1,8,1],"color":"#00ffcc","label":"Core API"},{"type":"neon_pillar","position":[5,4,-5],"scale":[1,8,1],"color":"#ff007f","label":"Webhooks"},{"type":"server_rack","position":[0,2,-10],"scale":[6,4,2],"color":"#390099"}]},"map_debug_dungeon.json":{"themeName":"The Debug Dungeon - Labyrinth of Bugs","backgroundColor":"#1a1520","blocks":[{"type":"dungeon_floor","position":[0,-0.25,0],"scale":[116,0.5,116],"color":"#2a2530","label":"Debug Dungeon Floor"},{"type":"dungeon_gate","position":[0,4,55],"scale":[20,8,2],"color":"#4e4452","label":"THE DEBUG DUNGEON - Labyrinth of Bugs"},{"type":"dungeon_wall","position":[0,4,-55],"scale":[116,8,2],"color":"#6d6478"},{"type":"dungeon_wall","position":[-57,4,0],"scale":[2,8,112],"color":"#6d6478"},{"type":"dungeon_wall","position":[57,4,0],"scale":[2,8,112],"color":"#6d6478"},{"type":"dungeon_wall","position":[-35,4,40],"scale":[40,8,2],"color":"#6d6478"},{"type":"dungeon_wall","position":[35,4,40],"scale":[40,8,2],"color":"#6d6478"},{"type":"dungeon_wall","position":[-20,4,20],"scale":[2,8,40],"color":"#6d6478"},{"type":"dungeon_wall","position":[20,4,10],"scale":[2,8,40],"color":"#6d6478"},{"type":"dungeon_wall","position":[0,4,-10],"scale":[50,8,2],"color":"#6d6478"},{"type":"dungeon_wall","position":[-40,4,0],"scale":[2,8,40],"color":"#6d6478"},{"type":"dungeon_wall","position":[40,4,-20],"scale":[2,8,40],"color":"#6d6478"},{"type":"dungeon_wall","position":[-25,4,-35],"scale":[30,8,2],"color":"#6d6478"},{"type":"dungeon_wall","position":[25,4,-35],"scale":[30,8,2],"color":"#6d6478"},{"type":"dungeon_wall","position":[0,4,-25],"scale":[2,8,20],"color":"#6d6478"},{"type":"dungeon_wall","position":[-45,4,25],"scale":[24,8,2],"color":"#6d6478"},{"type":"dungeon_wall","position":[45,4,20],"scale":[24,8,2],"color":"#6d6478"},{"type":"dungeon_torch","position":[-50,2,48],"scale":[0.5,4,0.5],"color":"#ff9800"},{"type":"dungeon_torch","position":[50,2,48],"scale":[0.5,4,0.5],"color":"#ff9800"},{"type":"dungeon_torch","position":[-10,2,-5],"scale":[0.5,4,0.5],"color":"#ff9800"},{"type":"dungeon_torch","position":[10,2,30],"scale":[0.5,4,0.5],"color":"#ff9800"},{"type":"dungeon_torch","position":[-30,2,-48],"scale":[0.5,4,0.5],"color":"#ff9800"},{"type":"dungeon_torch","position":[30,2,-48],"scale":[0.5,4,0.5],"color":"#ff9800"},{"type":"dungeon_torch","position":[48,2,-5],"scale":[0.5,4,0.5],"color":"#ff9800"},{"type":"dungeon_torch","position":[-48,2,10],"scale":[0.5,4,0.5],"color":"#ff9800"},{"type":"git_commit_hammer","position":[0,1,46],"scale":[2,2,2],"color":"#ffd54f","label":"Git Commit Hammer - click to equip"},{"type":"bug_monster_memory_leak","position":[-30,1.5,28],"scale":[3,3,3],"color":"#8e24aa","label":"Memory Leak","id":"leak1","hp":120,"weakness":"gc"},{"type":"bug_monster_memory_leak","position":[45,1.5,-45],"scale":[3,3,3],"color":"#8e24aa","label":"Memory Leak","id":"leak2","hp":120,"weakness":"gc"},{"type":"bug_monster_null_pointer","position":[30,1.5,25],"scale":[3,3,3],"color":"#eceff1","label":"NullPointerException","id":"npe1","hp":80,"weakness":"try-catch"},{"type":"bug_monster_null_pointer","position":[-48,1.5,-20],"scale":[3,3,3],"color":"#eceff1","label":"NullPointerException","id":"npe2","hp":80,"weakness":"try-catch"},{"type":"bug_monster_infinite_loop","position":[10,1.5,-20],"scale":[3,3,3],"color":"#00bcd4","label":"Infinite Loop","id":"loop1","hp":100,"weakness":"break"},{"type":"bug_monster_race_condition","position":[-30,1.5,-15],"scale":[3,3,3],"color":"#ff5722","label":"Race Condition","id":"race1","hp":90,"weakness":"mutex"},{"type":"bug_monster_off_by_one","position":[30,1.5,-5],"scale":[3,3,3],"color":"#cddc39","label":"Off-By-One Error","id":"obo1","hp":60,"weakness":"unit-test"},{"type":"bug_monster_blue_screen","position":[0,5.0,-42],"scale":[8,10,6],"color":"#0a3ea8","label":"Blue Screen of Death (Boss)","id":"bsod","hp":400,"weakness":"reboot"},{"type":"scoreboard","position":[-50,4,52],"scale":[10,5,0.4],"color":"#212121","label":"Bug Bounty Leaderboard"}]},"map_equalizer.json":{"themeName":"Graphic Equalizer","backgroundColor":"#0d0f1a","blocks":[{"type":"equalizer_tower","position":[0,0,-4],"scale":[14,34,14],"color":"#4dabf7","label":"Graphic Equalizer · The Tower of Icons"},{"type":"round_tree","position":[22.9,3.5,3.1],"scale":[4,7,4],"color":"#2f9e44"},{"type":"lamp_post","position":[13.2,3,9.6],"scale":[0.4,6,0.4],"color":"#fff3c4"},{"type":"round_tree","position":[5.3,3.5,19.4],"scale":[4,7,4],"color":"#2f9e44"},{"type":"lamp_post","position":[-5.2,3,14.3],"scale":[0.4,6,0.4],"color":"#fff3c4"},{"type":"round_tree","position":[-17.6,3.5,12.3],"scale":[4,7,4],"color":"#2f9e44"},{"type":"lamp_post","position":[-18.4,3,0.6],"scale":[0.4,6,0.4],"color":"#fff3c4"},{"type":"round_tree","position":[-22.9,3.5,-11.1],"scale":[4,7,4],"color":"#2f9e44"},{"type":"lamp_post","position":[-13.2,3,-17.6],"scale":[0.4,6,0.4],"color":"#fff3c4"},{"type":"round_tree","position":[-5.3,3.5,-27.4],"scale":[4,7,4],"color":"#2f9e44"},{"type":"lamp_post","position":[5.2,3,-22.3],"scale":[0.4,6,0.4],"color":"#fff3c4"},{"type":"round_tree","position":[17.6,3.5,-20.3],"scale":[4,7,4],"color":"#2f9e44"},{"type":"lamp_post","position":[18.4,3,-8.6],"scale":[0.4,6,0.4],"color":"#fff3c4"}]},"map_fight_arena.json":{"themeName":"The Pit Arena","backgroundColor":"#101014","blocks":[{"type":"pit_arena","position":[0,0,0],"scale":[72,12,72],"color":"#55575a","label":"The Pit Arena","rotationY":1.5708},{"type":"round_tree","position":[31,3.5,31],"scale":[4,7,4],"color":"#2f6e34"},{"type":"round_tree","position":[31,3.5,-31],"scale":[4,7,4],"color":"#2f6e34"},{"type":"round_tree","position":[-31,3.5,31],"scale":[4,7,4],"color":"#2f6e34"},{"type":"round_tree","position":[-31,3.5,-31],"scale":[4,7,4],"color":"#2f6e34"},{"type":"round_tree","position":[-33,3.5,0],"scale":[4,7,4],"color":"#2f6e34"},{"type":"lamp_post","position":[33.5,3,8.5],"scale":[0.4,6,0.4],"color":"#ffd8c4"},{"type":"lamp_post","position":[33.5,3,-8.5],"scale":[0.4,6,0.4],"color":"#ffd8c4"},{"type":"lamp_post","position":[27,3,22],"scale":[0.4,6,0.4],"color":"#ffd8c4"},{"type":"lamp_post","position":[27,3,-22],"scale":[0.4,6,0.4],"color":"#ffd8c4"}]},"map_game_room.json":{"themeName":"Arcade & RGB Game Room","backgroundColor":"#0c0d14","blocks":[{"type":"carpet_floor","position":[0,-0.5,0],"scale":[20,1,20],"color":"#111424","label":"Arcade Carpet"},{"type":"pool_table_base","position":[0,0.4,0],"scale":[4,0.8,7],"color":"#44bd32","label":"Billiards Node"},{"type":"pool_table_edge","position":[0,0.9,0],"scale":[4.4,0.3,7.4],"color":"#8c7ae6"},{"type":"arcade_cabinet_1","position":[-8,2,-6],"scale":[2,4,2],"color":"#00a8ff","label":"Pac-Man Git"},{"type":"arcade_screen_1","position":[-8,2.5,-4.95],"scale":[1.6,1.2,0.1],"color":"#fbc531"},{"type":"arcade_cabinet_2","position":[-5,2,-6],"scale":[2,4,2],"color":"#e84118","label":"Doom 3D Web"},{"type":"battlestation_desk","position":[7,0.6,4],"scale":[4,1.2,2],"color":"#2f3640"},{"type":"rgb_monitor","position":[7,1.6,4],"scale":[3,1,0.2],"color":"#00ffcc","label":"UltraWide Dev Station"}]},"map_gamer_district.json":{"themeName":"Gamer District","backgroundColor":"#2b2140","blocks":[{"type":"arena_floor","position":[0,-0.2,0],"scale":[116,0.4,116],"color":"#2b2140","label":"Gamer District"},{"type":"gravity_tower","position":[0,0,-10],"scale":[20,48,20],"color":"#9775fa","label":"Gravity Flip tower"},{"type":"arcade_cabinet_1","position":[-40,2,-30],"scale":[2,4,2],"color":"#00a8ff","label":"Pac-Git"},{"type":"arcade_cabinet_2","position":[-34,2,-30],"scale":[2,4,2],"color":"#e84118","label":"Doom Web"},{"type":"arcade_cabinet_3","position":[-28,2,-30],"scale":[2,4,2],"color":"#fbc531","label":"Tetris Merge"},{"type":"neon_pillar","position":[36,4,-30],"scale":[1,8,1],"color":"#00ffcc","label":"Neon"},{"type":"neon_pillar","position":[44,4,-30],"scale":[1,8,1],"color":"#ff007f","label":"Neon"},{"type":"mini_game_arena","position":[34,0,26],"scale":[22,1,22],"color":"#7a5cff","label":"Arena"},{"type":"battlestation_desk","position":[-36,0.6,20],"scale":[4,1.2,2],"color":"#2f3640","label":"LAN party station"},{"type":"battlestation_desk","position":[-28,0.6,20],"scale":[4,1.2,2],"color":"#2f3640","label":"LAN party station"},{"type":"metro_station","position":[0,0,46],"scale":[10,1,4],"color":"#e03131","label":"Gamer District Station"}]},"map_gamimall.json":{"themeName":"Meta GamiMall Multi-Level E-Commerce Center","backgroundColor":"#f4f6f9","blocks":[{"type":"mall_ground_floor","position":[0,-0.5,0],"scale":[40,1,40],"color":"#ffffff","label":"GamiMall Main Entrance Lobby"},{"type":"wearable_shop_alpha","position":[-10,2.5,-10],"scale":[10,5,8],"color":"#000000","label":"Crypto Wearables & Avatar Clothing Store"},{"type":"wearable_shop_beta","position":[10,2.5,-10],"scale":[10,5,8],"color":"#ff007f","label":"Digital Sneaker Boutique (NFT Drops)"},{"type":"second_floor_balcony","position":[0,5.25,-10],"scale":[36,0.5,8],"color":"#dfe4ea","label":"Upper Floor Shopping Terrace"},{"type":"central_escalator_block","position":[0,2.5,0],"scale":[3,5,8],"color":"#747d8c"}]},"map_genesis_plaza.json":{"themeName":"Genesis Plaza & Decentraland Districts","backgroundColor":"#110f1a","blocks":[{"type":"district_ground","position":[0,-0.25,0],"scale":[40,0.5,40],"color":"#1e1b2e"},{"type":"genesis_plaza","position":[0,0.1,0],"scale":[8,0.4,8],"color":"#2ecc71","label":"Genesis Plaza (0,0) - Default Spawn"},{"type":"center_monolith","position":[0,3,0],"scale":[1.5,6,1.5],"color":"#27ae60"},{"type":"road_north","position":[0,0.05,-12],"scale":[3,0.2,16],"color":"#bdc3c7","label":"North Road - Public Street"},{"type":"road_south","position":[0,0.05,12],"scale":[3,0.2,16],"color":"#bdc3c7","label":"South Road - Public Street"},{"type":"road_east","position":[12,0.05,0],"scale":[16,0.2,3],"color":"#bdc3c7","label":"East Road - Public Street"},{"type":"road_west","position":[-12,0.05,0],"scale":[16,0.2,3],"color":"#bdc3c7","label":"West Road - Public Street"},{"type":"district_vegas","position":[-12,1,-12],"scale":[8,2,8],"color":"#9b59b6","label":"Vegas City District - Casinos & Poker"},{"type":"district_fashion","position":[12,2,-12],"scale":[8,4,8],"color":"#8e44ad","label":"Fashion Street District - Luxury Brands"},{"type":"district_aetheria","position":[-12,3,12],"scale":[8,6,8],"color":"#6c5ce7","label":"Aetheria District - Cyberpunk Dev"},{"type":"private_land_github","position":[12,1.5,12],"scale":[8,3,8],"color":"#34495e","label":"Private Lot: GitHub Enterprise HQ"},{"type":"private_land_vercel","position":[6,0.8,6],"scale":[4,1.6,4],"color":"#2c3e50","label":"Private Lot: Vercel Deploy Zone"},{"type":"private_land_stack","position":[-6,0.5,-6],"scale":[4,1,4],"color":"#212f3d","label":"Private Lot: StackOverflow Lab"}]},"map_glass_cube.json":{"themeName":"The Glass Cube","backgroundColor":"#dfe7ef","blocks":[{"type":"glass_cube_store","position":[0,0,0],"scale":[52,10,52],"label":"The Glass Cube","hole":10}]},"map_glass_villas.json":{"themeName":"Aero-Glass Oasis - Floating Glass Villas","backgroundColor":"#74c0fc","blocks":[{"type":"water_mirror","position":[0,-0.3,0],"scale":[118,0.3,118],"color":"#74c0fc","label":"Water mirror"},{"type":"glass_villa","position":[-34,0,-30],"scale":[14,8,10],"color":"#1c7ed6","label":"Glass Villa 1"},{"type":"glass_villa","position":[10,0,-36],"scale":[14,8,10],"color":"#ae3ec9","label":"Glass Villa 2"},{"type":"glass_villa","position":[40,0,-6],"scale":[14,8,10],"color":"#0ca678","label":"Glass Villa 3"},{"type":"glass_villa","position":[-20,0,12],"scale":[14,8,10],"color":"#f76707","label":"Glass Villa 4"},{"type":"glass_villa","position":[22,0,32],"scale":[14,8,10],"color":"#e64980","label":"Glass Villa 5"},{"type":"glass_villa","position":[-40,0,40],"scale":[14,8,10],"color":"#1098ad","label":"Glass Villa 6"},{"type":"arc_stepping_walkway","position":[0,0.15,0],"scale":[3,0.2,110],"color":"#f8f9fa","label":"Floating walkway"},{"type":"arc_stepping_walkway","position":[0,0.15,0],"scale":[110,0.2,3],"color":"#f8f9fa","label":"Floating walkway"},{"type":"metro_station","position":[0,0.2,50],"scale":[10,1,4],"color":"#4dabf7","label":"Aero-Glass Oasis Station"}]},"map_green_tech.json":{"themeName":"Green-Tech Sandbox - Eco-Digital Gamification","backgroundColor":"#d8f3dc","blocks":[{"type":"green_floor","position":[0,-0.25,0],"scale":[116,0.5,116],"color":"#8fbf5a","label":"Green-Tech Sandbox Meadow"},{"type":"solar_array","position":[-30,0.5,-30],"scale":[44,1,36],"color":"#0d2b52","label":"Solar Farm - 2.4 MW of clean power for CI pipelines"},{"type":"wind_turbine","position":[-48,15,20],"scale":[2,30,2],"color":"#ffffff","label":"Wind Turbine - powering green builds"},{"type":"wind_turbine","position":[-48,15,40],"scale":[2,30,2],"color":"#ffffff","label":"Wind Turbine - powering green builds"},{"type":"wind_turbine","position":[48,15,-48],"scale":[2,30,2],"color":"#ffffff","label":"Wind Turbine - powering green builds"},{"type":"wind_turbine","position":[30,15,-48],"scale":[2,30,2],"color":"#ffffff","label":"Wind Turbine - powering green builds"},{"type":"wind_turbine","position":[12,15,-48],"scale":[2,30,2],"color":"#ffffff","label":"Wind Turbine - powering green builds"},{"type":"green_data_center","position":[25,6,-12],"scale":[34,12,20],"color":"#2b8a3e","label":"Green Data Center - liquid cooled, living roof"},{"type":"greenhouse","position":[-22,3,22],"scale":[16,6,20],"color":"#d3f9d8","label":"Vertical Farm Greenhouse"},{"type":"energy_meter","position":[5,5,40],"scale":[4,10,1],"color":"#212529","label":"Renewable Energy Meter - plant trees with /plant"},{"type":"efficiency_lab","position":[40,4,25],"scale":[1.5,8,18],"color":"#343a40","label":"Code Efficiency Lab - greener algorithms use less energy"},{"type":"ev_chargers","position":[18,0,50],"scale":[24,1,8],"color":"#495057","label":"EV Charging Station"},{"type":"battery_bank","position":[45,1.5,-30],"scale":[16,3,3],"color":"#f1f3f5","label":"Grid Battery Storage"},{"type":"bike_path_walkway","position":[0,0.03,10],"scale":[4,0.06,100],"color":"#6c8f3c","label":"Bike Path"},{"type":"water","position":[-5,-0.02,5],"scale":[16,0.12,12],"color":"#4dabf7","label":"Rain Water Pond"},{"type":"planting_zone","position":[10,0.02,22],"scale":[22,0.04,18],"color":"#7c5e3c","label":"Community Planting Zone - type /plant with your cursor here"}]},"map_holo_workspace.json":{"themeName":"Holo Workspace - Future of Work","backgroundColor":"#e7ecff","blocks":[{"type":"gradient_floor","position":[0,-0.2,0],"scale":[52,0.4,52],"color":"#c4d7ff","label":"Holo Workspace"},{"type":"glass_wall_panel","position":[0,4,-25.5],"scale":[50,8,0.3],"color":"#a5d8ff"},{"type":"glass_wall_panel","position":[-25.5,4,0],"scale":[0.3,8,50],"color":"#a5d8ff"},{"type":"glass_table","position":[0,0.75,-8],"scale":[12,1.5,3],"color":"#74c0fc","label":"Holo Team Table"},{"type":"glass_table","position":[-14,0.75,8],"scale":[3,1.5,10],"color":"#b197fc","label":"Focus Table"},{"type":"round_sofa","position":[11,0.6,10],"scale":[9,1.2,9],"color":"#1c7ed6","label":"Lounge"},{"type":"commit_board","position":[0,6,-25],"scale":[12,6,0.4],"color":"#212529","label":"Commit Leaderboard"},{"type":"plant","position":[20,1,-20],"scale":[1.8,2.2,1.8],"color":"#2f9e44"},{"type":"plant","position":[-20,1,20],"scale":[1.8,2.2,1.8],"color":"#2f9e44"},{"type":"kitchen_counter","position":[20,0.8,-4],"scale":[1.5,1.6,6],"color":"#ced4da","label":"Coffee Station"}]},"map_horizon_somnium.json":{"themeName":"Horizon Social Hub & Somnium Space Oasis","backgroundColor":"#05050a","blocks":[{"type":"somnium_persistent_ground","position":[0,-0.5,0],"scale":[26,0.6,26],"color":"#111625","label":"Somnium VR-First Persistent Plot"},{"type":"horizon_meeting_podium","position":[0,0.4,-6],"scale":[8,0.8,4],"color":"#2ecc71","label":"Meta Horizon Corporate Keynote Stage"},{"type":"social_lounge_circle","position":[0,0.2,6],"scale":[6,0.4,6],"color":"#3498db","label":"Avatar Interaction Ring"},{"type":"ai_avatar_node","position":[-8,2,0],"scale":[1.5,4,1.5],"color":"#e74c3c","label":"AI Companion Integration Anchor"}]},"map_hotel.json":{"themeName":"Multiverse Hotel","backgroundColor":"#2b2140","blocks":[{"type":"grand_hotel","position":[0,0,-10],"scale":[40,64,36],"color":"#1c2a5a","label":"Multiverse Hotel"},{"type":"mini_hotel","position":[-40,0,30],"scale":[15,9,15],"color":"#63c5c9","label":"Capsule pods","name":"Capsule Pods"},{"type":"mini_hotel","position":[40,0,30],"scale":[14,12,14],"color":"#2b2d5a","label":"Neon cube hotel","variant":"cube","name":"Neon Cube Hotel"},{"type":"cowork_plaza","position":[0,0,42],"scale":[18,1,18],"seed":3},{"type":"supertree","position":[-30,0,0],"scale":[7,16,7],"color":"#3f8f3a"},{"type":"supertree","position":[30,0,0],"scale":[7,16,7],"color":"#3f8f3a"},{"type":"round_tree","position":[-24,3.5,40],"scale":[4,7,4],"color":"#e03131"},{"type":"round_tree","position":[24,3.5,40],"scale":[4,7,4],"color":"#f06595"},{"type":"lamp_post","position":[-12,3,30],"scale":[0.4,6,0.4],"color":"#fff3c4"},{"type":"lamp_post","position":[12,3,30],"scale":[0.4,6,0.4],"color":"#fff3c4"}]},"map_keynote_arena.json":{"themeName":"Keynote Amphitheater - Permanent Tech Event Arena","backgroundColor":"#14141f","blocks":[{"type":"amphitheater_floor","position":[0,-0.25,0],"scale":[116,0.5,116],"color":"#2b2d42","label":"Keynote Arena Grounds"},{"type":"amphitheater_seats","position":[0,0,10],"scale":[90,12,60],"color":"#3d405b","label":"Amphitheater Seating (2,000 devs)"},{"type":"keynote_stage","position":[0,1,-30],"scale":[40,2,14],"color":"#ef233c","label":"Main Keynote Stage"},{"type":"keynote_screen","position":[0,14,-40],"scale":[48,20,1],"color":"#111111","label":"Live Keynote Screen - click or /watch to open the stream"},{"type":"merch_booth","position":[-45,2,40],"scale":[10,4,8],"color":"#ffb703","label":"Dev Wearables Booth - click to try on a hoodie, mug, cap or headphones"},{"type":"merch_booth","position":[45,2,40],"scale":[10,4,8],"color":"#219ebc","label":"Infinite Coffee Booth - click for a never-ending mug"},{"type":"spotlight_tower","position":[-28,10,-20],"scale":[2,20,2],"color":"#edf2f4"},{"type":"spotlight_tower","position":[28,10,-20],"scale":[2,20,2],"color":"#edf2f4"},{"type":"mini_hotel","position":[-44.0,0,-44.0],"scale":[14,12,14],"color":"#63c5c9","label":"Mini Hotel","variant":"cube","name":"Keynote Amphitheater Inn"}]},"map_lobby.json":{"themeName":"Main Headquarters Lobby","backgroundColor":"#1e1e24","blocks":[{"type":"floor","position":[0,-0.5,0],"scale":[30,1,30],"color":"#2d2d34"},{"type":"desk","position":[0,0.5,0],"scale":[6,1,3],"color":"#4a4a5a","label":"Central Desk"},{"type":"wall","position":[-15,5,0],"scale":[1,10,30],"color":"#3d3d45"},{"type":"wall","position":[15,5,0],"scale":[1,10,30],"color":"#3d3d45"},{"type":"wall","position":[0,5,-15],"scale":[30,10,1],"color":"#3d3d45"},{"type":"wayfinding_board","position":[0,6,-14.3],"scale":[12,3,0.3],"color":"#1877f2","label":"GitHub Multiverse HQ - Main Lobby"},{"type":"rug","position":[0,0.02,5],"scale":[12,0.04,7],"color":"#3d3d6b"},{"type":"sofa","position":[-6,0.6,7],"scale":[5,1.2,2],"color":"#5f27cd","label":"Pair Programming Lounge"},{"type":"sofa","position":[6,0.6,7],"scale":[5,1.2,2],"color":"#5f27cd","label":"Pair Programming Lounge"},{"type":"kitchen_counter","position":[11,0.8,-8],"scale":[1.5,1.6,6],"color":"#c8a27a","label":"Infinite Coffee Bar"},{"type":"plant","position":[-12,1,-12],"scale":[1.6,2,1.6],"color":"#2e7d32"},{"type":"plant","position":[12,1,12],"scale":[1.6,2,1.6],"color":"#2e7d32"},{"type":"plant","position":[-12,1,12],"scale":[1.6,2,1.6],"color":"#2e7d32"},{"type":"plant","position":[12,1,-2],"scale":[1.6,2,1.6],"color":"#2e7d32"}]},"map_metablock_estates.json":{"themeName":"MetaBlock Estates","backgroundColor":"#101014","blocks":[{"type":"mb_streetscape","position":[0,0,0],"scale":[220,1,160],"color":"#5f8f3a","label":"MetaBlock Estates"},{"type":"mb_hub","position":[0,0,0],"scale":[30,14,20],"color":"#ecebe7","label":"Brokers Hub"},{"type":"mb_mansion","position":[30,0,-50],"scale":[18,7.6,13],"color":"#ecebe7","label":"Casa Cantilever","variant":"cantilever","id":"casa_cantilever","yard":14.5,"rotationY":-1.5707963},{"type":"mb_mansion","position":[-30,0,-50],"scale":[18,7.6,13],"color":"#a06c42","label":"Slat House","variant":"slat","id":"slat_house","yard":14.5,"rotationY":1.5707963},{"type":"mb_mansion","position":[30,0,54],"scale":[18,10,13],"color":"#f4f2ee","label":"Sky Terrace House","variant":"sky","id":"sky_terrace","yard":14.5,"rotationY":-1.5707963},{"type":"mb_totem","position":[8.0,0.15,-50],"scale":[1,2.5,0.4],"color":"#1d1f22","label":"Casa Cantilever package","house":"casa_cantilever","rotationY":-1.5707963},{"type":"mb_totem","position":[-8.0,0.15,-50],"scale":[1,2.5,0.4],"color":"#1d1f22","label":"Slat House package","house":"slat_house","rotationY":1.5707963},{"type":"mb_totem","position":[8.0,0.15,54],"scale":[1,2.5,0.4],"color":"#1d1f22","label":"Sky Terrace House package","house":"sky_terrace","rotationY":-1.5707963},{"type":"mb_garage","position":[-62,0,0],"scale":[50,8,32],"color":"#bdbab3","label":"The Customization Garage"},{"type":"mb_gate","position":[0,0,26],"scale":[220,3,54],"color":"#2f5a24","label":"Residents Lane gate"}]},"map_mob_maze.json":{"themeName":"The Mob Maze","backgroundColor":"#101024","blocks":[{"type":"mobmaze_dungeon","position":[0,0,0],"scale":[80,12,80],"color":"#4a5878","label":"The Mob Maze","seed":7741}]},"map_modern_house.json":{"themeName":"Architecture Hacker House","backgroundColor":"#2f3640","blocks":[{"type":"concrete_floor","position":[0,-0.5,0],"scale":[25,1,25],"color":"#dcdde1","label":"First Floor"},{"type":"back_wall","position":[0,4,-12],"scale":[25,8,1],"color":"#353b48"},{"type":"left_wall","position":[-12,4,0],"scale":[1,8,25],"color":"#2f3542"},{"type":"second_floor_slab","position":[-3,4,0],"scale":[16,0.4,23],"color":"#ffffff","label":"Upper Suite"},{"type":"stairs_step1","position":[8,1,2],"scale":[2,1,2],"color":"#718093"},{"type":"stairs_step2","position":[8,2,0],"scale":[2,1,2],"color":"#718093"},{"type":"stairs_step3","position":[8,3,-2],"scale":[2,1,2],"color":"#718093"},{"type":"sofa","position":[-5,0.6,6],"scale":[5,1.2,2],"color":"#e84118","label":"Living Room Core"},{"type":"kitchen_counter","position":[4,0.8,8],"scale":[1.5,1.6,4],"color":"#f5f6fa"}]},"map_museum.json":{"themeName":"Museum of Forgotten Hardware & Software","backgroundColor":"#efebe9","blocks":[{"type":"museum_floor","position":[0,-0.25,0],"scale":[116,0.5,116],"color":"#a1887f","label":"Museum Grounds"},{"type":"museum_entrance","position":[0,5,52],"scale":[24,10,2.4],"color":"#5d4037","label":"MUSEUM OF FORGOTTEN HARDWARE & SOFTWARE"},{"type":"giant_floppy","position":[-30,5,-25],"scale":[22,10,22],"color":"#1e88e5","label":"Walk-in 3.5\" Floppy Disk (1.44 MB, 1987)"},{"type":"giant_cpu","position":[25,3,-25],"scale":[26,6,26],"color":"#455a64","label":"Giant Pentium-era Processor (66 MHz, 1993)"},{"type":"crt_parkour","position":[30,8,25],"scale":[18,16,16],"color":"#e8dcc4","label":"CRT Monitor Parkour Maze (14\" VGA, 1990)"},{"type":"giant_keyboard","position":[-36,1,22],"scale":[30,2,11],"color":"#d7ccc8","label":"Clicky Mechanical Keyboard (1984)"},{"type":"cassette","position":[8,3,-14],"scale":[10,6,1.6],"color":"#212121","label":"Compact Cassette Data Storage (1979)"},{"type":"cdrom","position":[0,1.5,-45],"scale":[10,3,10],"color":"#cfd8dc","label":"CD-ROM Drive & 650 MB Disc (1990)"},{"type":"tube_wall","position":[-40,4,-52],"scale":[32,8,2],"color":"#37474f","label":"Vacuum Tube Computer Wall (1946)"},{"type":"punch_cards","position":[40,4,-52],"scale":[30,8,1.4],"color":"#795548","label":"Punch Card Archive (1890-1970)"},{"type":"software_wall","position":[-55,6,0],"scale":[1.5,12,40],"color":"#263238","label":"Hall of Forgotten Software: DOS, BASIC, Early Desktops and 90s Homepages"},{"type":"ball_mouse","position":[-12,1.5,-10],"scale":[4,3,6],"color":"#e8dcc4","label":"Ball Mouse (1985)"},{"type":"mini_hotel","position":[-44.0,0,44.0],"scale":[15,9,15],"color":"#63c5c9","label":"Mini Hotel","variant":"pod","name":"Museum of Forgotten Tech Inn"},{"type":"timeline_hall","position":[0,0,20],"scale":[30,10,30],"color":"#c9b79c","label":"Timeline Hall · Forgotten Software & Hardware"}]},"map_open_source_hq.json":{"themeName":"Open Source HQ - A 3D Home for Repositories","backgroundColor":"#f6f8fa","blocks":[{"type":"oss_plaza_floor","position":[0,-0.25,0],"scale":[116,0.5,116],"color":"#e6edf3","label":"Open Source HQ Plaza"},{"type":"oss_main_building","position":[0,9,-42],"scale":[50,18,24],"color":"#24292f","label":"Open Source HQ"},{"type":"repo_mural","position":[-50,4,-10],"scale":[1,8,24],"color":"#0d1117","label":"Code Mural #1 - post with /mural 1 ","id":"mural1"},{"type":"repo_mural","position":[-50,4,20],"scale":[1,8,24],"color":"#0d1117","label":"Code Mural #2 - post with /mural 2 ","id":"mural2"},{"type":"repo_mural","position":[50,4,-10],"scale":[1,8,24],"color":"#0d1117","label":"Code Mural #3 - post with /mural 3 ","id":"mural3"},{"type":"repo_mural","position":[50,4,20],"scale":[1,8,24],"color":"#0d1117","label":"Code Mural #4 - post with /mural 4 ","id":"mural4"},{"type":"floating_room","position":[-38,28,20],"scale":[12,1,12],"color":"#8250df","label":"Code Review Room A"},{"type":"floating_room","position":[0,34,-14],"scale":[12,1,12],"color":"#8250df","label":"Architecture Room B"},{"type":"floating_room","position":[38,30,20],"scale":[12,1,12],"color":"#8250df","label":"Pair Programming Room C"},{"type":"decoration_slot","position":[24.0,0.4,8.0],"scale":[3,0.8,3],"color":"#57606a","label":"Decoration Slot 1 - change it with /pr 1 ","id":"slot1"},{"type":"decoration_slot","position":[17.0,0.4,25.0],"scale":[3,0.8,3],"color":"#57606a","label":"Decoration Slot 2 - change it with /pr 2 ","id":"slot2"},{"type":"decoration_slot","position":[0.0,0.4,32.0],"scale":[3,0.8,3],"color":"#57606a","label":"Decoration Slot 3 - change it with /pr 3 ","id":"slot3"},{"type":"decoration_slot","position":[-17.0,0.4,25.0],"scale":[3,0.8,3],"color":"#57606a","label":"Decoration Slot 4 - change it with /pr 4 ","id":"slot4"},{"type":"decoration_slot","position":[-24.0,0.4,8.0],"scale":[3,0.8,3],"color":"#57606a","label":"Decoration Slot 5 - change it with /pr 5 ","id":"slot5"},{"type":"decoration_slot","position":[-17.0,0.4,-9.0],"scale":[3,0.8,3],"color":"#57606a","label":"Decoration Slot 6 - change it with /pr 6 ","id":"slot6"},{"type":"decoration_slot","position":[-0.0,0.4,-16.0],"scale":[3,0.8,3],"color":"#57606a","label":"Decoration Slot 7 - change it with /pr 7 ","id":"slot7"},{"type":"decoration_slot","position":[17.0,0.4,-9.0],"scale":[3,0.8,3],"color":"#57606a","label":"Decoration Slot 8 - change it with /pr 8 ","id":"slot8"},{"type":"pr_board","position":[0,4,52],"scale":[16,8,0.4],"color":"#0d1117","label":"Open Pull Requests"},{"type":"spawn_teleport_pad","position":[0,0.1,8],"scale":[6,0.2,6],"color":"#2da44e","label":"Merge Fountain"},{"type":"mini_hotel","position":[-44.0,0,-44.0],"scale":[14,12,14],"color":"#63c5c9","label":"Mini Hotel","variant":"cube","name":"Open Source HQ Inn"}]},"map_orchard_nexus.json":{"themeName":"The Orchard Nexus","backgroundColor":"#101014","blocks":[{"type":"orchard_park","position":[0,0,0],"scale":[160,1,140],"color":"#e9ecef","label":"The Orchard Nexus park"},{"type":"orchard_grove","position":[0,0,0],"scale":[130,6,130],"color":"#2f9e44","label":"Digital trees"},{"type":"orchard_glass_cube","position":[0,0,0],"scale":[24,32,24],"color":"#e7f5ff","label":"The Glass Cube"},{"type":"orchard_smart_room","room":"living","innerSide":1,"position":[-6.25,8,-7.75],"scale":[9.5,4.5,8],"color":"#f8f9fa","label":"Smart Home: Living Room"},{"type":"orchard_smart_room","room":"kitchen","innerSide":-1,"position":[6.25,8,-7.75],"scale":[9.5,4.5,8],"color":"#f8f9fa","label":"Smart Home: Kitchen"},{"type":"orchard_genius_bar","position":[0,8,7],"scale":[14,1,1.1],"color":"#ffffff","label":"Genius Bar AI"},{"type":"orchard_spatial_quest","kiosk":[-10,0,29],"position":[0,0,0],"scale":[1.2,1.1,0.8],"color":"#4c6ef5","label":"The Spatial Quest"},{"type":"orchard_sign","position":[0,0,63],"scale":[7,3.2,0.7],"color":"#e9ecef","label":"The Orchard Nexus"},{"type":"orchard_fountain","position":[20,0,20],"scale":[8.4,1,8.4],"color":"#4dabf7","label":"Fountain"},{"type":"orchard_fountain","position":[-20,0,20],"scale":[8.4,1,8.4],"color":"#4dabf7","label":"Fountain"},{"type":"orchard_fountain","position":[20,0,-20],"scale":[8.4,1,8.4],"color":"#4dabf7","label":"Fountain"},{"type":"orchard_fountain","position":[-20,0,-20],"scale":[8.4,1,8.4],"color":"#4dabf7","label":"Fountain"}]},"map_parkour_park.json":{"themeName":"Parkour Park - Toki Land Style","backgroundColor":"#2b2f3a","blocks":[{"type":"toki_ground","position":[0,-0.2,0],"scale":[52,0.4,52],"color":"#4e8a3a","label":"Parkour Park (Toki Land)"},{"type":"parkour_start","position":[-20,0.2,20],"scale":[4,0.4,4],"color":"#40c057","label":"START"},{"type":"parkour_platform","position":[-14,1,16],"scale":[3,0.8,3],"color":"#f76707"},{"type":"coin","position":[-14,2.6,16],"scale":[1,1,1],"color":"#fcc419","id":"coin0"},{"type":"parkour_platform","position":[-8,2,12],"scale":[3,0.8,3],"color":"#e03131"},{"type":"coin","position":[-8,3.6,12],"scale":[1,1,1],"color":"#fcc419","id":"coin1"},{"type":"parkour_platform","position":[-2,3,10],"scale":[3,0.8,3],"color":"#e03131"},{"type":"coin","position":[-2,4.6,10],"scale":[1,1,1],"color":"#fcc419","id":"coin2"},{"type":"parkour_platform","position":[4,4.2,8],"scale":[3,0.8,3],"color":"#f76707"},{"type":"coin","position":[4,5.800000000000001,8],"scale":[1,1,1],"color":"#fcc419","id":"coin3"},{"type":"parkour_platform","position":[10,5.4,4],"scale":[3,0.8,3],"color":"#e03131"},{"type":"coin","position":[10,7.0,4],"scale":[1,1,1],"color":"#fcc419","id":"coin4"},{"type":"parkour_platform","position":[14,6.6,-2],"scale":[3,0.8,3],"color":"#e03131"},{"type":"coin","position":[14,8.2,-2],"scale":[1,1,1],"color":"#fcc419","id":"coin5"},{"type":"parkour_platform","position":[12,7.8,-8],"scale":[3,0.8,3],"color":"#f76707"},{"type":"coin","position":[12,9.4,-8],"scale":[1,1,1],"color":"#fcc419","id":"coin6"},{"type":"parkour_platform","position":[6,9,-12],"scale":[3,0.8,3],"color":"#e03131"},{"type":"coin","position":[6,10.6,-12],"scale":[1,1,1],"color":"#fcc419","id":"coin7"},{"type":"parkour_platform","position":[0,10.2,-14],"scale":[3,0.8,3],"color":"#e03131"},{"type":"coin","position":[0,11.799999999999999,-14],"scale":[1,1,1],"color":"#fcc419","id":"coin8"},{"type":"parkour_platform","position":[-6,11.4,-12],"scale":[3,0.8,3],"color":"#f76707"},{"type":"coin","position":[-6,13.0,-12],"scale":[1,1,1],"color":"#fcc419","id":"coin9"},{"type":"parkour_platform","position":[-12,12.6,-8],"scale":[3,0.8,3],"color":"#e03131"},{"type":"coin","position":[-12,14.2,-8],"scale":[1,1,1],"color":"#fcc419","id":"coin10"},{"type":"parkour_finish","position":[-17,13.4,-4],"scale":[4,0.4,4],"color":"#fab005","label":"FINISH"},{"type":"parkour_platform","position":[-17,12.8,-4],"scale":[5,0.8,5],"color":"#fab005"},{"type":"purple_rocks","position":[16,6,16],"scale":[14,12,10],"color":"#7048e8","label":"Crystal Falls"},{"type":"bench","position":[-20,0,10],"scale":[2.4,1,0.8],"color":"#a8743f"}]},"map_repository_pavilion.json":{"themeName":"The Repository Pavilion","backgroundColor":"#0d1117","blocks":[{"type":"pavilion_floor","position":[0,-0.5,0],"scale":[32,1,32],"color":"#161b22","label":"Repository Pavilion Exhibition Floor"},{"type":"main_branch_walkway","position":[0,0.05,0],"scale":[3,0.1,28],"color":"#30363d","label":"main"},{"type":"repo_pedestal","position":[-6,1,-9],"scale":[3,2,3],"color":"#39d353","label":"README.md"},{"type":"repo_pedestal","position":[-6,1.5,-3],"scale":[3,3,3],"color":"#1f6feb","label":"src/"},{"type":"repo_pedestal","position":[-6,2,3],"scale":[3,4,3],"color":"#26a641","label":"server.js"},{"type":"repo_pedestal","position":[-6,1,9],"scale":[3,2,3],"color":"#58a6ff","label":"package.json"},{"type":"branch_pedestal","position":[6,2.5,-9],"scale":[3,5,3],"color":"#2ea043","label":"feature/3d-cursors"},{"type":"branch_pedestal","position":[6,1.5,-3],"scale":[3,3,3],"color":"#388bfd","label":"feature/chat-bubbles"},{"type":"branch_pedestal","position":[6,3,3],"scale":[3,6,3],"color":"#3fb950","label":"feature/world-instances"},{"type":"branch_pedestal","position":[6,1,9],"scale":[3,2,3],"color":"#79c0ff","label":"fix/three-cdn"},{"type":"commit_monument","position":[0,4,-14],"scale":[10,8,1],"color":"#0e4429","label":"Commit History Wall"}]},"map_retro.json":{"themeName":"Retro Contribution Green","backgroundColor":"#040d04","blocks":[{"type":"floor","position":[0,-0.5,0],"scale":[12,1,12],"color":"#0d1b2a"},{"type":"grid_block","position":[-2,0.5,-2],"scale":[1.6,1,1.6],"color":"#0e4429","label":"Low Contribs"},{"type":"grid_block","position":[0,1,0],"scale":[1.6,2,1.6],"color":"#006d32","label":"Medium Contribs"},{"type":"grid_block","position":[2,1.5,2],"scale":[1.6,3,1.6],"color":"#39d353","label":"High Contribs"},{"type":"contribution_graph","position":[0,0,4],"scale":[10,1,3.5],"color":"#39d353","label":"A Year of Contributions"}]},"map_sandbox_voxels.json":{"themeName":"The Sandbox Voxel Grid Cluster","backgroundColor":"#0c1020","blocks":[{"type":"sandbox_land_base","position":[0,-0.5,0],"scale":[40,1,40],"color":"#00d2ff","label":"LAND Premium Parcel #166464"},{"type":"voxel_castle_tower","position":[-10,6,-10],"scale":[6,12,6],"color":"#34495e","label":"Alpha Season Hub Tower"},{"type":"game_quest_npc_zone","position":[8,0.1,8],"scale":[4,0.2,4],"color":"#f1c40f","label":"Play-to-Earn Quest Node"},{"type":"voxel_bridge","position":[0,4,-8],"scale":[12,0.8,2],"color":"#e67e22"},{"type":"nft_display_monolith","position":[10,3,-2],"scale":[2,6,0.5],"color":"#9b59b6","label":"VoxEdit Asset Showcase"}]},"map_silicon_valley.json":{"themeName":"Silicon Valley Tech Campus - Headquarters of the Tech World","backgroundColor":"#87ceeb","blocks":[{"type":"campus_ground","position":[0,-0.2,0],"scale":[440,0.4,380],"color":"#8fc15c","label":"Silicon Valley Tech Campus"},{"type":"campus_avenue_road","position":[0,0.07,30],"scale":[10,0.1,340],"color":"#4a4f55","label":"Innovation Avenue"},{"type":"north_boulevard_road","position":[0,0.07,-20],"scale":[420,0.1,10],"color":"#4a4f55","label":"Infinite Loop Boulevard"},{"type":"south_boulevard_road","position":[0,0.07,125],"scale":[420,0.1,10],"color":"#4a4f55","label":"Hacker Way Boulevard"},{"type":"square_floor","position":[0,0.02,55],"scale":[60,0.06,50],"color":"#d9c7a8","label":"Campus Plaza"},{"type":"fountain","position":[0,0.5,55],"scale":[16,1,16],"color":"#4dabf7","label":"Campus Fountain"},{"type":"arch_gate","position":[0,9,165],"scale":[26,18,3],"color":"#e9d8b4","label":"WELCOME TO SILICON VALLEY"},{"type":"round_tree","position":[-24,3.5,40],"scale":[4,7,4],"color":"#2f9e44"},{"type":"round_tree","position":[-24,3.5,70],"scale":[4,7,4],"color":"#2f9e44"},{"type":"round_tree","position":[24,3.5,40],"scale":[4,7,4],"color":"#2f9e44"},{"type":"round_tree","position":[24,3.5,70],"scale":[4,7,4],"color":"#2f9e44"},{"type":"apple_park","position":[-140,6,-95],"scale":[120,12,120],"color":"#f2f2f2","label":"Apple Park - Cupertino"},{"type":"googleplex","position":[5,7,-80],"scale":[84,14,64],"color":"#4285f4","label":"Googleplex - Mountain View"},{"type":"meta_campus","position":[135,5,-80],"scale":[70,10,44],"color":"#0866ff","label":"Meta - 1 Hacker Way"},{"type":"hq_anthropic","position":[-170,10,40],"scale":[30,20,26],"color":"#d97757","label":"Anthropic HQ"},{"type":"hq_openai","position":[-120,10,40],"scale":[30,20,26],"color":"#10a37f","label":"OpenAI HQ"},{"type":"hq_github","position":[-70,10,40],"scale":[30,20,26],"color":"#24292f","label":"GitHub HQ"},{"type":"hq_tesla","position":[70,10,40],"scale":[30,20,26],"color":"#cc0000","label":"Tesla HQ"},{"type":"hq_microsoft","position":[120,10,40],"scale":[30,20,26],"color":"#737373","label":"Microsoft HQ"},{"type":"hq_intel","position":[170,10,40],"scale":[30,20,26],"color":"#0071c5","label":"Intel HQ"},{"type":"nvidia_campus","position":[-170,7,85],"scale":[56,14,36],"color":"#76b900","label":"NVIDIA - Endeavor & Voyager"},{"type":"hq_hp","position":[-100,6,90],"scale":[30,12,24],"color":"#0096d6","label":"HP"},{"type":"hq_linkedin","position":[-55,7,90],"scale":[26,14,22],"color":"#0a66c2","label":"LinkedIn"},{"type":"hq_uber","position":[55,7,90],"scale":[26,14,22],"color":"#000000","label":"Uber"},{"type":"hq_netflix","position":[100,6,90],"scale":[30,12,24],"color":"#e50914","label":"Netflix"},{"type":"hq_cisco","position":[160,6,90],"scale":[36,12,26],"color":"#049fd9","label":"Cisco"},{"type":"oracle_campus","position":[-150,0,160],"scale":[50,24,44],"color":"#c74634","label":"Oracle"},{"type":"ea_campus","position":[-75,7,160],"scale":[44,14,34],"color":"#ff4747","label":"Electronic Arts"},{"type":"adobe_towers","position":[75,20,160],"scale":[40,40,30],"color":"#fa0f00","label":"Adobe"},{"type":"hq_ebay","position":[150,6,160],"scale":[30,12,24],"color":"#e53238","label":"eBay"},{"type":"tree_cluster","position":[-200,0,-20],"scale":[30,1,300],"color":"#2e7d32"},{"type":"tree_cluster","position":[200,0,-20],"scale":[30,1,300],"color":"#2e7d32"},{"type":"tree_cluster","position":[0,0,-150],"scale":[380,1,20],"color":"#2e7d32"},{"type":"tree_cluster","position":[0,0,185],"scale":[380,1,10],"color":"#2e7d32"},{"type":"billboard","position":[-90,6,-6],"scale":[14,12,0.6],"color":"#2c3e50","label":"WELCOME TO SILICON VALLEY"},{"type":"billboard","position":[-30,6,-6],"scale":[14,12,0.6],"color":"#1877f2","label":"GITHUB MULTIVERSE: DEVS ONLY BEYOND THIS POINT"},{"type":"billboard","position":[30,6,-6],"scale":[14,12,0.6],"color":"#16a085","label":"SHIP IT. THEN FIX IT."},{"type":"billboard","position":[90,6,-6],"scale":[14,12,0.6],"color":"#d35400","label":"COMMIT EARLY. COMMIT OFTEN."},{"type":"mini_hotel","position":[-204.0,0,174.0],"scale":[15,9,15],"color":"#63c5c9","label":"Mini Hotel","variant":"pod","name":"Silicon Valley Inn"}]},"map_tech_square.json":{"themeName":"Tech Square - Live Data Billboards","backgroundColor":"#1b1f2a","blocks":[{"type":"square_floor","position":[0,-0.2,0],"scale":[116,0.4,116],"color":"#2b2f3a","label":"Tech Square"},{"type":"neon_arch","position":[0,0,50],"scale":[24,12,1],"color":"#1877f2","label":"TECH SQUARE"},{"type":"led_tower","position":[0,22,-44],"scale":[30,44,14],"color":"#2ea043","label":"GitHub Mural","screen":"mural"},{"type":"led_tower","position":[-42,20,-10],"scale":[14,40,26],"color":"#1877f2","label":"Big Tech Scoreboard","screen":"scoreboard"},{"type":"led_tower","position":[42,20,-10],"scale":[14,40,26],"color":"#ff6600","label":"Dev Trending Topics","screen":"trends"},{"type":"ticker_tower","position":[-40,17,34],"scale":[12,34,12],"color":"#ffd43b","label":"Live Ticker"},{"type":"ticker_tower","position":[40,17,34],"scale":[12,34,12],"color":"#ffd43b","label":"Live Ticker"},{"type":"stock_podium","position":[-22,0,-4],"scale":[14,0.6,4],"color":"#161b22","label":"Stock bars"},{"type":"lamp_post","position":[-14,3,18],"scale":[0.4,6,0.4],"color":"#fff3c4"},{"type":"lamp_post","position":[14,3,18],"scale":[0.4,6,0.4],"color":"#fff3c4"},{"type":"lamp_post","position":[-14,3,36],"scale":[0.4,6,0.4],"color":"#fff3c4"},{"type":"lamp_post","position":[14,3,36],"scale":[0.4,6,0.4],"color":"#fff3c4"},{"type":"bench","position":[-24,0,10],"scale":[2.4,1,0.8],"color":"#a8743f"},{"type":"bench","position":[24,0,10],"scale":[2.4,1,0.8],"color":"#a8743f"},{"type":"bench","position":[0,0,22],"scale":[2.4,1,0.8],"color":"#a8743f"},{"type":"announcement_kiosk","position":[12,3,6],"scale":[4,6,0.6],"color":"#3a3f4b","label":"LIVE DATA|GitHub · Nasdaq · Dev trends|refreshed by the server"},{"type":"shibuya_building","position":[-44,0,-44],"scale":[16,26,14],"color":"#ffffff","label":"Shibuya-style building","variant":"stripes","seed":0},{"type":"shibuya_building","position":[44,0,-44],"scale":[16,30,14],"color":"#ffffff","label":"Shibuya-style building","variant":"pastel","seed":3},{"type":"shibuya_building","position":[-40,0,52],"scale":[18,22,10],"color":"#ffffff","label":"Shibuya-style building","variant":"pastel","seed":6,"rotationY":3.14159},{"type":"shibuya_building","position":[40,0,52],"scale":[18,18,10],"color":"#ffffff","label":"Shibuya-style building","variant":"corner","slogan":"WHATEVER YOU CODE","rotationY":3.14159},{"type":"shibuya_building","position":[-50,0,18],"scale":[8,20,12],"color":"#ffffff","label":"Shibuya-style building","variant":"stripes","seed":7,"rotationY":1.5708},{"type":"shibuya_building","position":[50,0,18],"scale":[8,24,12],"color":"#ffffff","label":"Shibuya-style building","variant":"pastel","seed":1,"rotationY":-1.5708},{"type":"events_screen","position":[24,0,24],"scale":[14,12,1],"color":"#a371f7","label":"GitHub events","rotationY":-2.36},{"type":"universe_replays","position":[-24,0,24],"scale":[11,10,1],"color":"#a371f7","label":"GitHub Universe replays","rotationY":2.36},{"type":"roadster_reel","position":[22,0,-22],"scale":[12,11,1],"label":"Tesla Roadster reel"}]},"map_terminal_apex.json":{"themeName":"The Terminal Apex","backgroundColor":"#101014","blocks":[{"type":"terminal_forecourt","position":[0,0,0],"scale":[94,0.1,94],"color":"#3d4047","label":"Terminal Apex forecourt"},{"type":"terminal_apex","position":[0,0,-22],"scale":[40,30,18],"color":"#141418","label":"The Terminal Apex (The >_ Root)"},{"type":"terminal_sign","position":[0,0,10],"scale":[13,3.2,0.6],"color":"#0c0c0c","label":"THE TERMINAL APEX >_ ROOT"},{"type":"terminal_bench","position":[-13,0.1,2],"scale":[2.4,1,0.6],"color":"#4a3a2c","label":"Bench","rotationY":1.5708},{"type":"terminal_bench","position":[-13,0.1,14],"scale":[2.4,1,0.6],"color":"#4a3a2c","label":"Bench","rotationY":1.5708},{"type":"terminal_bench","position":[-13,0.1,26],"scale":[2.4,1,0.6],"color":"#4a3a2c","label":"Bench","rotationY":1.5708},{"type":"terminal_bench","position":[13,0.1,2],"scale":[2.4,1,0.6],"color":"#4a3a2c","label":"Bench","rotationY":-1.5708},{"type":"terminal_bench","position":[13,0.1,14],"scale":[2.4,1,0.6],"color":"#4a3a2c","label":"Bench","rotationY":-1.5708},{"type":"terminal_bench","position":[13,0.1,26],"scale":[2.4,1,0.6],"color":"#4a3a2c","label":"Bench","rotationY":-1.5708},{"type":"terminal_lamp","position":[-7,0.1,-2],"scale":[1,4.6,1],"color":"#24262d","label":"Lamp post"},{"type":"terminal_lamp","position":[-7,0.1,8],"scale":[1,4.6,1],"color":"#24262d","label":"Lamp post"},{"type":"terminal_lamp","position":[-7,0.1,18],"scale":[1,4.6,1],"color":"#24262d","label":"Lamp post"},{"type":"terminal_lamp","position":[-7,0.1,28],"scale":[1,4.6,1],"color":"#24262d","label":"Lamp post"},{"type":"terminal_lamp","position":[-7,0.1,38],"scale":[1,4.6,1],"color":"#24262d","label":"Lamp post"},{"type":"terminal_lamp","position":[7,0.1,-2],"scale":[1,4.6,1],"color":"#24262d","label":"Lamp post"},{"type":"terminal_lamp","position":[7,0.1,8],"scale":[1,4.6,1],"color":"#24262d","label":"Lamp post"},{"type":"terminal_lamp","position":[7,0.1,18],"scale":[1,4.6,1],"color":"#24262d","label":"Lamp post"},{"type":"terminal_lamp","position":[7,0.1,28],"scale":[1,4.6,1],"color":"#24262d","label":"Lamp post"},{"type":"terminal_lamp","position":[7,0.1,38],"scale":[1,4.6,1],"color":"#24262d","label":"Lamp post"},{"type":"round_tree","position":[-30,0.1,-20],"scale":[3,6,3],"color":"#3f8f4f","label":"Tree"},{"type":"round_tree","position":[30,0.1,-20],"scale":[3,6,3],"color":"#3f8f4f","label":"Tree"},{"type":"round_tree","position":[-32,0.1,10],"scale":[3,6,3],"color":"#3f8f4f","label":"Tree"},{"type":"round_tree","position":[32,0.1,10],"scale":[3,6,3],"color":"#3f8f4f","label":"Tree"},{"type":"round_tree","position":[-28,0.1,34],"scale":[3,6,3],"color":"#3f8f4f","label":"Tree"},{"type":"round_tree","position":[28,0.1,34],"scale":[3,6,3],"color":"#3f8f4f","label":"Tree"},{"type":"round_tree","position":[-40,0.1,-40],"scale":[3,6,3],"color":"#3f8f4f","label":"Tree"},{"type":"round_tree","position":[40,0.1,-40],"scale":[3,6,3],"color":"#3f8f4f","label":"Tree"},{"type":"round_tree","position":[-20,0.1,42],"scale":[3,6,3],"color":"#3f8f4f","label":"Tree"},{"type":"round_tree","position":[20,0.1,42],"scale":[3,6,3],"color":"#3f8f4f","label":"Tree"}]},"map_upland_voxels.json":{"themeName":"Upland Real Estate Mapping & Cryptovoxels Gallery","backgroundColor":"#1a1a1a","blocks":[{"type":"city_ground","position":[0,-0.2,0],"scale":[36,0.4,36],"color":"#2a2a2a"},{"type":"upland_san_francisco_street","position":[0,0.05,0],"scale":[30,0.1,4],"color":"#555555","label":"Mirrored Real World Geography Boulevard"},{"type":"minted_property_1","position":[-6,2,-8],"scale":[6,4,6],"color":"#27ae60","label":"Upland Minted Property (NFT Deed)"},{"type":"unminted_property_2","position":[6,2,-8],"scale":[6,4,6],"color":"#7f8c8d","label":"Locked Real Estate (Available for Mint)"},{"type":"voxels_vertical_gallery","position":[0,4,10],"scale":[16,8,0.5],"color":"#ffffff","label":"Cryptovoxels Lean Web-GL Art Wall"}]},"map_world_zen.json":{"themeName":"Private World Instance: Zen Floating Temple","backgroundColor":"#a4b0be","blocks":[{"type":"floating_island_base","position":[0,0,0],"scale":[24,4,24],"color":"#2ed573","label":"Isolated World Chunk (Off-Chain Instance)"},{"type":"meditation_altar","position":[0,2.4,0],"scale":[4,0.8,4],"color":"#ffa502","label":"Zen Mindful Coding Anchor"},{"type":"corporate_boardroom_table","position":[0,2.2,-6],"scale":[3,0.4,6],"color":"#747d8c","label":"Private Meeting Node"},{"type":"waterfall_drain","position":[0,-2,11],"scale":[4,6,0.5],"color":"#70a1ff"},{"type":"sky_waterfall","position":[0,-1.6,13],"scale":[2.2,14.84,2.2],"color":"#74c0fc","label":"Sky waterfall","top":[0,6.3,-16.8]}]},"map_the_hotel_lodge.json":{"themeName":"The Hotel","backgroundColor":"#20301f","blocks":[{"type":"lodge_hotel","position":[0,0,22],"scale":[22,10,18],"color":"#5a3a24","label":"The Hotel","title":"The Hotel","forest":true}]},"map_devlife_museum.json":{"themeName":"Developers Daily Life","backgroundColor":"#dfe3e8","blocks":[{"type":"devlife_museum","position":[0,0,-8],"scale":[70,13,50],"label":"Developers Daily Life"},{"type":"round_tree","position":[-36,3.5,32.5],"scale":[4,7,4],"color":"#2f7e5a"},{"type":"round_tree","position":[-24,3.5,32.5],"scale":[4,7,4],"color":"#2f7e5a"},{"type":"round_tree","position":[24,3.5,32.5],"scale":[4,7,4],"color":"#2f7e5a"},{"type":"round_tree","position":[36,3.5,32.5],"scale":[4,7,4],"color":"#2f7e5a"},{"type":"round_tree","position":[-40,3.5,-30],"scale":[4,7,4],"color":"#3a8a4f"},{"type":"round_tree","position":[-40,3.5,-12],"scale":[4,7,4],"color":"#3a8a4f"},{"type":"round_tree","position":[-40,3.5,6],"scale":[4,7,4],"color":"#3a8a4f"},{"type":"round_tree","position":[40,3.5,-30],"scale":[4,7,4],"color":"#3a8a4f"},{"type":"round_tree","position":[40,3.5,-12],"scale":[4,7,4],"color":"#3a8a4f"},{"type":"round_tree","position":[40,3.5,6],"scale":[4,7,4],"color":"#3a8a4f"},{"type":"lamp_post","position":[-12,3,31],"scale":[0.4,6,0.4],"color":"#fff3c4"},{"type":"lamp_post","position":[12,3,31],"scale":[0.4,6,0.4],"color":"#fff3c4"},{"type":"lamp_post","position":[-40,3,20],"scale":[0.4,6,0.4],"color":"#fff3c4"},{"type":"lamp_post","position":[40,3,20],"scale":[0.4,6,0.4],"color":"#fff3c4"},{"type":"bench","position":[-18,0,26],"scale":[2.4,1,0.8],"color":"#9c6b43"},{"type":"bench","position":[18,0,26],"scale":[2.4,1,0.8],"color":"#9c6b43"}]},"map_squid_game.json":{"themeName":"Squid Game Epic Edition","backgroundColor":"#f6b8cc","blocks":[{"type":"sgee_redlight","position":[0,0,0],"scale":[140,30,110],"label":"Red Build, Green Build"},{"type":"sgee_bridge","position":[0,0,0],"scale":[140,30,110],"label":"Glass Bridge of Code Review"},{"type":"sgee_dorm","position":[0,0,0],"scale":[140,30,110],"label":"Dormitory"},{"type":"sgee_tug","position":[0,0,0],"scale":[140,30,110],"label":"Merge Conflict Tug of War"},{"type":"sgee_honeycomb","position":[0,0,0],"scale":[140,30,110],"label":"Regex Honeycomb"},{"type":"sgee_marbles","position":[0,0,0],"scale":[140,30,110],"label":"Odd or Even Commits"},{"type":"sgee_core","position":[0,0,0],"scale":[140,30,110],"label":"Squid Game Epic Edition"}]}}} \ No newline at end of file +{"_how_to": "Every district map in one file (fewer files to download). Keys are the 'file' names used in worlds.json. A separate public/maps/ still works and wins over this bundle, so new maps can be added either way.", "maps": {"map_agile_board.json": {"themeName": "Scrum & Agile Open Space", "backgroundColor": "#e9edf2", "blocks": [{"type": "office_floor", "position": [0, -0.5, 0], "scale": [30, 1, 30], "color": "#c8d0da", "label": "Agile Open Space"}, {"type": "kanban_board_todo", "position": [-8, 3, -12], "scale": [6, 5, 0.3], "color": "#ffffff", "label": "Kanban: To Do"}, {"type": "kanban_board_doing", "position": [0, 3, -12], "scale": [6, 5, 0.3], "color": "#ffffff", "label": "Kanban: In Progress"}, {"type": "kanban_board_done", "position": [8, 3, -12], "scale": [6, 5, 0.3], "color": "#ffffff", "label": "Kanban: Done"}, {"type": "sticky_note", "position": [-9.5, 4.2, -11.75], "scale": [1.2, 1.2, 0.1], "color": "#ffd43b", "label": "Implement /world command"}, {"type": "sticky_note", "position": [-7.5, 4.2, -11.75], "scale": [1.2, 1.2, 0.1], "color": "#ff8787", "label": "Proximity voice chat (WebRTC)"}, {"type": "sticky_note", "position": [-8.5, 2.5, -11.75], "scale": [1.2, 1.2, 0.1], "color": "#74c0fc", "label": "GitHub API integration"}, {"type": "sticky_note", "position": [-1, 4.2, -11.75], "scale": [1.2, 1.2, 0.1], "color": "#8ce99a", "label": "Chat bubbles over cursors"}, {"type": "sticky_note", "position": [1, 2.5, -11.75], "scale": [1.2, 1.2, 0.1], "color": "#ffd43b", "label": "Fix broken map JSONs"}, {"type": "sticky_note", "position": [7, 4.2, -11.75], "scale": [1.2, 1.2, 0.1], "color": "#b197fc", "label": "Socket.io real-time sync"}, {"type": "sticky_note", "position": [9, 4.2, -11.75], "scale": [1.2, 1.2, 0.1], "color": "#8ce99a", "label": "3D cursor meshes"}, {"type": "standup_table", "position": [0, 0.5, 2], "scale": [8, 1, 4], "color": "#4dabf7", "label": "Daily Stand-up Table"}, {"type": "retro_corner", "position": [10, 0.3, 8], "scale": [5, 0.6, 5], "color": "#ff922b", "label": "Sprint Retrospective Corner"}, {"type": "burndown_screen", "position": [-12, 2.5, 4], "scale": [0.3, 4, 7], "color": "#212529", "label": "Sprint Burndown Chart"}]}, "map_apple_house.json": {"themeName": "House of MAC - Apple Store Experience", "backgroundColor": "#f5f5f7", "blocks": [{"type": "aluminum_floor", "position": [0, -0.2, 0], "scale": [52, 0.4, 52], "color": "#e5e5ea", "label": "Apple Plaza Ground"}, {"type": "apple_store", "position": [0, 0, -4], "scale": [30, 9, 22], "color": "#f5f5f7", "label": "House of MAC - Apple Store"}, {"type": "mac_flagship", "position": [0, 0, -4], "scale": [34, 29, 26], "color": "#d8c7ad", "label": "House of MAC"}, {"type": "macos_interactive_terminal", "position": [0, 1, 12], "scale": [6, 2, 1], "color": "#1d1d1f", "label": "Software Integration Node (Xcode Mini-Game)"}, {"type": "pocket_show_stage", "position": [14, 0.3, 16], "scale": [10, 0.6, 6], "color": "#ff3b30", "label": "Live Music Virtual Stage"}, {"type": "apple_billboard", "position": [-18, 5, 18], "scale": [8, 10, 0.3], "color": "#000000", "label": "Mac|Apple personal computers", "image": "macbook-air.jpg"}, {"type": "apple_billboard", "position": [-8, 5, 22], "scale": [8, 10, 0.3], "color": "#f5f5f7", "label": "macOS|Apple desktop operating system", "dark": false, "image": "macos.jpg"}, {"type": "apple_billboard", "position": [22, 5, -20], "scale": [8, 10, 0.3], "color": "#000000", "label": "MacBook Air|Built to go places.", "image": "macbook-air-places.jpg"}, {"type": "apple_billboard", "position": [-22, 5, -20], "scale": [8, 10, 0.3], "color": "#000000", "label": "M6|The next generation of Apple silicon.", "image": "mac-m6.jpg"}, {"type": "plant", "position": [20, 1, 6], "scale": [1.8, 2.2, 1.8], "color": "#2f9e44"}, {"type": "bench", "position": [6, 0, 20], "scale": [2.4, 1, 0.8], "color": "#d4b48c"}, {"type": "apple_video_billboard", "position": [18, 6, 20], "scale": [12, 12, 0.5], "color": "#000000", "label": "Apple on YouTube - official films and ads"}, {"type": "apple_billboard", "position": [-24, 5, 0], "scale": [8, 10, 0.3], "color": "#000000", "label": "Apple Intelligence|On Mac, iPhone, iPad, Apple Watch and Vision Pro.", "image": "apple-intelligence.jpg"}, {"type": "apple_billboard", "position": [24, 5, 0], "scale": [8, 10, 0.3], "color": "#000000", "label": "Mac|MacBook Air, iMac and MacBook Pro.", "image": "mac-lineup.jpg"}, {"type": "apple_billboard", "position": [-14, 5, -24], "scale": [8, 10, 0.3], "color": "#000000", "label": "iMac|No artificial colors.", "image": "imac-colors.jpg"}, {"type": "apple_billboard", "position": [14, 5, -24], "scale": [8, 10, 0.3], "color": "#000000", "label": "macOS Tahoe|Fresh faced. Timelessly Mac.", "image": "macos-tahoe.jpg"}, {"type": "apple_billboard", "position": [-26, 5, 10], "scale": [12, 12, 0.3], "color": "#000000", "label": "MacBook Neo|Big value for small business.", "image": "macbook-neo.jpg"}, {"type": "apple_billboard", "position": [26, 5, 10], "scale": [12, 12, 0.3], "color": "#000000", "label": "Apple M1|Small chip. Giant leap.", "image": "m1.jpg"}, {"type": "apple_billboard", "position": [4, 5, 26], "scale": [12, 12, 0.3], "color": "#000000", "label": "macOS apps|Finder, Safari, Music, Messages and more", "image": "mac-apps.jpg"}, {"type": "macos_section", "position": [0, 0, -23], "scale": [16, 6.5, 5], "rotationY": 3.141592653589793, "label": "macOS section", "banners": [{"file": "macos-tahoe.jpg", "title": "macOS Tahoe: Fresh faced. Timelessly Mac."}, {"file": "macos-finder-apps.jpg", "title": "macOS: every app in Finder's Applications folder"}, {"file": "macos-creator-studio.jpg", "title": "Apple Creator Studio: All yours for the making."}, {"file": "macos-logic-packs.jpg", "title": "Logic Pro: sound, artist and instrument packs"}, {"file": "macos-logic-pro.jpg", "title": "Logic Pro for iPad: get hands on with your music, anywhere"}]}]}, "map_azure_cloud.json": {"themeName": "The Azure Cloud Core", "backgroundColor": "#0b1d33", "blocks": [{"type": "azure_upload_beam", "position": [0, 0.48, 0], "scale": [5, 13, 5], "color": "#59d2ff"}, {"type": "azure_cloud_shell", "position": [0, 23, 0], "scale": [50, 26, 50], "color": "#3fb6ff"}, {"type": "azure_core_levels", "position": [0, 0, 0], "scale": [28, 34, 28], "color": "#3c8ee0"}, {"type": "azure_storage_lounge", "position": [0, 23, 0], "scale": [21, 4, 21], "color": "#0d3a72"}, {"type": "azure_voxel_zone", "position": [0, 33, 0], "scale": [14, 2, 14], "color": "#e9f5ff"}, {"type": "azure_name_sign", "position": [8.5, 0.48, 0], "scale": [7, 3, 0.4], "color": "#0d4c8f", "rotationY": 1.5708}, {"type": "lamp_post", "position": [8.5, 3, 5], "scale": [0.4, 6, 0.4], "color": "#bfe9ff"}, {"type": "lamp_post", "position": [8.5, 3, -5], "scale": [0.4, 6, 0.4], "color": "#bfe9ff"}, {"type": "bench", "position": [12, 0.48, 6], "scale": [2.4, 1, 0.8], "color": "#7a8fa8", "rotationY": -1.5708}, {"type": "bench", "position": [12, 0.48, -6], "scale": [2.4, 1, 0.8], "color": "#7a8fa8", "rotationY": -1.5708}, {"type": "round_tree", "position": [27, 3.5, 27], "scale": [4, 7, 4], "color": "#2f7e5a"}, {"type": "round_tree", "position": [27, 3.5, -27], "scale": [4, 7, 4], "color": "#2f7e5a"}, {"type": "round_tree", "position": [-27, 3.5, 27], "scale": [4, 7, 4], "color": "#2f7e5a"}, {"type": "round_tree", "position": [-27, 3.5, -27], "scale": [4, 7, 4], "color": "#2f7e5a"}, {"type": "round_tree", "position": [28, 3, 14], "scale": [3.5, 6, 3.5], "color": "#2f7e5a"}, {"type": "round_tree", "position": [28, 3, -14], "scale": [3.5, 6, 3.5], "color": "#2f7e5a"}]}, "map_beach.json": {"themeName": "Tropical Beach", "backgroundColor": "#74c0fc", "blocks": [{"type": "beach_arena", "position": [0, 0, 0], "scale": [54, 6, 54], "color": "#f2dca2", "label": "Tropical Beach"}]}, "map_candlestick_maze.json": {"themeName": "The Candlestick Maze", "backgroundColor": "#0b0f16", "blocks": [{"type": "candle_maze", "position": [0, 0, 0], "scale": [96, 6, 96], "color": "#15181d", "label": "The Candlestick Maze"}, {"type": "lamp_post", "position": [-46, 3, -30], "scale": [0.4, 6, 0.4], "color": "#bfefff"}, {"type": "lamp_post", "position": [-46, 3, -20], "scale": [0.4, 6, 0.4], "color": "#bfefff"}, {"type": "lamp_post", "position": [-46, 3, 22], "scale": [0.4, 6, 0.4], "color": "#bfefff"}, {"type": "lamp_post", "position": [-46, 3, 32], "scale": [0.4, 6, 0.4], "color": "#bfefff"}]}, "map_cyberpunk.json": {"themeName": "The Cyberpunk Repository", "backgroundColor": "#0d0211", "blocks": [{"type": "floor", "position": [0, -0.5, 0], "scale": [30, 1, 30], "color": "#1a0826"}, {"type": "neon_pillar", "position": [-5, 4, -5], "scale": [1, 8, 1], "color": "#00ffcc", "label": "Core API"}, {"type": "neon_pillar", "position": [5, 4, -5], "scale": [1, 8, 1], "color": "#ff007f", "label": "Webhooks"}, {"type": "server_rack", "position": [0, 2, -10], "scale": [6, 4, 2], "color": "#390099"}]}, "map_debug_dungeon.json": {"themeName": "The Debug Dungeon - Labyrinth of Bugs", "backgroundColor": "#1a1520", "blocks": [{"type": "dungeon_floor", "position": [0, -0.25, 0], "scale": [116, 0.5, 116], "color": "#2a2530", "label": "Debug Dungeon Floor"}, {"type": "dungeon_gate", "position": [0, 4, 55], "scale": [20, 8, 2], "color": "#4e4452", "label": "THE DEBUG DUNGEON - Labyrinth of Bugs"}, {"type": "dungeon_wall", "position": [0, 4, -55], "scale": [116, 8, 2], "color": "#6d6478"}, {"type": "dungeon_wall", "position": [-57, 4, 0], "scale": [2, 8, 112], "color": "#6d6478"}, {"type": "dungeon_wall", "position": [57, 4, 0], "scale": [2, 8, 112], "color": "#6d6478"}, {"type": "dungeon_wall", "position": [-35, 4, 40], "scale": [40, 8, 2], "color": "#6d6478"}, {"type": "dungeon_wall", "position": [35, 4, 40], "scale": [40, 8, 2], "color": "#6d6478"}, {"type": "dungeon_wall", "position": [-20, 4, 20], "scale": [2, 8, 40], "color": "#6d6478"}, {"type": "dungeon_wall", "position": [20, 4, 10], "scale": [2, 8, 40], "color": "#6d6478"}, {"type": "dungeon_wall", "position": [0, 4, -10], "scale": [50, 8, 2], "color": "#6d6478"}, {"type": "dungeon_wall", "position": [-40, 4, 0], "scale": [2, 8, 40], "color": "#6d6478"}, {"type": "dungeon_wall", "position": [40, 4, -20], "scale": [2, 8, 40], "color": "#6d6478"}, {"type": "dungeon_wall", "position": [-25, 4, -35], "scale": [30, 8, 2], "color": "#6d6478"}, {"type": "dungeon_wall", "position": [25, 4, -35], "scale": [30, 8, 2], "color": "#6d6478"}, {"type": "dungeon_wall", "position": [0, 4, -25], "scale": [2, 8, 20], "color": "#6d6478"}, {"type": "dungeon_wall", "position": [-45, 4, 25], "scale": [24, 8, 2], "color": "#6d6478"}, {"type": "dungeon_wall", "position": [45, 4, 20], "scale": [24, 8, 2], "color": "#6d6478"}, {"type": "dungeon_torch", "position": [-50, 2, 48], "scale": [0.5, 4, 0.5], "color": "#ff9800"}, {"type": "dungeon_torch", "position": [50, 2, 48], "scale": [0.5, 4, 0.5], "color": "#ff9800"}, {"type": "dungeon_torch", "position": [-10, 2, -5], "scale": [0.5, 4, 0.5], "color": "#ff9800"}, {"type": "dungeon_torch", "position": [10, 2, 30], "scale": [0.5, 4, 0.5], "color": "#ff9800"}, {"type": "dungeon_torch", "position": [-30, 2, -48], "scale": [0.5, 4, 0.5], "color": "#ff9800"}, {"type": "dungeon_torch", "position": [30, 2, -48], "scale": [0.5, 4, 0.5], "color": "#ff9800"}, {"type": "dungeon_torch", "position": [48, 2, -5], "scale": [0.5, 4, 0.5], "color": "#ff9800"}, {"type": "dungeon_torch", "position": [-48, 2, 10], "scale": [0.5, 4, 0.5], "color": "#ff9800"}, {"type": "git_commit_hammer", "position": [0, 1, 46], "scale": [2, 2, 2], "color": "#ffd54f", "label": "Git Commit Hammer - click to equip"}, {"type": "bug_monster_memory_leak", "position": [-30, 1.5, 28], "scale": [3, 3, 3], "color": "#8e24aa", "label": "Memory Leak", "id": "leak1", "hp": 120, "weakness": "gc"}, {"type": "bug_monster_memory_leak", "position": [45, 1.5, -45], "scale": [3, 3, 3], "color": "#8e24aa", "label": "Memory Leak", "id": "leak2", "hp": 120, "weakness": "gc"}, {"type": "bug_monster_null_pointer", "position": [30, 1.5, 25], "scale": [3, 3, 3], "color": "#eceff1", "label": "NullPointerException", "id": "npe1", "hp": 80, "weakness": "try-catch"}, {"type": "bug_monster_null_pointer", "position": [-48, 1.5, -20], "scale": [3, 3, 3], "color": "#eceff1", "label": "NullPointerException", "id": "npe2", "hp": 80, "weakness": "try-catch"}, {"type": "bug_monster_infinite_loop", "position": [10, 1.5, -20], "scale": [3, 3, 3], "color": "#00bcd4", "label": "Infinite Loop", "id": "loop1", "hp": 100, "weakness": "break"}, {"type": "bug_monster_race_condition", "position": [-30, 1.5, -15], "scale": [3, 3, 3], "color": "#ff5722", "label": "Race Condition", "id": "race1", "hp": 90, "weakness": "mutex"}, {"type": "bug_monster_off_by_one", "position": [30, 1.5, -5], "scale": [3, 3, 3], "color": "#cddc39", "label": "Off-By-One Error", "id": "obo1", "hp": 60, "weakness": "unit-test"}, {"type": "bug_monster_blue_screen", "position": [0, 5.0, -42], "scale": [8, 10, 6], "color": "#0a3ea8", "label": "Blue Screen of Death (Boss)", "id": "bsod", "hp": 400, "weakness": "reboot"}, {"type": "scoreboard", "position": [-50, 4, 52], "scale": [10, 5, 0.4], "color": "#212121", "label": "Bug Bounty Leaderboard"}]}, "map_equalizer.json": {"themeName": "Graphic Equalizer", "backgroundColor": "#0d0f1a", "blocks": [{"type": "equalizer_tower", "position": [0, 0, -4], "scale": [14, 34, 14], "color": "#4dabf7", "label": "Graphic Equalizer · The Tower of Icons"}, {"type": "round_tree", "position": [22.9, 3.5, 3.1], "scale": [4, 7, 4], "color": "#2f9e44"}, {"type": "lamp_post", "position": [13.2, 3, 9.6], "scale": [0.4, 6, 0.4], "color": "#fff3c4"}, {"type": "round_tree", "position": [5.3, 3.5, 19.4], "scale": [4, 7, 4], "color": "#2f9e44"}, {"type": "lamp_post", "position": [-5.2, 3, 14.3], "scale": [0.4, 6, 0.4], "color": "#fff3c4"}, {"type": "round_tree", "position": [-17.6, 3.5, 12.3], "scale": [4, 7, 4], "color": "#2f9e44"}, {"type": "lamp_post", "position": [-18.4, 3, 0.6], "scale": [0.4, 6, 0.4], "color": "#fff3c4"}, {"type": "round_tree", "position": [-22.9, 3.5, -11.1], "scale": [4, 7, 4], "color": "#2f9e44"}, {"type": "lamp_post", "position": [-13.2, 3, -17.6], "scale": [0.4, 6, 0.4], "color": "#fff3c4"}, {"type": "round_tree", "position": [-5.3, 3.5, -27.4], "scale": [4, 7, 4], "color": "#2f9e44"}, {"type": "lamp_post", "position": [5.2, 3, -22.3], "scale": [0.4, 6, 0.4], "color": "#fff3c4"}, {"type": "round_tree", "position": [17.6, 3.5, -20.3], "scale": [4, 7, 4], "color": "#2f9e44"}, {"type": "lamp_post", "position": [18.4, 3, -8.6], "scale": [0.4, 6, 0.4], "color": "#fff3c4"}]}, "map_fight_arena.json": {"themeName": "The Pit Arena", "backgroundColor": "#101014", "blocks": [{"type": "pit_arena", "position": [0, 0, 0], "scale": [72, 12, 72], "color": "#55575a", "label": "The Pit Arena", "rotationY": 1.5708}, {"type": "round_tree", "position": [31, 3.5, 31], "scale": [4, 7, 4], "color": "#2f6e34"}, {"type": "round_tree", "position": [31, 3.5, -31], "scale": [4, 7, 4], "color": "#2f6e34"}, {"type": "round_tree", "position": [-31, 3.5, 31], "scale": [4, 7, 4], "color": "#2f6e34"}, {"type": "round_tree", "position": [-31, 3.5, -31], "scale": [4, 7, 4], "color": "#2f6e34"}, {"type": "round_tree", "position": [-33, 3.5, 0], "scale": [4, 7, 4], "color": "#2f6e34"}, {"type": "lamp_post", "position": [33.5, 3, 8.5], "scale": [0.4, 6, 0.4], "color": "#ffd8c4"}, {"type": "lamp_post", "position": [33.5, 3, -8.5], "scale": [0.4, 6, 0.4], "color": "#ffd8c4"}, {"type": "lamp_post", "position": [27, 3, 22], "scale": [0.4, 6, 0.4], "color": "#ffd8c4"}, {"type": "lamp_post", "position": [27, 3, -22], "scale": [0.4, 6, 0.4], "color": "#ffd8c4"}]}, "map_game_room.json": {"themeName": "Arcade & RGB Game Room", "backgroundColor": "#0c0d14", "blocks": [{"type": "carpet_floor", "position": [0, -0.5, 0], "scale": [20, 1, 20], "color": "#111424", "label": "Arcade Carpet"}, {"type": "pool_table_base", "position": [0, 0.4, 0], "scale": [4, 0.8, 7], "color": "#44bd32", "label": "Billiards Node"}, {"type": "pool_table_edge", "position": [0, 0.9, 0], "scale": [4.4, 0.3, 7.4], "color": "#8c7ae6"}, {"type": "arcade_cabinet_1", "position": [-8, 2, -6], "scale": [2, 4, 2], "color": "#00a8ff", "label": "Pac-Man Git"}, {"type": "arcade_screen_1", "position": [-8, 2.5, -4.95], "scale": [1.6, 1.2, 0.1], "color": "#fbc531"}, {"type": "arcade_cabinet_2", "position": [-5, 2, -6], "scale": [2, 4, 2], "color": "#e84118", "label": "Doom 3D Web"}, {"type": "battlestation_desk", "position": [7, 0.6, 4], "scale": [4, 1.2, 2], "color": "#2f3640"}, {"type": "rgb_monitor", "position": [7, 1.6, 4], "scale": [3, 1, 0.2], "color": "#00ffcc", "label": "UltraWide Dev Station"}]}, "map_gamer_district.json": {"themeName": "Gamer District", "backgroundColor": "#2b2140", "blocks": [{"type": "arena_floor", "position": [0, -0.2, 0], "scale": [116, 0.4, 116], "color": "#2b2140", "label": "Gamer District"}, {"type": "gravity_tower", "position": [0, 0, -10], "scale": [20, 48, 20], "color": "#9775fa", "label": "Gravity Flip tower"}, {"type": "arcade_cabinet_1", "position": [-40, 2, -30], "scale": [2, 4, 2], "color": "#00a8ff", "label": "Pac-Git"}, {"type": "arcade_cabinet_2", "position": [-34, 2, -30], "scale": [2, 4, 2], "color": "#e84118", "label": "Doom Web"}, {"type": "arcade_cabinet_3", "position": [-28, 2, -30], "scale": [2, 4, 2], "color": "#fbc531", "label": "Tetris Merge"}, {"type": "neon_pillar", "position": [36, 4, -30], "scale": [1, 8, 1], "color": "#00ffcc", "label": "Neon"}, {"type": "neon_pillar", "position": [44, 4, -30], "scale": [1, 8, 1], "color": "#ff007f", "label": "Neon"}, {"type": "mini_game_arena", "position": [34, 0, 26], "scale": [22, 1, 22], "color": "#7a5cff", "label": "Arena"}, {"type": "battlestation_desk", "position": [-36, 0.6, 20], "scale": [4, 1.2, 2], "color": "#2f3640", "label": "LAN party station"}, {"type": "battlestation_desk", "position": [-28, 0.6, 20], "scale": [4, 1.2, 2], "color": "#2f3640", "label": "LAN party station"}, {"type": "metro_station", "position": [0, 0, 46], "scale": [10, 1, 4], "color": "#e03131", "label": "Gamer District Station"}]}, "map_gamimall.json": {"themeName": "Meta GamiMall Multi-Level E-Commerce Center", "backgroundColor": "#f4f6f9", "blocks": [{"type": "mall_ground_floor", "position": [0, -0.5, 0], "scale": [40, 1, 40], "color": "#ffffff", "label": "GamiMall Main Entrance Lobby"}, {"type": "wearable_shop_alpha", "position": [-10, 2.5, -10], "scale": [10, 5, 8], "color": "#000000", "label": "Crypto Wearables & Avatar Clothing Store"}, {"type": "wearable_shop_beta", "position": [10, 2.5, -10], "scale": [10, 5, 8], "color": "#ff007f", "label": "Digital Sneaker Boutique (NFT Drops)"}, {"type": "second_floor_balcony", "position": [0, 5.25, -10], "scale": [36, 0.5, 8], "color": "#dfe4ea", "label": "Upper Floor Shopping Terrace"}, {"type": "central_escalator_block", "position": [0, 2.5, 0], "scale": [3, 5, 8], "color": "#747d8c"}]}, "map_genesis_plaza.json": {"themeName": "Genesis Plaza & Decentraland Districts", "backgroundColor": "#110f1a", "blocks": [{"type": "district_ground", "position": [0, -0.25, 0], "scale": [40, 0.5, 40], "color": "#1e1b2e"}, {"type": "genesis_plaza", "position": [0, 0.1, 0], "scale": [8, 0.4, 8], "color": "#2ecc71", "label": "Genesis Plaza (0,0) - Default Spawn"}, {"type": "center_monolith", "position": [0, 3, 0], "scale": [1.5, 6, 1.5], "color": "#27ae60"}, {"type": "road_north", "position": [0, 0.05, -12], "scale": [3, 0.2, 16], "color": "#bdc3c7", "label": "North Road - Public Street"}, {"type": "road_south", "position": [0, 0.05, 12], "scale": [3, 0.2, 16], "color": "#bdc3c7", "label": "South Road - Public Street"}, {"type": "road_east", "position": [12, 0.05, 0], "scale": [16, 0.2, 3], "color": "#bdc3c7", "label": "East Road - Public Street"}, {"type": "road_west", "position": [-12, 0.05, 0], "scale": [16, 0.2, 3], "color": "#bdc3c7", "label": "West Road - Public Street"}, {"type": "district_vegas", "position": [-12, 1, -12], "scale": [8, 2, 8], "color": "#9b59b6", "label": "Vegas City District - Casinos & Poker"}, {"type": "district_fashion", "position": [12, 2, -12], "scale": [8, 4, 8], "color": "#8e44ad", "label": "Fashion Street District - Luxury Brands"}, {"type": "district_aetheria", "position": [-12, 3, 12], "scale": [8, 6, 8], "color": "#6c5ce7", "label": "Aetheria District - Cyberpunk Dev"}, {"type": "private_land_github", "position": [12, 1.5, 12], "scale": [8, 3, 8], "color": "#34495e", "label": "Private Lot: GitHub Enterprise HQ"}, {"type": "private_land_vercel", "position": [6, 0.8, 6], "scale": [4, 1.6, 4], "color": "#2c3e50", "label": "Private Lot: Vercel Deploy Zone"}, {"type": "private_land_stack", "position": [-6, 0.5, -6], "scale": [4, 1, 4], "color": "#212f3d", "label": "Private Lot: StackOverflow Lab"}]}, "map_glass_cube.json": {"themeName": "The Glass Cube", "backgroundColor": "#dfe7ef", "blocks": [{"type": "glass_cube_store", "position": [0, 0, 0], "scale": [52, 10, 52], "label": "The Glass Cube", "hole": 10}]}, "map_glass_villas.json": {"themeName": "Aero-Glass Oasis - Floating Glass Villas", "backgroundColor": "#74c0fc", "blocks": [{"type": "water_mirror", "position": [0, -0.3, 0], "scale": [118, 0.3, 118], "color": "#74c0fc", "label": "Water mirror"}, {"type": "glass_villa", "position": [-34, 0, -30], "scale": [14, 8, 10], "color": "#1c7ed6", "label": "Glass Villa 1"}, {"type": "glass_villa", "position": [10, 0, -36], "scale": [14, 8, 10], "color": "#ae3ec9", "label": "Glass Villa 2"}, {"type": "glass_villa", "position": [40, 0, -6], "scale": [14, 8, 10], "color": "#0ca678", "label": "Glass Villa 3"}, {"type": "glass_villa", "position": [-20, 0, 12], "scale": [14, 8, 10], "color": "#f76707", "label": "Glass Villa 4"}, {"type": "glass_villa", "position": [22, 0, 32], "scale": [14, 8, 10], "color": "#e64980", "label": "Glass Villa 5"}, {"type": "glass_villa", "position": [-40, 0, 40], "scale": [14, 8, 10], "color": "#1098ad", "label": "Glass Villa 6"}, {"type": "arc_stepping_walkway", "position": [0, 0.15, 0], "scale": [3, 0.2, 110], "color": "#f8f9fa", "label": "Floating walkway"}, {"type": "arc_stepping_walkway", "position": [0, 0.15, 0], "scale": [110, 0.2, 3], "color": "#f8f9fa", "label": "Floating walkway"}, {"type": "metro_station", "position": [0, 0.2, 50], "scale": [10, 1, 4], "color": "#4dabf7", "label": "Aero-Glass Oasis Station"}]}, "map_green_tech.json": {"themeName": "Green-Tech Sandbox - Eco-Digital Gamification", "backgroundColor": "#d8f3dc", "blocks": [{"type": "green_floor", "position": [0, -0.25, 0], "scale": [116, 0.5, 116], "color": "#8fbf5a", "label": "Green-Tech Sandbox Meadow"}, {"type": "solar_array", "position": [-30, 0.5, -30], "scale": [44, 1, 36], "color": "#0d2b52", "label": "Solar Farm - 2.4 MW of clean power for CI pipelines"}, {"type": "wind_turbine", "position": [-48, 15, 20], "scale": [2, 30, 2], "color": "#ffffff", "label": "Wind Turbine - powering green builds"}, {"type": "wind_turbine", "position": [-48, 15, 40], "scale": [2, 30, 2], "color": "#ffffff", "label": "Wind Turbine - powering green builds"}, {"type": "wind_turbine", "position": [48, 15, -48], "scale": [2, 30, 2], "color": "#ffffff", "label": "Wind Turbine - powering green builds"}, {"type": "wind_turbine", "position": [30, 15, -48], "scale": [2, 30, 2], "color": "#ffffff", "label": "Wind Turbine - powering green builds"}, {"type": "wind_turbine", "position": [12, 15, -48], "scale": [2, 30, 2], "color": "#ffffff", "label": "Wind Turbine - powering green builds"}, {"type": "green_data_center", "position": [25, 6, -12], "scale": [34, 12, 20], "color": "#2b8a3e", "label": "Green Data Center - liquid cooled, living roof"}, {"type": "greenhouse", "position": [-22, 3, 22], "scale": [16, 6, 20], "color": "#d3f9d8", "label": "Vertical Farm Greenhouse"}, {"type": "energy_meter", "position": [5, 5, 40], "scale": [4, 10, 1], "color": "#212529", "label": "Renewable Energy Meter - plant trees with /plant"}, {"type": "efficiency_lab", "position": [40, 4, 25], "scale": [1.5, 8, 18], "color": "#343a40", "label": "Code Efficiency Lab - greener algorithms use less energy"}, {"type": "ev_chargers", "position": [18, 0, 50], "scale": [24, 1, 8], "color": "#495057", "label": "EV Charging Station"}, {"type": "battery_bank", "position": [45, 1.5, -30], "scale": [16, 3, 3], "color": "#f1f3f5", "label": "Grid Battery Storage"}, {"type": "bike_path_walkway", "position": [0, 0.03, 10], "scale": [4, 0.06, 100], "color": "#6c8f3c", "label": "Bike Path"}, {"type": "water", "position": [-5, -0.02, 5], "scale": [16, 0.12, 12], "color": "#4dabf7", "label": "Rain Water Pond"}, {"type": "planting_zone", "position": [10, 0.02, 22], "scale": [22, 0.04, 18], "color": "#7c5e3c", "label": "Community Planting Zone - type /plant with your cursor here"}]}, "map_holo_workspace.json": {"themeName": "Holo Workspace - Future of Work", "backgroundColor": "#e7ecff", "blocks": [{"type": "gradient_floor", "position": [0, -0.2, 0], "scale": [52, 0.4, 52], "color": "#c4d7ff", "label": "Holo Workspace"}, {"type": "glass_wall_panel", "position": [0, 4, -25.5], "scale": [50, 8, 0.3], "color": "#a5d8ff"}, {"type": "glass_wall_panel", "position": [-25.5, 4, 0], "scale": [0.3, 8, 50], "color": "#a5d8ff"}, {"type": "glass_table", "position": [0, 0.75, -8], "scale": [12, 1.5, 3], "color": "#74c0fc", "label": "Holo Team Table"}, {"type": "glass_table", "position": [-14, 0.75, 8], "scale": [3, 1.5, 10], "color": "#b197fc", "label": "Focus Table"}, {"type": "round_sofa", "position": [11, 0.6, 10], "scale": [9, 1.2, 9], "color": "#1c7ed6", "label": "Lounge"}, {"type": "commit_board", "position": [0, 6, -25], "scale": [12, 6, 0.4], "color": "#212529", "label": "Commit Leaderboard"}, {"type": "plant", "position": [20, 1, -20], "scale": [1.8, 2.2, 1.8], "color": "#2f9e44"}, {"type": "plant", "position": [-20, 1, 20], "scale": [1.8, 2.2, 1.8], "color": "#2f9e44"}, {"type": "kitchen_counter", "position": [20, 0.8, -4], "scale": [1.5, 1.6, 6], "color": "#ced4da", "label": "Coffee Station"}]}, "map_horizon_somnium.json": {"themeName": "Horizon Social Hub & Somnium Space Oasis", "backgroundColor": "#05050a", "blocks": [{"type": "somnium_persistent_ground", "position": [0, -0.5, 0], "scale": [26, 0.6, 26], "color": "#111625", "label": "Somnium VR-First Persistent Plot"}, {"type": "horizon_meeting_podium", "position": [0, 0.4, -6], "scale": [8, 0.8, 4], "color": "#2ecc71", "label": "Meta Horizon Corporate Keynote Stage"}, {"type": "social_lounge_circle", "position": [0, 0.2, 6], "scale": [6, 0.4, 6], "color": "#3498db", "label": "Avatar Interaction Ring"}, {"type": "ai_avatar_node", "position": [-8, 2, 0], "scale": [1.5, 4, 1.5], "color": "#e74c3c", "label": "AI Companion Integration Anchor"}]}, "map_hotel.json": {"themeName": "Multiverse Hotel", "backgroundColor": "#2b2140", "blocks": [{"type": "grand_hotel", "position": [0, 0, -10], "scale": [40, 64, 36], "color": "#1c2a5a", "label": "Multiverse Hotel"}, {"type": "mini_hotel", "position": [-40, 0, 30], "scale": [15, 9, 15], "color": "#63c5c9", "label": "Capsule pods", "name": "Capsule Pods"}, {"type": "mini_hotel", "position": [40, 0, 30], "scale": [14, 12, 14], "color": "#2b2d5a", "label": "Neon cube hotel", "variant": "cube", "name": "Neon Cube Hotel"}, {"type": "cowork_plaza", "position": [0, 0, 42], "scale": [18, 1, 18], "seed": 3}, {"type": "supertree", "position": [-30, 0, 0], "scale": [7, 16, 7], "color": "#3f8f3a"}, {"type": "supertree", "position": [30, 0, 0], "scale": [7, 16, 7], "color": "#3f8f3a"}, {"type": "round_tree", "position": [-24, 3.5, 40], "scale": [4, 7, 4], "color": "#e03131"}, {"type": "round_tree", "position": [24, 3.5, 40], "scale": [4, 7, 4], "color": "#f06595"}, {"type": "lamp_post", "position": [-12, 3, 30], "scale": [0.4, 6, 0.4], "color": "#fff3c4"}, {"type": "lamp_post", "position": [12, 3, 30], "scale": [0.4, 6, 0.4], "color": "#fff3c4"}]}, "map_keynote_arena.json": {"themeName": "Keynote Amphitheater - Permanent Tech Event Arena", "backgroundColor": "#14141f", "blocks": [{"type": "amphitheater_floor", "position": [0, -0.25, 0], "scale": [116, 0.5, 116], "color": "#2b2d42", "label": "Keynote Arena Grounds"}, {"type": "amphitheater_seats", "position": [0, 0, 10], "scale": [90, 12, 60], "color": "#3d405b", "label": "Amphitheater Seating (2,000 devs)"}, {"type": "keynote_stage", "position": [0, 1, -30], "scale": [40, 2, 14], "color": "#ef233c", "label": "Main Keynote Stage"}, {"type": "keynote_screen", "position": [0, 14, -40], "scale": [48, 20, 1], "color": "#111111", "label": "Live Keynote Screen - click or /watch to open the stream"}, {"type": "merch_booth", "position": [-45, 2, 40], "scale": [10, 4, 8], "color": "#ffb703", "label": "Dev Wearables Booth - click to try on a hoodie, mug, cap or headphones"}, {"type": "merch_booth", "position": [45, 2, 40], "scale": [10, 4, 8], "color": "#219ebc", "label": "Infinite Coffee Booth - click for a never-ending mug"}, {"type": "spotlight_tower", "position": [-28, 10, -20], "scale": [2, 20, 2], "color": "#edf2f4"}, {"type": "spotlight_tower", "position": [28, 10, -20], "scale": [2, 20, 2], "color": "#edf2f4"}, {"type": "mini_hotel", "position": [-44.0, 0, -44.0], "scale": [14, 12, 14], "color": "#63c5c9", "label": "Mini Hotel", "variant": "cube", "name": "Keynote Amphitheater Inn"}]}, "map_lobby.json": {"themeName": "Main Headquarters Lobby", "backgroundColor": "#1e1e24", "blocks": [{"type": "floor", "position": [0, -0.5, 0], "scale": [30, 1, 30], "color": "#2d2d34"}, {"type": "desk", "position": [0, 0.5, 0], "scale": [6, 1, 3], "color": "#4a4a5a", "label": "Central Desk"}, {"type": "wall", "position": [-15, 5, 0], "scale": [1, 10, 30], "color": "#3d3d45"}, {"type": "wall", "position": [15, 5, 0], "scale": [1, 10, 30], "color": "#3d3d45"}, {"type": "wall", "position": [0, 5, -15], "scale": [30, 10, 1], "color": "#3d3d45"}, {"type": "wayfinding_board", "position": [0, 6, -14.3], "scale": [12, 3, 0.3], "color": "#1877f2", "label": "GitHub Multiverse HQ - Main Lobby"}, {"type": "rug", "position": [0, 0.02, 5], "scale": [12, 0.04, 7], "color": "#3d3d6b"}, {"type": "sofa", "position": [-6, 0.6, 7], "scale": [5, 1.2, 2], "color": "#5f27cd", "label": "Pair Programming Lounge"}, {"type": "sofa", "position": [6, 0.6, 7], "scale": [5, 1.2, 2], "color": "#5f27cd", "label": "Pair Programming Lounge"}, {"type": "kitchen_counter", "position": [11, 0.8, -8], "scale": [1.5, 1.6, 6], "color": "#c8a27a", "label": "Infinite Coffee Bar"}, {"type": "plant", "position": [-12, 1, -12], "scale": [1.6, 2, 1.6], "color": "#2e7d32"}, {"type": "plant", "position": [12, 1, 12], "scale": [1.6, 2, 1.6], "color": "#2e7d32"}, {"type": "plant", "position": [-12, 1, 12], "scale": [1.6, 2, 1.6], "color": "#2e7d32"}, {"type": "plant", "position": [12, 1, -2], "scale": [1.6, 2, 1.6], "color": "#2e7d32"}]}, "map_metablock_estates.json": {"themeName": "MetaBlock Estates", "backgroundColor": "#101014", "blocks": [{"type": "mb_streetscape", "position": [0, 0, 0], "scale": [220, 1, 160], "color": "#5f8f3a", "label": "MetaBlock Estates"}, {"type": "mb_hub", "position": [0, 0, 0], "scale": [30, 14, 20], "color": "#ecebe7", "label": "Brokers Hub"}, {"type": "mb_mansion", "position": [30, 0, -50], "scale": [18, 7.6, 13], "color": "#ecebe7", "label": "Casa Cantilever", "variant": "cantilever", "id": "casa_cantilever", "yard": 14.5, "rotationY": -1.5707963}, {"type": "mb_mansion", "position": [-30, 0, -50], "scale": [18, 7.6, 13], "color": "#a06c42", "label": "Slat House", "variant": "slat", "id": "slat_house", "yard": 14.5, "rotationY": 1.5707963}, {"type": "mb_mansion", "position": [30, 0, 54], "scale": [18, 10, 13], "color": "#f4f2ee", "label": "Sky Terrace House", "variant": "sky", "id": "sky_terrace", "yard": 14.5, "rotationY": -1.5707963}, {"type": "mb_totem", "position": [8.0, 0.15, -50], "scale": [1, 2.5, 0.4], "color": "#1d1f22", "label": "Casa Cantilever package", "house": "casa_cantilever", "rotationY": -1.5707963}, {"type": "mb_totem", "position": [-8.0, 0.15, -50], "scale": [1, 2.5, 0.4], "color": "#1d1f22", "label": "Slat House package", "house": "slat_house", "rotationY": 1.5707963}, {"type": "mb_totem", "position": [8.0, 0.15, 54], "scale": [1, 2.5, 0.4], "color": "#1d1f22", "label": "Sky Terrace House package", "house": "sky_terrace", "rotationY": -1.5707963}, {"type": "mb_garage", "position": [-62, 0, 0], "scale": [50, 8, 32], "color": "#bdbab3", "label": "The Customization Garage"}, {"type": "mb_gate", "position": [0, 0, 26], "scale": [220, 3, 54], "color": "#2f5a24", "label": "Residents Lane gate"}]}, "map_mob_maze.json": {"themeName": "The Mob Maze", "backgroundColor": "#101024", "blocks": [{"type": "mobmaze_dungeon", "position": [0, 0, 0], "scale": [80, 12, 80], "color": "#4a5878", "label": "The Mob Maze", "seed": 7741}]}, "map_modern_house.json": {"themeName": "Architecture Hacker House", "backgroundColor": "#2f3640", "blocks": [{"type": "concrete_floor", "position": [0, -0.5, 0], "scale": [25, 1, 25], "color": "#dcdde1", "label": "First Floor"}, {"type": "back_wall", "position": [0, 4, -12], "scale": [25, 8, 1], "color": "#353b48"}, {"type": "left_wall", "position": [-12, 4, 0], "scale": [1, 8, 25], "color": "#2f3542"}, {"type": "second_floor_slab", "position": [-3, 4, 0], "scale": [16, 0.4, 23], "color": "#ffffff", "label": "Upper Suite"}, {"type": "stairs_step1", "position": [8, 1, 2], "scale": [2, 1, 2], "color": "#718093"}, {"type": "stairs_step2", "position": [8, 2, 0], "scale": [2, 1, 2], "color": "#718093"}, {"type": "stairs_step3", "position": [8, 3, -2], "scale": [2, 1, 2], "color": "#718093"}, {"type": "sofa", "position": [-5, 0.6, 6], "scale": [5, 1.2, 2], "color": "#e84118", "label": "Living Room Core"}, {"type": "kitchen_counter", "position": [4, 0.8, 8], "scale": [1.5, 1.6, 4], "color": "#f5f6fa"}]}, "map_museum.json": {"themeName": "Museum of Forgotten Hardware & Software", "backgroundColor": "#efebe9", "blocks": [{"type": "museum_floor", "position": [0, -0.25, 0], "scale": [116, 0.5, 116], "color": "#a1887f", "label": "Museum Grounds"}, {"type": "museum_entrance", "position": [0, 5, 52], "scale": [24, 10, 2.4], "color": "#5d4037", "label": "MUSEUM OF FORGOTTEN HARDWARE & SOFTWARE"}, {"type": "giant_floppy", "position": [-30, 5, -25], "scale": [22, 10, 22], "color": "#1e88e5", "label": "Walk-in 3.5\" Floppy Disk (1.44 MB, 1987)"}, {"type": "giant_cpu", "position": [25, 3, -25], "scale": [26, 6, 26], "color": "#455a64", "label": "Giant Pentium-era Processor (66 MHz, 1993)"}, {"type": "crt_parkour", "position": [30, 8, 25], "scale": [18, 16, 16], "color": "#e8dcc4", "label": "CRT Monitor Parkour Maze (14\" VGA, 1990)"}, {"type": "giant_keyboard", "position": [-36, 1, 22], "scale": [30, 2, 11], "color": "#d7ccc8", "label": "Clicky Mechanical Keyboard (1984)"}, {"type": "cassette", "position": [8, 3, -14], "scale": [10, 6, 1.6], "color": "#212121", "label": "Compact Cassette Data Storage (1979)"}, {"type": "cdrom", "position": [0, 1.5, -45], "scale": [10, 3, 10], "color": "#cfd8dc", "label": "CD-ROM Drive & 650 MB Disc (1990)"}, {"type": "tube_wall", "position": [-40, 4, -52], "scale": [32, 8, 2], "color": "#37474f", "label": "Vacuum Tube Computer Wall (1946)"}, {"type": "punch_cards", "position": [40, 4, -52], "scale": [30, 8, 1.4], "color": "#795548", "label": "Punch Card Archive (1890-1970)"}, {"type": "software_wall", "position": [-55, 6, 0], "scale": [1.5, 12, 40], "color": "#263238", "label": "Hall of Forgotten Software: DOS, BASIC, Early Desktops and 90s Homepages"}, {"type": "ball_mouse", "position": [-12, 1.5, -10], "scale": [4, 3, 6], "color": "#e8dcc4", "label": "Ball Mouse (1985)"}, {"type": "mini_hotel", "position": [-44.0, 0, 44.0], "scale": [15, 9, 15], "color": "#63c5c9", "label": "Mini Hotel", "variant": "pod", "name": "Museum of Forgotten Tech Inn"}, {"type": "timeline_hall", "position": [0, 0, 20], "scale": [30, 10, 30], "color": "#c9b79c", "label": "Timeline Hall · Forgotten Software & Hardware"}]}, "map_open_source_hq.json": {"themeName": "Open Source HQ - A 3D Home for Repositories", "backgroundColor": "#f6f8fa", "blocks": [{"type": "oss_plaza_floor", "position": [0, -0.25, 0], "scale": [116, 0.5, 116], "color": "#e6edf3", "label": "Open Source HQ Plaza"}, {"type": "oss_main_building", "position": [0, 9, -42], "scale": [50, 18, 24], "color": "#24292f", "label": "Open Source HQ"}, {"type": "repo_mural", "position": [-50, 4, -10], "scale": [1, 8, 24], "color": "#0d1117", "label": "Code Mural #1 - post with /mural 1 ", "id": "mural1"}, {"type": "repo_mural", "position": [-50, 4, 20], "scale": [1, 8, 24], "color": "#0d1117", "label": "Code Mural #2 - post with /mural 2 ", "id": "mural2"}, {"type": "repo_mural", "position": [50, 4, -10], "scale": [1, 8, 24], "color": "#0d1117", "label": "Code Mural #3 - post with /mural 3 ", "id": "mural3"}, {"type": "repo_mural", "position": [50, 4, 20], "scale": [1, 8, 24], "color": "#0d1117", "label": "Code Mural #4 - post with /mural 4 ", "id": "mural4"}, {"type": "floating_room", "position": [-38, 28, 20], "scale": [12, 1, 12], "color": "#8250df", "label": "Code Review Room A"}, {"type": "floating_room", "position": [0, 34, -14], "scale": [12, 1, 12], "color": "#8250df", "label": "Architecture Room B"}, {"type": "floating_room", "position": [38, 30, 20], "scale": [12, 1, 12], "color": "#8250df", "label": "Pair Programming Room C"}, {"type": "decoration_slot", "position": [24.0, 0.4, 8.0], "scale": [3, 0.8, 3], "color": "#57606a", "label": "Decoration Slot 1 - change it with /pr 1 ", "id": "slot1"}, {"type": "decoration_slot", "position": [17.0, 0.4, 25.0], "scale": [3, 0.8, 3], "color": "#57606a", "label": "Decoration Slot 2 - change it with /pr 2 ", "id": "slot2"}, {"type": "decoration_slot", "position": [0.0, 0.4, 32.0], "scale": [3, 0.8, 3], "color": "#57606a", "label": "Decoration Slot 3 - change it with /pr 3 ", "id": "slot3"}, {"type": "decoration_slot", "position": [-17.0, 0.4, 25.0], "scale": [3, 0.8, 3], "color": "#57606a", "label": "Decoration Slot 4 - change it with /pr 4 ", "id": "slot4"}, {"type": "decoration_slot", "position": [-24.0, 0.4, 8.0], "scale": [3, 0.8, 3], "color": "#57606a", "label": "Decoration Slot 5 - change it with /pr 5 ", "id": "slot5"}, {"type": "decoration_slot", "position": [-17.0, 0.4, -9.0], "scale": [3, 0.8, 3], "color": "#57606a", "label": "Decoration Slot 6 - change it with /pr 6 ", "id": "slot6"}, {"type": "decoration_slot", "position": [-0.0, 0.4, -16.0], "scale": [3, 0.8, 3], "color": "#57606a", "label": "Decoration Slot 7 - change it with /pr 7 ", "id": "slot7"}, {"type": "decoration_slot", "position": [17.0, 0.4, -9.0], "scale": [3, 0.8, 3], "color": "#57606a", "label": "Decoration Slot 8 - change it with /pr 8 ", "id": "slot8"}, {"type": "pr_board", "position": [0, 4, 52], "scale": [16, 8, 0.4], "color": "#0d1117", "label": "Open Pull Requests"}, {"type": "spawn_teleport_pad", "position": [0, 0.1, 8], "scale": [6, 0.2, 6], "color": "#2da44e", "label": "Merge Fountain"}, {"type": "mini_hotel", "position": [-44.0, 0, -44.0], "scale": [14, 12, 14], "color": "#63c5c9", "label": "Mini Hotel", "variant": "cube", "name": "Open Source HQ Inn"}]}, "map_orchard_nexus.json": {"themeName": "The Orchard Nexus", "backgroundColor": "#101014", "blocks": [{"type": "orchard_park", "position": [0, 0, 0], "scale": [160, 1, 140], "color": "#e9ecef", "label": "The Orchard Nexus park"}, {"type": "orchard_grove", "position": [0, 0, 0], "scale": [130, 6, 130], "color": "#2f9e44", "label": "Digital trees"}, {"type": "orchard_glass_cube", "position": [0, 0, 0], "scale": [24, 32, 24], "color": "#e7f5ff", "label": "The Glass Cube"}, {"type": "orchard_smart_room", "room": "living", "innerSide": 1, "position": [-6.25, 8, -7.75], "scale": [9.5, 4.5, 8], "color": "#f8f9fa", "label": "Smart Home: Living Room"}, {"type": "orchard_smart_room", "room": "kitchen", "innerSide": -1, "position": [6.25, 8, -7.75], "scale": [9.5, 4.5, 8], "color": "#f8f9fa", "label": "Smart Home: Kitchen"}, {"type": "orchard_genius_bar", "position": [0, 8, 7], "scale": [14, 1, 1.1], "color": "#ffffff", "label": "Genius Bar AI"}, {"type": "orchard_spatial_quest", "kiosk": [-10, 0, 29], "position": [0, 0, 0], "scale": [1.2, 1.1, 0.8], "color": "#4c6ef5", "label": "The Spatial Quest"}, {"type": "orchard_sign", "position": [0, 0, 63], "scale": [7, 3.2, 0.7], "color": "#e9ecef", "label": "The Orchard Nexus"}, {"type": "orchard_fountain", "position": [20, 0, 20], "scale": [8.4, 1, 8.4], "color": "#4dabf7", "label": "Fountain"}, {"type": "orchard_fountain", "position": [-20, 0, 20], "scale": [8.4, 1, 8.4], "color": "#4dabf7", "label": "Fountain"}, {"type": "orchard_fountain", "position": [20, 0, -20], "scale": [8.4, 1, 8.4], "color": "#4dabf7", "label": "Fountain"}, {"type": "orchard_fountain", "position": [-20, 0, -20], "scale": [8.4, 1, 8.4], "color": "#4dabf7", "label": "Fountain"}]}, "map_parkour_park.json": {"themeName": "Parkour Park - Toki Land Style", "backgroundColor": "#2b2f3a", "blocks": [{"type": "toki_ground", "position": [0, -0.2, 0], "scale": [52, 0.4, 52], "color": "#4e8a3a", "label": "Parkour Park (Toki Land)"}, {"type": "parkour_start", "position": [-20, 0.2, 20], "scale": [4, 0.4, 4], "color": "#40c057", "label": "START"}, {"type": "parkour_platform", "position": [-14, 1, 16], "scale": [3, 0.8, 3], "color": "#f76707"}, {"type": "coin", "position": [-14, 2.6, 16], "scale": [1, 1, 1], "color": "#fcc419", "id": "coin0"}, {"type": "parkour_platform", "position": [-8, 2, 12], "scale": [3, 0.8, 3], "color": "#e03131"}, {"type": "coin", "position": [-8, 3.6, 12], "scale": [1, 1, 1], "color": "#fcc419", "id": "coin1"}, {"type": "parkour_platform", "position": [-2, 3, 10], "scale": [3, 0.8, 3], "color": "#e03131"}, {"type": "coin", "position": [-2, 4.6, 10], "scale": [1, 1, 1], "color": "#fcc419", "id": "coin2"}, {"type": "parkour_platform", "position": [4, 4.2, 8], "scale": [3, 0.8, 3], "color": "#f76707"}, {"type": "coin", "position": [4, 5.800000000000001, 8], "scale": [1, 1, 1], "color": "#fcc419", "id": "coin3"}, {"type": "parkour_platform", "position": [10, 5.4, 4], "scale": [3, 0.8, 3], "color": "#e03131"}, {"type": "coin", "position": [10, 7.0, 4], "scale": [1, 1, 1], "color": "#fcc419", "id": "coin4"}, {"type": "parkour_platform", "position": [14, 6.6, -2], "scale": [3, 0.8, 3], "color": "#e03131"}, {"type": "coin", "position": [14, 8.2, -2], "scale": [1, 1, 1], "color": "#fcc419", "id": "coin5"}, {"type": "parkour_platform", "position": [12, 7.8, -8], "scale": [3, 0.8, 3], "color": "#f76707"}, {"type": "coin", "position": [12, 9.4, -8], "scale": [1, 1, 1], "color": "#fcc419", "id": "coin6"}, {"type": "parkour_platform", "position": [6, 9, -12], "scale": [3, 0.8, 3], "color": "#e03131"}, {"type": "coin", "position": [6, 10.6, -12], "scale": [1, 1, 1], "color": "#fcc419", "id": "coin7"}, {"type": "parkour_platform", "position": [0, 10.2, -14], "scale": [3, 0.8, 3], "color": "#e03131"}, {"type": "coin", "position": [0, 11.799999999999999, -14], "scale": [1, 1, 1], "color": "#fcc419", "id": "coin8"}, {"type": "parkour_platform", "position": [-6, 11.4, -12], "scale": [3, 0.8, 3], "color": "#f76707"}, {"type": "coin", "position": [-6, 13.0, -12], "scale": [1, 1, 1], "color": "#fcc419", "id": "coin9"}, {"type": "parkour_platform", "position": [-12, 12.6, -8], "scale": [3, 0.8, 3], "color": "#e03131"}, {"type": "coin", "position": [-12, 14.2, -8], "scale": [1, 1, 1], "color": "#fcc419", "id": "coin10"}, {"type": "parkour_finish", "position": [-17, 13.4, -4], "scale": [4, 0.4, 4], "color": "#fab005", "label": "FINISH"}, {"type": "parkour_platform", "position": [-17, 12.8, -4], "scale": [5, 0.8, 5], "color": "#fab005"}, {"type": "purple_rocks", "position": [16, 6, 16], "scale": [14, 12, 10], "color": "#7048e8", "label": "Crystal Falls"}, {"type": "bench", "position": [-20, 0, 10], "scale": [2.4, 1, 0.8], "color": "#a8743f"}]}, "map_repository_pavilion.json": {"themeName": "The Repository Pavilion", "backgroundColor": "#0d1117", "blocks": [{"type": "pavilion_floor", "position": [0, -0.5, 0], "scale": [32, 1, 32], "color": "#161b22", "label": "Repository Pavilion Exhibition Floor"}, {"type": "main_branch_walkway", "position": [0, 0.05, 0], "scale": [3, 0.1, 28], "color": "#30363d", "label": "main"}, {"type": "repo_pedestal", "position": [-6, 1, -9], "scale": [3, 2, 3], "color": "#39d353", "label": "README.md"}, {"type": "repo_pedestal", "position": [-6, 1.5, -3], "scale": [3, 3, 3], "color": "#1f6feb", "label": "src/"}, {"type": "repo_pedestal", "position": [-6, 2, 3], "scale": [3, 4, 3], "color": "#26a641", "label": "server.js"}, {"type": "repo_pedestal", "position": [-6, 1, 9], "scale": [3, 2, 3], "color": "#58a6ff", "label": "package.json"}, {"type": "branch_pedestal", "position": [6, 2.5, -9], "scale": [3, 5, 3], "color": "#2ea043", "label": "feature/3d-cursors"}, {"type": "branch_pedestal", "position": [6, 1.5, -3], "scale": [3, 3, 3], "color": "#388bfd", "label": "feature/chat-bubbles"}, {"type": "branch_pedestal", "position": [6, 3, 3], "scale": [3, 6, 3], "color": "#3fb950", "label": "feature/world-instances"}, {"type": "branch_pedestal", "position": [6, 1, 9], "scale": [3, 2, 3], "color": "#79c0ff", "label": "fix/three-cdn"}, {"type": "commit_monument", "position": [0, 4, -14], "scale": [10, 8, 1], "color": "#0e4429", "label": "Commit History Wall"}]}, "map_retro.json": {"themeName": "Retro Contribution Green", "backgroundColor": "#040d04", "blocks": [{"type": "floor", "position": [0, -0.5, 0], "scale": [12, 1, 12], "color": "#0d1b2a"}, {"type": "grid_block", "position": [-2, 0.5, -2], "scale": [1.6, 1, 1.6], "color": "#0e4429", "label": "Low Contribs"}, {"type": "grid_block", "position": [0, 1, 0], "scale": [1.6, 2, 1.6], "color": "#006d32", "label": "Medium Contribs"}, {"type": "grid_block", "position": [2, 1.5, 2], "scale": [1.6, 3, 1.6], "color": "#39d353", "label": "High Contribs"}, {"type": "contribution_graph", "position": [0, 0, 4], "scale": [10, 1, 3.5], "color": "#39d353", "label": "A Year of Contributions"}]}, "map_sandbox_voxels.json": {"themeName": "The Sandbox Voxel Grid Cluster", "backgroundColor": "#0c1020", "blocks": [{"type": "sandbox_land_base", "position": [0, -0.5, 0], "scale": [40, 1, 40], "color": "#00d2ff", "label": "LAND Premium Parcel #166464"}, {"type": "voxel_castle_tower", "position": [-10, 6, -10], "scale": [6, 12, 6], "color": "#34495e", "label": "Alpha Season Hub Tower"}, {"type": "game_quest_npc_zone", "position": [8, 0.1, 8], "scale": [4, 0.2, 4], "color": "#f1c40f", "label": "Play-to-Earn Quest Node"}, {"type": "voxel_bridge", "position": [0, 4, -8], "scale": [12, 0.8, 2], "color": "#e67e22"}, {"type": "nft_display_monolith", "position": [10, 3, -2], "scale": [2, 6, 0.5], "color": "#9b59b6", "label": "VoxEdit Asset Showcase"}]}, "map_silicon_valley.json": {"themeName": "Silicon Valley Tech Campus - Headquarters of the Tech World", "backgroundColor": "#87ceeb", "blocks": [{"type": "campus_ground", "position": [0, -0.2, 0], "scale": [440, 0.4, 380], "color": "#8fc15c", "label": "Silicon Valley Tech Campus"}, {"type": "campus_avenue_road", "position": [0, 0.07, 30], "scale": [10, 0.1, 340], "color": "#4a4f55", "label": "Innovation Avenue"}, {"type": "north_boulevard_road", "position": [0, 0.07, -20], "scale": [420, 0.1, 10], "color": "#4a4f55", "label": "Infinite Loop Boulevard"}, {"type": "south_boulevard_road", "position": [0, 0.07, 125], "scale": [420, 0.1, 10], "color": "#4a4f55", "label": "Hacker Way Boulevard"}, {"type": "square_floor", "position": [0, 0.02, 55], "scale": [60, 0.06, 50], "color": "#d9c7a8", "label": "Campus Plaza"}, {"type": "fountain", "position": [0, 0.5, 55], "scale": [16, 1, 16], "color": "#4dabf7", "label": "Campus Fountain"}, {"type": "arch_gate", "position": [0, 9, 165], "scale": [26, 18, 3], "color": "#e9d8b4", "label": "WELCOME TO SILICON VALLEY"}, {"type": "round_tree", "position": [-24, 3.5, 40], "scale": [4, 7, 4], "color": "#2f9e44"}, {"type": "round_tree", "position": [-24, 3.5, 70], "scale": [4, 7, 4], "color": "#2f9e44"}, {"type": "round_tree", "position": [24, 3.5, 40], "scale": [4, 7, 4], "color": "#2f9e44"}, {"type": "round_tree", "position": [24, 3.5, 70], "scale": [4, 7, 4], "color": "#2f9e44"}, {"type": "apple_park", "position": [-140, 6, -95], "scale": [120, 12, 120], "color": "#f2f2f2", "label": "Apple Park - Cupertino"}, {"type": "googleplex", "position": [5, 7, -80], "scale": [84, 14, 64], "color": "#4285f4", "label": "Googleplex - Mountain View"}, {"type": "meta_campus", "position": [135, 5, -80], "scale": [70, 10, 44], "color": "#0866ff", "label": "Meta - 1 Hacker Way"}, {"type": "hq_anthropic", "position": [-170, 10, 40], "scale": [30, 20, 26], "color": "#d97757", "label": "Anthropic HQ"}, {"type": "hq_openai", "position": [-120, 10, 40], "scale": [30, 20, 26], "color": "#10a37f", "label": "OpenAI HQ"}, {"type": "hq_github", "position": [-70, 10, 40], "scale": [30, 20, 26], "color": "#24292f", "label": "GitHub HQ"}, {"type": "hq_tesla", "position": [70, 10, 40], "scale": [30, 20, 26], "color": "#cc0000", "label": "Tesla HQ"}, {"type": "hq_microsoft", "position": [120, 10, 40], "scale": [30, 20, 26], "color": "#737373", "label": "Microsoft HQ"}, {"type": "hq_intel", "position": [170, 10, 40], "scale": [30, 20, 26], "color": "#0071c5", "label": "Intel HQ"}, {"type": "nvidia_campus", "position": [-170, 7, 85], "scale": [56, 14, 36], "color": "#76b900", "label": "NVIDIA - Endeavor & Voyager"}, {"type": "hq_hp", "position": [-100, 6, 90], "scale": [30, 12, 24], "color": "#0096d6", "label": "HP"}, {"type": "hq_linkedin", "position": [-55, 7, 90], "scale": [26, 14, 22], "color": "#0a66c2", "label": "LinkedIn"}, {"type": "hq_uber", "position": [55, 7, 90], "scale": [26, 14, 22], "color": "#000000", "label": "Uber"}, {"type": "hq_netflix", "position": [100, 6, 90], "scale": [30, 12, 24], "color": "#e50914", "label": "Netflix"}, {"type": "hq_cisco", "position": [160, 6, 90], "scale": [36, 12, 26], "color": "#049fd9", "label": "Cisco"}, {"type": "oracle_campus", "position": [-150, 0, 160], "scale": [50, 24, 44], "color": "#c74634", "label": "Oracle"}, {"type": "ea_campus", "position": [-75, 7, 160], "scale": [44, 14, 34], "color": "#ff4747", "label": "Electronic Arts"}, {"type": "adobe_towers", "position": [75, 20, 160], "scale": [40, 40, 30], "color": "#fa0f00", "label": "Adobe"}, {"type": "hq_ebay", "position": [150, 6, 160], "scale": [30, 12, 24], "color": "#e53238", "label": "eBay"}, {"type": "tree_cluster", "position": [-200, 0, -20], "scale": [30, 1, 300], "color": "#2e7d32"}, {"type": "tree_cluster", "position": [200, 0, -20], "scale": [30, 1, 300], "color": "#2e7d32"}, {"type": "tree_cluster", "position": [0, 0, -150], "scale": [380, 1, 20], "color": "#2e7d32"}, {"type": "tree_cluster", "position": [0, 0, 185], "scale": [380, 1, 10], "color": "#2e7d32"}, {"type": "billboard", "position": [-90, 6, -6], "scale": [14, 12, 0.6], "color": "#2c3e50", "label": "WELCOME TO SILICON VALLEY"}, {"type": "billboard", "position": [-30, 6, -6], "scale": [14, 12, 0.6], "color": "#1877f2", "label": "GITHUB MULTIVERSE: DEVS ONLY BEYOND THIS POINT"}, {"type": "billboard", "position": [30, 6, -6], "scale": [14, 12, 0.6], "color": "#16a085", "label": "SHIP IT. THEN FIX IT."}, {"type": "billboard", "position": [90, 6, -6], "scale": [14, 12, 0.6], "color": "#d35400", "label": "COMMIT EARLY. COMMIT OFTEN."}, {"type": "mini_hotel", "position": [-204.0, 0, 174.0], "scale": [15, 9, 15], "color": "#63c5c9", "label": "Mini Hotel", "variant": "pod", "name": "Silicon Valley Inn"}, {"type": "bay_area", "position": [0, 0, 0], "scale": [440, 1, 380], "label": "San Francisco Bay Area"}]}, "map_tech_square.json": {"themeName": "Tech Square - Live Data Billboards", "backgroundColor": "#1b1f2a", "blocks": [{"type": "square_floor", "position": [0, -0.2, 0], "scale": [116, 0.4, 116], "color": "#2b2f3a", "label": "Tech Square"}, {"type": "neon_arch", "position": [0, 0, 50], "scale": [24, 12, 1], "color": "#1877f2", "label": "TECH SQUARE"}, {"type": "led_tower", "position": [0, 22, -44], "scale": [30, 44, 14], "color": "#2ea043", "label": "GitHub Mural", "screen": "mural"}, {"type": "led_tower", "position": [-42, 20, -10], "scale": [14, 40, 26], "color": "#1877f2", "label": "Big Tech Scoreboard", "screen": "scoreboard"}, {"type": "led_tower", "position": [42, 20, -10], "scale": [14, 40, 26], "color": "#ff6600", "label": "Dev Trending Topics", "screen": "trends"}, {"type": "ticker_tower", "position": [-40, 17, 34], "scale": [12, 34, 12], "color": "#ffd43b", "label": "Live Ticker"}, {"type": "ticker_tower", "position": [40, 17, 34], "scale": [12, 34, 12], "color": "#ffd43b", "label": "Live Ticker"}, {"type": "stock_podium", "position": [-22, 0, -4], "scale": [14, 0.6, 4], "color": "#161b22", "label": "Stock bars"}, {"type": "lamp_post", "position": [-14, 3, 18], "scale": [0.4, 6, 0.4], "color": "#fff3c4"}, {"type": "lamp_post", "position": [14, 3, 18], "scale": [0.4, 6, 0.4], "color": "#fff3c4"}, {"type": "lamp_post", "position": [-14, 3, 36], "scale": [0.4, 6, 0.4], "color": "#fff3c4"}, {"type": "lamp_post", "position": [14, 3, 36], "scale": [0.4, 6, 0.4], "color": "#fff3c4"}, {"type": "bench", "position": [-24, 0, 10], "scale": [2.4, 1, 0.8], "color": "#a8743f"}, {"type": "bench", "position": [24, 0, 10], "scale": [2.4, 1, 0.8], "color": "#a8743f"}, {"type": "bench", "position": [0, 0, 22], "scale": [2.4, 1, 0.8], "color": "#a8743f"}, {"type": "announcement_kiosk", "position": [12, 3, 6], "scale": [4, 6, 0.6], "color": "#3a3f4b", "label": "LIVE DATA|GitHub · Nasdaq · Dev trends|refreshed by the server"}, {"type": "shibuya_building", "position": [-44, 0, -44], "scale": [16, 26, 14], "color": "#ffffff", "label": "Shibuya-style building", "variant": "stripes", "seed": 0}, {"type": "shibuya_building", "position": [44, 0, -44], "scale": [16, 30, 14], "color": "#ffffff", "label": "Shibuya-style building", "variant": "pastel", "seed": 3}, {"type": "shibuya_building", "position": [-40, 0, 52], "scale": [18, 22, 10], "color": "#ffffff", "label": "Shibuya-style building", "variant": "pastel", "seed": 6, "rotationY": 3.14159}, {"type": "shibuya_building", "position": [40, 0, 52], "scale": [18, 18, 10], "color": "#ffffff", "label": "Shibuya-style building", "variant": "corner", "slogan": "WHATEVER YOU CODE", "rotationY": 3.14159}, {"type": "shibuya_building", "position": [-50, 0, 18], "scale": [8, 20, 12], "color": "#ffffff", "label": "Shibuya-style building", "variant": "stripes", "seed": 7, "rotationY": 1.5708}, {"type": "shibuya_building", "position": [50, 0, 18], "scale": [8, 24, 12], "color": "#ffffff", "label": "Shibuya-style building", "variant": "pastel", "seed": 1, "rotationY": -1.5708}, {"type": "events_screen", "position": [24, 0, 24], "scale": [14, 12, 1], "color": "#a371f7", "label": "GitHub events", "rotationY": -2.36}, {"type": "universe_replays", "position": [-24, 0, 24], "scale": [11, 10, 1], "color": "#a371f7", "label": "GitHub Universe replays", "rotationY": 2.36}, {"type": "roadster_reel", "position": [22, 0, -22], "scale": [12, 11, 1], "label": "Tesla Roadster reel"}, {"type": "apple_reel", "position": [-24, 0, -28], "scale": [12, 11, 1], "label": "Apple animations reel"}]}, "map_terminal_apex.json": {"themeName": "The Terminal Apex", "backgroundColor": "#101014", "blocks": [{"type": "terminal_forecourt", "position": [0, 0, 0], "scale": [94, 0.1, 94], "color": "#3d4047", "label": "Terminal Apex forecourt"}, {"type": "terminal_apex", "position": [0, 0, -22], "scale": [40, 30, 18], "color": "#141418", "label": "The Terminal Apex (The >_ Root)"}, {"type": "terminal_sign", "position": [0, 0, 10], "scale": [13, 3.2, 0.6], "color": "#0c0c0c", "label": "THE TERMINAL APEX >_ ROOT"}, {"type": "terminal_bench", "position": [-13, 0.1, 2], "scale": [2.4, 1, 0.6], "color": "#4a3a2c", "label": "Bench", "rotationY": 1.5708}, {"type": "terminal_bench", "position": [-13, 0.1, 14], "scale": [2.4, 1, 0.6], "color": "#4a3a2c", "label": "Bench", "rotationY": 1.5708}, {"type": "terminal_bench", "position": [-13, 0.1, 26], "scale": [2.4, 1, 0.6], "color": "#4a3a2c", "label": "Bench", "rotationY": 1.5708}, {"type": "terminal_bench", "position": [13, 0.1, 2], "scale": [2.4, 1, 0.6], "color": "#4a3a2c", "label": "Bench", "rotationY": -1.5708}, {"type": "terminal_bench", "position": [13, 0.1, 14], "scale": [2.4, 1, 0.6], "color": "#4a3a2c", "label": "Bench", "rotationY": -1.5708}, {"type": "terminal_bench", "position": [13, 0.1, 26], "scale": [2.4, 1, 0.6], "color": "#4a3a2c", "label": "Bench", "rotationY": -1.5708}, {"type": "terminal_lamp", "position": [-7, 0.1, -2], "scale": [1, 4.6, 1], "color": "#24262d", "label": "Lamp post"}, {"type": "terminal_lamp", "position": [-7, 0.1, 8], "scale": [1, 4.6, 1], "color": "#24262d", "label": "Lamp post"}, {"type": "terminal_lamp", "position": [-7, 0.1, 18], "scale": [1, 4.6, 1], "color": "#24262d", "label": "Lamp post"}, {"type": "terminal_lamp", "position": [-7, 0.1, 28], "scale": [1, 4.6, 1], "color": "#24262d", "label": "Lamp post"}, {"type": "terminal_lamp", "position": [-7, 0.1, 38], "scale": [1, 4.6, 1], "color": "#24262d", "label": "Lamp post"}, {"type": "terminal_lamp", "position": [7, 0.1, -2], "scale": [1, 4.6, 1], "color": "#24262d", "label": "Lamp post"}, {"type": "terminal_lamp", "position": [7, 0.1, 8], "scale": [1, 4.6, 1], "color": "#24262d", "label": "Lamp post"}, {"type": "terminal_lamp", "position": [7, 0.1, 18], "scale": [1, 4.6, 1], "color": "#24262d", "label": "Lamp post"}, {"type": "terminal_lamp", "position": [7, 0.1, 28], "scale": [1, 4.6, 1], "color": "#24262d", "label": "Lamp post"}, {"type": "terminal_lamp", "position": [7, 0.1, 38], "scale": [1, 4.6, 1], "color": "#24262d", "label": "Lamp post"}, {"type": "round_tree", "position": [-30, 0.1, -20], "scale": [3, 6, 3], "color": "#3f8f4f", "label": "Tree"}, {"type": "round_tree", "position": [30, 0.1, -20], "scale": [3, 6, 3], "color": "#3f8f4f", "label": "Tree"}, {"type": "round_tree", "position": [-32, 0.1, 10], "scale": [3, 6, 3], "color": "#3f8f4f", "label": "Tree"}, {"type": "round_tree", "position": [32, 0.1, 10], "scale": [3, 6, 3], "color": "#3f8f4f", "label": "Tree"}, {"type": "round_tree", "position": [-28, 0.1, 34], "scale": [3, 6, 3], "color": "#3f8f4f", "label": "Tree"}, {"type": "round_tree", "position": [28, 0.1, 34], "scale": [3, 6, 3], "color": "#3f8f4f", "label": "Tree"}, {"type": "round_tree", "position": [-40, 0.1, -40], "scale": [3, 6, 3], "color": "#3f8f4f", "label": "Tree"}, {"type": "round_tree", "position": [40, 0.1, -40], "scale": [3, 6, 3], "color": "#3f8f4f", "label": "Tree"}, {"type": "round_tree", "position": [-20, 0.1, 42], "scale": [3, 6, 3], "color": "#3f8f4f", "label": "Tree"}, {"type": "round_tree", "position": [20, 0.1, 42], "scale": [3, 6, 3], "color": "#3f8f4f", "label": "Tree"}]}, "map_upland_voxels.json": {"themeName": "Upland Real Estate Mapping & Cryptovoxels Gallery", "backgroundColor": "#1a1a1a", "blocks": [{"type": "city_ground", "position": [0, -0.2, 0], "scale": [36, 0.4, 36], "color": "#2a2a2a"}, {"type": "upland_san_francisco_street", "position": [0, 0.05, 0], "scale": [30, 0.1, 4], "color": "#555555", "label": "Mirrored Real World Geography Boulevard"}, {"type": "minted_property_1", "position": [-6, 2, -8], "scale": [6, 4, 6], "color": "#27ae60", "label": "Upland Minted Property (NFT Deed)"}, {"type": "unminted_property_2", "position": [6, 2, -8], "scale": [6, 4, 6], "color": "#7f8c8d", "label": "Locked Real Estate (Available for Mint)"}, {"type": "voxels_vertical_gallery", "position": [0, 4, 10], "scale": [16, 8, 0.5], "color": "#ffffff", "label": "Cryptovoxels Lean Web-GL Art Wall"}]}, "map_world_zen.json": {"themeName": "Private World Instance: Zen Floating Temple", "backgroundColor": "#a4b0be", "blocks": [{"type": "floating_island_base", "position": [0, 0, 0], "scale": [24, 4, 24], "color": "#2ed573", "label": "Isolated World Chunk (Off-Chain Instance)"}, {"type": "meditation_altar", "position": [0, 2.4, 0], "scale": [4, 0.8, 4], "color": "#ffa502", "label": "Zen Mindful Coding Anchor"}, {"type": "corporate_boardroom_table", "position": [0, 2.2, -6], "scale": [3, 0.4, 6], "color": "#747d8c", "label": "Private Meeting Node"}, {"type": "waterfall_drain", "position": [0, -2, 11], "scale": [4, 6, 0.5], "color": "#70a1ff"}, {"type": "sky_waterfall", "position": [0, -1.6, 13], "scale": [2.2, 14.84, 2.2], "color": "#74c0fc", "label": "Sky waterfall", "top": [0, 6.3, -16.8]}]}, "map_the_hotel_lodge.json": {"themeName": "The Hotel", "backgroundColor": "#20301f", "blocks": [{"type": "lodge_hotel", "position": [0, 0, 22], "scale": [22, 10, 18], "color": "#5a3a24", "label": "The Hotel", "title": "The Hotel", "forest": true}]}, "map_devlife_museum.json": {"themeName": "Developers Daily Life", "backgroundColor": "#dfe3e8", "blocks": [{"type": "devlife_museum", "position": [0, 0, -8], "scale": [70, 13, 50], "label": "Developers Daily Life"}, {"type": "round_tree", "position": [-36, 3.5, 32.5], "scale": [4, 7, 4], "color": "#2f7e5a"}, {"type": "round_tree", "position": [-24, 3.5, 32.5], "scale": [4, 7, 4], "color": "#2f7e5a"}, {"type": "round_tree", "position": [24, 3.5, 32.5], "scale": [4, 7, 4], "color": "#2f7e5a"}, {"type": "round_tree", "position": [36, 3.5, 32.5], "scale": [4, 7, 4], "color": "#2f7e5a"}, {"type": "round_tree", "position": [-40, 3.5, -30], "scale": [4, 7, 4], "color": "#3a8a4f"}, {"type": "round_tree", "position": [-40, 3.5, -12], "scale": [4, 7, 4], "color": "#3a8a4f"}, {"type": "round_tree", "position": [-40, 3.5, 6], "scale": [4, 7, 4], "color": "#3a8a4f"}, {"type": "round_tree", "position": [40, 3.5, -30], "scale": [4, 7, 4], "color": "#3a8a4f"}, {"type": "round_tree", "position": [40, 3.5, -12], "scale": [4, 7, 4], "color": "#3a8a4f"}, {"type": "round_tree", "position": [40, 3.5, 6], "scale": [4, 7, 4], "color": "#3a8a4f"}, {"type": "lamp_post", "position": [-12, 3, 31], "scale": [0.4, 6, 0.4], "color": "#fff3c4"}, {"type": "lamp_post", "position": [12, 3, 31], "scale": [0.4, 6, 0.4], "color": "#fff3c4"}, {"type": "lamp_post", "position": [-40, 3, 20], "scale": [0.4, 6, 0.4], "color": "#fff3c4"}, {"type": "lamp_post", "position": [40, 3, 20], "scale": [0.4, 6, 0.4], "color": "#fff3c4"}, {"type": "bench", "position": [-18, 0, 26], "scale": [2.4, 1, 0.8], "color": "#9c6b43"}, {"type": "bench", "position": [18, 0, 26], "scale": [2.4, 1, 0.8], "color": "#9c6b43"}]}, "map_squid_game.json": {"themeName": "Squid Game Epic Edition", "backgroundColor": "#f6b8cc", "blocks": [{"type": "sgee_redlight", "position": [0, 0, 0], "scale": [140, 30, 110], "label": "Red Build, Green Build"}, {"type": "sgee_bridge", "position": [0, 0, 0], "scale": [140, 30, 110], "label": "Glass Bridge of Code Review"}, {"type": "sgee_dorm", "position": [0, 0, 0], "scale": [140, 30, 110], "label": "Dormitory"}, {"type": "sgee_tug", "position": [0, 0, 0], "scale": [140, 30, 110], "label": "Merge Conflict Tug of War"}, {"type": "sgee_honeycomb", "position": [0, 0, 0], "scale": [140, 30, 110], "label": "Regex Honeycomb"}, {"type": "sgee_marbles", "position": [0, 0, 0], "scale": [140, 30, 110], "label": "Odd or Even Commits"}, {"type": "sgee_core", "position": [0, 0, 0], "scale": [140, 30, 110], "label": "Squid Game Epic Edition"}]}}} \ No newline at end of file diff --git a/public/maps/github_events.json b/public/maps/github_events.json index b00a7a5..3eac639 100644 --- a/public/maps/github_events.json +++ b/public/maps/github_events.json @@ -29,5 +29,15 @@ "end": 0 } ] + }, + "appleReel": { + "_how_to": "Apple animation videos played back to back on the Tech Square reel screen. 'start' and 'end' are seconds into each official video (end 0 = until the video ends). Only animation segments: add clips of jGztGfRujSE here with the start and end of each part that has no people talking.", + "clips": [ + { + "video": "https://youtu.be/z0v8BRC1664", + "start": 0, + "end": 0 + } + ] } } diff --git a/public/maps/map_decentraland.json b/public/maps/map_decentraland.json index 1023aa7..c6a6c34 100644 --- a/public/maps/map_decentraland.json +++ b/public/maps/map_decentraland.json @@ -1407,6 +1407,20 @@ ], "color": "#e9ecf2", "label": "Genesis spawn hub" + }, + { + "type": "community_portals", + "position": [ + -62, + 0, + 42 + ], + "scale": [ + 44, + 4, + 44 + ], + "label": "Community Portals" } ] } \ No newline at end of file diff --git a/public/plaza.js b/public/plaza.js index 141cc73..24f4cd1 100644 --- a/public/plaza.js +++ b/public/plaza.js @@ -2786,7 +2786,273 @@ [/plaza_tower/, 'plazaTower'], [/hot_air_balloon/, 'hotAirBalloon'], [/hydrant/, 'hydrant'], [/info_kiosk/, 'infoKiosk'], [/welcome_hall/, 'welcomeHall'], [/events_wall/, 'eventsWall'], [/glow_ring/, 'glowRing'], [/announcement_kiosk/, 'announcementKiosk'], [/^pond/, 'pond'], [/poster_wall/, 'posterWall'], [/square_pool/, 'squarePool'], [/underground_hall/, 'undergroundHall'], - [/^firepit/, 'firepit'], [/mini_game_arena/, 'miniGameArena'], [/teleport_portal/, 'teleportPortal'], [/sky_platform/, 'skyPlatform'], [/metro_station/, 'metroStation'] + [/^firepit/, 'firepit'], [/mini_game_arena/, 'miniGameArena'], [/teleport_portal/, 'teleportPortal'], [/sky_platform/, 'skyPlatform'], [/metro_station/, 'metroStation'], + [/community_portals/, 'communityPortals'] ]; + // Community Portals: six discreet totems in an arc behind the spawn, each a + // short curved wall with two simple lamps, a minimalist totem with a sign + // (project title, author, URL) and a glowing portal ring. E on a free slot + // rents it (100 MVC, 24 h); walking into a rented portal opens its card. + builders.communityPortals = function communityPortals(group, { w }) { + const radius = (w || 40) * 0.42; + const stone = material('#e4e7ec', { roughness: 0.75 }); + const metal = material('#3b4250', { metalness: 0.6, roughness: 0.4 }); + for (let i = 0; i < 6; i++) { + const angle = THREE.MathUtils.degToRad(28 + i * 24.8); + const slot = new THREE.Group(); + slot.position.set(Math.cos(angle) * radius, 0, Math.sin(angle) * radius); + slot.rotation.y = Math.atan2(-slot.position.x, -slot.position.z); // facing the spawn + // Short curved wall behind the portal + const wall = mesh(new THREE.CylinderGeometry(2.7, 2.7, 1.5, 24, 1, true, Math.PI - 0.85, 1.7), stone, 0, 0.75, 1.2); + wall.material = stone.clone(); + wall.material.side = THREE.DoubleSide; + slot.add(wall); + slot.add(mesh(new THREE.CylinderGeometry(2.72, 2.72, 0.12, 24, 1, true, Math.PI - 0.85, 1.7), material('#c9ced6'), 0, 1.52, 1.2)); + // Two simple lamps at the wall ends + [-1, 1].forEach((side) => { + const x = Math.sin(0.85) * 2.7 * side; + const z = 1.2 - Math.cos(0.85) * 2.7; + slot.add(cylinder(0.05, 0.06, 2.1, metal, x, 1.05, z, 6)); + slot.add(sphere(0.16, glow('#ffe8b0', 1.2), x, 2.18, z, 10)); + }); + // Portal ring and its shimmering surface + const ring = mesh(new THREE.TorusGeometry(0.95, 0.07, 8, 40), glow('#4dabf7', 1.3), 0, 1.25, 0.15); + slot.add(ring); + const surface = mesh(new THREE.CircleGeometry(0.9, 36), new THREE.MeshBasicMaterial({ color: '#4dabf7', transparent: true, opacity: 0.22, side: THREE.DoubleSide, depthWrite: false }), 0, 1.25, 0.15); + slot.add(surface); + // Minimalist totem with the sign + const canvas = document.createElement('canvas'); + canvas.width = 384; + canvas.height = 640; + const texture = new THREE.CanvasTexture(canvas); + texture.encoding = THREE.sRGBEncoding; + const totem = facedBox(0.9, 1.9, 0.18, metal, new THREE.MeshBasicMaterial({ map: texture }), 1.55, 0.95 + 0.15, 0.2); + slot.add(totem); + slot.add(box(1.05, 0.15, 0.4, metal, 1.55, 0.07, 0.2)); + [totem, ring, surface].forEach((target) => { + PropKit.kit.interactive(target, 'action', `Community Portal ${i + 1}`); + target.userData.onInteract = () => { CommunityPortals.interact(i); return null; }; + }); + animate(surface, (time) => { surface.material.opacity = 0.16 + Math.sin(time * 2.4 + i) * 0.07; ring.rotation.z = time * 0.3; }); + group.add(slot); + CommunityPortals.registerSlot(i, { slot, portal: surface, canvas, texture }); + } + const caption = textSprite('Community Portals · rent one for 24 h', { width: 9 }); + caption.position.set(0, 3.2, radius * 0.95); + group.add(caption); + group.userData.label = 'Community Portals'; + }; + rules.slice().reverse().forEach(([pattern, name]) => PropKit.registerBuilder(pattern, name, builders[name])); })(); + +// ============================================================================ +// COMMUNITY PORTALS: STATE, SIGNS, RENT MODAL AND PROJECT CARD +// ============================================================================ +// The server keeps the six slots (24 h each, 100 MVC) and broadcasts every +// change ("portals_state"); this module draws the signs, opens the rent form +// on a free slot and the project card (with an external link warning) on a +// rented one, also when the player walks into its portal. +const CommunityPortals = (() => { + const slots = []; + let state = Array.from({ length: 6 }, () => null); + let socket = null; + let hooks = { system: () => {} }; + let overlay = null; + let insidePortal = -1; + const probe = new THREE.Vector3(); + const esc = (text) => String(text == null ? '' : text).replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c])); + + function wrap(ctx, text, x, y, maxWidth, lineHeight, maxLines) { + const words = String(text).split(/\s+/); + let line = ''; + let lines = 0; + for (const word of words) { + const test = line ? `${line} ${word}` : word; + if (ctx.measureText(test).width > maxWidth && line) { + ctx.fillText(line, x, y + lines * lineHeight); + lines += 1; + line = word; + if (lines >= maxLines) return; + } else line = test; + } + if (line && lines < maxLines) ctx.fillText(line, x, y + lines * lineHeight); + } + + function drawSign(index) { + const entry = slots[index]; + if (!entry) return; + const { canvas, texture } = entry; + const ctx = canvas.getContext('2d'); + const data = state[index]; + ctx.fillStyle = '#f7f8fa'; + ctx.fillRect(0, 0, canvas.width, canvas.height); + ctx.fillStyle = data ? '#1877f2' : '#adb5bd'; + ctx.fillRect(0, 0, canvas.width, 10); + ctx.fillStyle = '#868e96'; + ctx.font = '600 22px Segoe UI, Arial, sans-serif'; + ctx.fillText(`COMMUNITY PORTAL ${index + 1}`, 28, 58); + if (data) { + ctx.fillStyle = '#0d1b3e'; + ctx.font = 'bold 40px Segoe UI, Arial, sans-serif'; + wrap(ctx, data.title, 28, 130, canvas.width - 56, 46, 3); + ctx.fillStyle = '#495057'; + ctx.font = '24px Segoe UI, Arial, sans-serif'; + wrap(ctx, data.description, 28, 300, canvas.width - 56, 32, 3); + ctx.fillStyle = '#1877f2'; + ctx.font = '600 22px Segoe UI, Arial, sans-serif'; + wrap(ctx, data.host || '', 28, 450, canvas.width - 56, 28, 2); + ctx.fillStyle = '#868e96'; + ctx.font = '20px Segoe UI, Arial, sans-serif'; + ctx.fillText(`by ${data.author}`, 28, 540); + ctx.fillText(`${Math.max(1, Math.ceil((data.expiresAt - Date.now()) / 3600000))} h left · E for details`, 28, 580); + } else { + ctx.fillStyle = '#0d1b3e'; + ctx.font = 'bold 44px Segoe UI, Arial, sans-serif'; + ctx.fillText('Available', 28, 150); + ctx.fillStyle = '#495057'; + ctx.font = '24px Segoe UI, Arial, sans-serif'; + wrap(ctx, 'Show your site or dev project here for 24 hours.', 28, 220, canvas.width - 56, 32, 4); + ctx.fillStyle = '#2f9e44'; + ctx.font = 'bold 30px Segoe UI, Arial, sans-serif'; + ctx.fillText('100 MVC', 28, 420); + ctx.fillStyle = '#868e96'; + ctx.font = '20px Segoe UI, Arial, sans-serif'; + ctx.fillText('Press E to rent', 28, 580); + } + texture.needsUpdate = true; + } + + function registerSlot(index, entry) { + slots[index] = entry; + drawSign(index); + } + + function setState(list) { + if (!Array.isArray(list)) return; + state = Array.from({ length: 6 }, (unused, i) => list[i] || null); + state.forEach((unused, i) => drawSign(i)); + } + + function css() { + if (document.getElementById('portal-style')) return; + const style = document.createElement('style'); + style.id = 'portal-style'; + style.textContent = ` + #portal-overlay { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 12, 20, 0.55); font-family: var(--font, "Segoe UI", Arial, sans-serif); } + #portal-overlay .pt-card { width: min(420px, 100%); box-sizing: border-box; padding: 22px; border-radius: 16px; background: var(--panel-bg, rgba(14, 25, 52, 0.95)); border: 1px solid var(--panel-border, rgba(255,255,255,0.12)); color: #f0f0f5; box-shadow: 0 20px 50px rgba(0,0,0,0.45); } + #portal-overlay h3 { margin: 0 0 4px; font-size: 18px; } + #portal-overlay .pt-sub { margin: 0 0 14px; color: #a9b4c8; font-size: 13px; } + #portal-overlay label { display: block; margin: 10px 0 4px; font-size: 12px; color: #c9d1e0; } + #portal-overlay input, #portal-overlay textarea { width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: #fff; font: 14px inherit; resize: none; } + #portal-overlay .pt-count { float: right; color: #7d8aa3; } + #portal-overlay .pt-error { min-height: 18px; margin: 10px 0 0; color: #ff8fa3; font-size: 13px; } + #portal-overlay .pt-warn { margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: rgba(250, 176, 5, 0.12); border: 1px solid rgba(250, 176, 5, 0.35); color: #ffe08a; font-size: 12.5px; line-height: 1.45; } + #portal-overlay .pt-url { word-break: break-all; color: #74c0fc; font-size: 13px; } + #portal-overlay .pt-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; } + #portal-overlay button, #portal-overlay a.pt-open { padding: 9px 16px; border-radius: 10px; border: 0; cursor: pointer; font: 600 14px inherit; text-decoration: none; } + #portal-overlay .pt-cancel { background: rgba(255,255,255,0.1); color: #fff; } + #portal-overlay .pt-go, #portal-overlay a.pt-open { background: #1877f2; color: #fff; } + #portal-overlay .pt-go[disabled] { opacity: 0.6; cursor: wait; } + `; + document.head.appendChild(style); + } + + function close() { + if (overlay) { overlay.remove(); overlay = null; } + } + function isOpen() { return Boolean(overlay); } + + function open(html) { + css(); + close(); + overlay = document.createElement('div'); + overlay.id = 'portal-overlay'; + overlay.innerHTML = `
${html}
`; + overlay.addEventListener('click', (event) => { if (event.target === overlay) close(); }); + overlay.addEventListener('keydown', (event) => { if (event.key === 'Escape') { event.stopPropagation(); close(); } }); + document.body.appendChild(overlay); + return overlay; + } + + // A rented portal: description, an external link warning and a button that + // opens the site in a new tab + function showProject(index) { + const data = state[index]; + if (!data) return; + const view = open(`

${esc(data.title)}

by ${esc(data.author)} · Community Portal ${index + 1}

+

${esc(data.description)}

${esc(data.url)}
+
This link leaves GitHub Multiverse and opens an external site chosen by another player. Check the address before entering any data there.
+ `); + view.querySelector('.pt-cancel').addEventListener('click', close); + view.querySelector('.pt-open').addEventListener('click', () => setTimeout(close, 100)); + view.querySelector('.pt-open').focus(); + } + + // A free portal: title (30), short description (80) and an https:// URL for 100 MVC + function showRent(index) { + if (!socket) { hooks.system('Renting a Community Portal needs the multiplayer server.'); return; } + const view = open(`

Rent Community Portal ${index + 1}

24 hours for 100 MVC · everyone in Genesis Plaza sees it

+
+ + +

`); + const form = view.querySelector('form'); + const error = view.querySelector('.pt-error'); + form.querySelectorAll('input, textarea').forEach((field) => field.addEventListener('input', () => { + const counter = view.querySelector(`.pt-count[data-for="${field.name}"]`); + if (counter) counter.textContent = `${field.value.length}/${field.maxLength}`; + })); + view.querySelector('.pt-cancel').addEventListener('click', close); + form.addEventListener('submit', (event) => { + event.preventDefault(); + const title = form.title.value.trim(); + const description = form.description.value.trim(); + const url = form.url.value.trim(); + if (!title || !description) { error.textContent = 'Fill in the title and the description.'; return; } + if (!/^https:\/\/[^\s]+\.[^\s]+$/i.test(url)) { error.textContent = 'The URL must start with https://'; return; } + const button = form.querySelector('.pt-go'); + button.disabled = true; + button.textContent = 'Renting...'; + socket.emit('portal_rent', { slot: index, title, description, url }, (reply = {}) => { + button.disabled = false; + button.textContent = 'Rent for 100 MVC'; + if (reply.error) { error.textContent = reply.error; return; } + close(); + hooks.system(`Community Portal ${index + 1} is yours for 24 hours: "${title}".`); + }); + }); + form.title.focus(); + } + + function interact(index) { + if (state[index]) showProject(index); + else showRent(index); + } + + // Walking into a rented portal opens its card once (again after stepping away) + function update(position) { + if (!position || overlay) return; + let inside = -1; + slots.forEach((entry, index) => { + if (!entry || !state[index]) return; + entry.portal.getWorldPosition(probe); + if (Math.hypot(probe.x - position.x, probe.z - position.z) < 1.1 && Math.abs(probe.y - 1.25 - position.y) < 2.5) inside = index; + }); + if (inside >= 0 && inside !== insidePortal) showProject(inside); + insidePortal = inside; + } + + function connect(networkSocket, options = {}) { + hooks = { ...hooks, ...options }; + socket = networkSocket || null; + if (!socket) return; + socket.on('portals_state', setState); + socket.emit('portals_list', setState); + } + + // Signs show the hours left: refresh them every few minutes + setInterval(() => state.forEach((data, i) => { if (data) drawSign(i); }), 5 * 60 * 1000); + + return { registerSlot, interact, update, connect, close, isOpen }; +})(); diff --git a/public/props.js b/public/props.js index 6f7a5a0..308742e 100644 --- a/public/props.js +++ b/public/props.js @@ -1829,6 +1829,7 @@ vec3 grainPerturb( vec3 surfPos, vec3 surfNorm, vec2 dHdxy, float faceDir ) { const treeMaterials = new Map(); function treeMaterial(variant = 'green') { if (!treeMaterials.has(variant)) treeMaterials.set(variant, new THREE.MeshStandardMaterial({ map: treeAtlas(variant), vertexColors: true, alphaTest: 0.45, side: THREE.DoubleSide, roughness: 0.85 })); + treeMaterials.get(variant).userData.variant = variant; return treeMaterials.get(variant); } @@ -1914,6 +1915,7 @@ vec3 grainPerturb( vec3 surfPos, vec3 surfNorm, vec2 dHdxy, float faceDir ) { } } const geometry = mergeTreeParts(parts); + geometry.userData.treeKind = kind; treeGeometryCache.set(kind, geometry); return geometry; } diff --git a/public/techsquare.js b/public/techsquare.js index 23474f0..2cbc467 100644 --- a/public/techsquare.js +++ b/public/techsquare.js @@ -349,7 +349,7 @@ const TechSquare = (() => { }; const rules = [ - [/shibuya_building/, 'shibuyaBuilding'], [/events_screen/, 'eventsScreen'], [/universe_replays/, 'universeReplays'], [/roadster_reel/, 'roadsterReel'],[/led_tower/, 'ledTower'], [/ticker_tower/, 'tickerTower'], [/stock_podium/, 'stockPodium'], [/neon_arch/, 'neonArch']]; + [/shibuya_building/, 'shibuyaBuilding'], [/events_screen/, 'eventsScreen'], [/universe_replays/, 'universeReplays'], [/roadster_reel/, 'roadsterReel'], [/apple_reel/, 'appleReel'],[/led_tower/, 'ledTower'], [/ticker_tower/, 'tickerTower'], [/stock_podium/, 'stockPodium'], [/neon_arch/, 'neonArch']]; // --------------------------------------------------------------------------- // GitHub events screen: countdown to the next annual event (GitHub Universe), // a LIVE badge while it happens, and the official livestream on the screen @@ -400,6 +400,30 @@ const TechSquare = (() => { }).catch(() => {}); } + // Apple animations reel: official Apple animation videos back to back (only + // the animated parts; clips and their start/end seconds live in + // maps/github_events.json under "appleReel") + function appleReel(group, { w, h }) { + const aluminum = material('#c9ccd1', { metalness: 0.85, roughness: 0.3 }); + [-1, 1].forEach((side) => group.add(box(0.5, h, 0.5, aluminum, side * (w / 2 + 0.25), h / 2, 0))); + const screenHeight = w * 9 / 16; + const screen = box(w, screenHeight, 0.2, material('#000000'), 0, h - screenHeight / 2 - 0.3, 0); + group.add(screen); + group.add(box(w + 0.6, 0.3, 0.6, glow('#f5f5f7', 1.2), 0, h - screenHeight - 0.6, 0)); + const caption = textSprite('Apple animations · reel (V for sound)', { width: 8, background: 'rgba(29, 29, 31, 0.92)' }); + caption.position.set(0, h + 0.8, 0.2); + group.add(caption); + group.userData.label = 'Apple animations reel'; + fetch('maps/github_events.json').then((response) => response.json()).then((data) => { + const clips = ((data.appleReel && data.appleReel.clips) || []) + .map((clip) => ({ id: youtubeId(clip.video) || (/^[\w-]{11}$/.test(clip.video || '') ? clip.video : null), start: Math.max(0, Math.floor(clip.start || 0)), end: clip.end ? Math.floor(clip.end) : '' })) + .filter((clip) => clip.id); + if (!clips.length) return; + const reel = clips.map((clip) => `${clip.id}:${clip.start}-${clip.end}`).join(','); + VideoScreens.register(screen, w, screenHeight, `reel.html?s=${encodeURIComponent(reel)}&mute=1`, { distance: 90 }); + }).catch(() => {}); + } + function eventsScreen(group, { w, h }) { const steel = material('#2b2d33', { metalness: 0.8, roughness: 0.35 }); [-1, 1].forEach((side) => group.add(box(0.6, h, 0.6, steel, side * (w / 2 + 0.3), h / 2, 0))); @@ -533,6 +557,7 @@ const TechSquare = (() => { eventsScreen, universeReplays, roadsterReel, + appleReel, shibuyaBuilding(group, { w, h, d, data }) { const variant = (data && data.variant) || 'stripes'; const seed = (data && data.seed) || 0; diff --git a/public/video.js b/public/video.js index 9594732..77c8bce 100644 --- a/public/video.js +++ b/public/video.js @@ -31,8 +31,10 @@ const VideoScreens = (() => { return `https://www.youtube.com/embed/videoseries?list=UU${channelId.slice(2)}&autoplay=1&mute=1&loop=1&playsinline=1&rel=0`; } - function register(anchor, width, height, source, { distance = ACTIVATE_DISTANCE } = {}) { - const screen = { anchor, width, height, source, distance, object: null, visible: true }; + // `spatial` screens play with sound on their own, louder as you get closer: + // full volume within `full` meters (inside the venue), silent at `fade` + function register(anchor, width, height, source, { distance = ACTIVATE_DISTANCE, spatial = null } = {}) { + const screen = { anchor, width, height, source, distance, spatial, volume: -1, object: null, visible: true }; screens.push(screen); return { setSource(next) { @@ -50,8 +52,14 @@ const VideoScreens = (() => { element.style.pointerEvents = 'auto'; element.style.background = '#000'; const iframe = document.createElement('iframe'); - // Only the nearest screen plays sound, so streams never overlap - iframe.src = soundOn && screen === audible ? screen.source.replace('mute=1', 'mute=0').replace('muted=true', 'muted=false') : screen.source; + // Only the nearest screen plays sound, so streams never overlap. Spatial + // screens start unmuted at volume 0 and are driven by distance (YouTube's + // player API through postMessage) + if (screen.spatial) { + iframe.src = `${screen.source.replace('mute=1', 'mute=0')}&enablejsapi=1&origin=${encodeURIComponent(location.origin)}`; + screen.volume = -1; + iframe.addEventListener('load', () => { screen.volume = -1; command(screen, 'setVolume', [0]); }); + } else iframe.src = soundOn && screen === audible ? screen.source.replace('mute=1', 'mute=0').replace('muted=true', 'muted=false') : screen.source; iframe.title = 'Video screen'; iframe.allow = 'autoplay; encrypted-media; picture-in-picture'; iframe.allowFullscreen = true; @@ -61,6 +69,19 @@ const VideoScreens = (() => { cssScene.add(screen.object); } + function command(screen, func, args = []) { + const iframe = screen.object && screen.object.element.querySelector('iframe'); + if (iframe && iframe.contentWindow) iframe.contentWindow.postMessage(JSON.stringify({ event: 'command', func, args, id: 1, channel: 'widget' }), '*'); + } + // Volume from distance: 100 inside, a smooth fade to 0 at the edge + function spatialVolume(screen, distance) { + if (screen !== audible || (typeof Sound !== 'undefined' && !Sound.isEnabled())) return 0; + const { full, fade } = screen.spatial; + if (distance <= full) return 100; + const t = Math.min(1, (distance - full) / Math.max(1, fade - full)); + return Math.round(100 * (1 - t) * (1 - t)); + } + function removeIframe(screen) { cssScene.remove(screen.object); screen.object.element.remove(); @@ -98,7 +119,7 @@ const VideoScreens = (() => { if (nearest !== audible) { const previous = audible; audible = nearest; - if (soundOn) [previous, nearest].forEach((screen) => { if (screen && screen.object) removeIframe(screen); }); + if (soundOn) [previous, nearest].forEach((screen) => { if (screen && screen.object && !screen.spatial) removeIframe(screen); }); } } screens.forEach((screen) => { @@ -123,6 +144,14 @@ const VideoScreens = (() => { screen.visible = !blocked; } screen.object.element.style.visibility = screen.visible ? 'visible' : 'hidden'; + if (screen.spatial) { + const target = spatialVolume(screen, worldPosition.distanceTo(avatarPosition)); + if (Math.abs(target - screen.volume) >= 2 || (target === 0 && screen.volume !== 0) || (target === 100 && screen.volume !== 100)) { + screen.volume = target; + command(screen, target > 0 ? 'unMute' : 'mute'); + command(screen, 'setVolume', [target]); + } + } }); cssRenderer.render(cssScene, camera); } @@ -131,7 +160,7 @@ const VideoScreens = (() => { // allow autoplay with sound). Returns the new state. function toggleSound() { soundOn = !soundOn; - screens.forEach((screen) => { if (screen.object) removeIframe(screen); }); + screens.forEach((screen) => { if (screen.object && !screen.spatial) removeIframe(screen); }); return soundOn; } diff --git a/server.js b/server.js index d0dfef8..915c0d6 100644 --- a/server.js +++ b/server.js @@ -597,6 +597,56 @@ io.use((socket, next) => { }); // This manages every developer that connects to your multiverse environment cluster +// ---------------------------------------------------------------------------- +// Community Portals: six totems behind the Genesis Plaza spawn that any dev can +// rent for 24 hours (100 MVC) to show a project: title, short description, +// author and an https link. Slots live in memory and in data/community-portals.json +// and every change is broadcast to all players. +// ---------------------------------------------------------------------------- +const PORTAL_SLOTS = 6; +const PORTAL_PRICE = 100; +const PORTAL_DURATION_MS = 24 * 60 * 60 * 1000; +const PORTALS_FILE = path.join(DATA_DIR, 'community-portals.json'); +let communityPortals = Array.from({ length: PORTAL_SLOTS }, () => null); +try { + const saved = JSON.parse(fs.readFileSync(PORTALS_FILE, 'utf8')); + if (Array.isArray(saved)) communityPortals = Array.from({ length: PORTAL_SLOTS }, (unused, i) => saved[i] || null); +} catch (error) { /* no portals yet */ } +function savePortals() { + fs.mkdirSync(DATA_DIR, { recursive: true }); + fs.writeFile(PORTALS_FILE, JSON.stringify(communityPortals), (error) => { if (error) console.error('[PORTALS] Could not save:', error.message); }); +} +// Frees the slots whose 24 hours are over; returns true when something changed +function expirePortals() { + let changed = false; + communityPortals = communityPortals.map((slot) => { + if (slot && slot.expiresAt <= Date.now()) { changed = true; return null; } + return slot; + }); + if (changed) savePortals(); + return changed; +} +function publicPortals() { + expirePortals(); + return communityPortals.map((slot) => slot && { title: slot.title, description: slot.description, url: slot.url, host: slot.host, author: slot.author, expiresAt: slot.expiresAt }); +} +// Only plain https links to public hosts: no credentials, no local or private +// addresses, no raw IPs and no known IP-logger or link-hiding services +const PORTAL_BLOCKED_HOSTS = /(^|\.)(grabify\.link|iplogger\.(org|com|ru|co)|2no\.co|yip\.su|blasze\.com|ps3cfw\.com|bit\.ly|tinyurl\.com|t\.co|is\.gd|cutt\.ly|shorturl\.at|rb\.gy)$/i; +function validatePortalUrl(raw) { + if (typeof raw !== 'string' || raw.length > 200) return { error: 'The URL must have at most 200 characters.' }; + let url; + try { url = new URL(raw.trim()); } catch (error) { return { error: 'That is not a valid URL.' }; } + if (url.protocol !== 'https:') return { error: 'Only https:// links are accepted.' }; + if (url.username || url.password) return { error: 'Links with a username or password are not accepted.' }; + const host = url.hostname.toLowerCase(); + if (!host.includes('.') || /^[\d.]+$/.test(host) || host.includes(':') || /(^|\.)(localhost|local|internal|lan|home|test|example|invalid)$/.test(host)) return { error: 'Use the public address of the site (no local or IP addresses).' }; + if (PORTAL_BLOCKED_HOSTS.test(host)) return { error: 'Link shorteners and IP loggers are not accepted: use the real address of the site.' }; + if (url.port && url.port !== '443') return { error: 'Use the standard https port.' }; + return { url: url.href, host }; +} +setInterval(() => { if (expirePortals()) io.emit('portals_state', publicPortals()); }, 60 * 1000); + io.on('connection', (socket) => { const account = accounts.users[socket.data.userKey]; const developerTag = account.username; @@ -623,6 +673,32 @@ io.on('connection', (socket) => { socket.emit('game_state', publicGameState()); socket.emit('loot_spawns', publicLoot()); socket.emit('tech_feeds', TechFeeds.snapshot()); + socket.emit('portals_state', publicPortals()); + socket.on('portals_list', (ack) => { if (typeof ack === 'function') ack(publicPortals()); }); + // Rent a free portal for 24 h: validated text and link, 100 MVC from the balance + socket.on('portal_rent', (payload = {}, ack) => { + const reply = typeof ack === 'function' ? ack : () => {}; + const renter = accounts.users[socket.data.userKey]; + if (!renter) return reply({ error: 'Sign in again to rent a portal.' }); + const slot = Number(payload && payload.slot); + if (!Number.isInteger(slot) || slot < 0 || slot >= PORTAL_SLOTS) return reply({ error: 'Unknown portal.' }); + expirePortals(); + if (communityPortals[slot]) return reply({ error: 'This portal was just rented by someone else.' }); + const title = cleanText(payload.title, 30); + const description = cleanText(payload.description, 80); + if (!title) return reply({ error: 'Give your project a title.' }); + if (!description) return reply({ error: 'Add a short description.' }); + const link = validatePortalUrl(payload.url); + if (link.error) return reply({ error: link.error }); + if (walletOf(renter) < PORTAL_PRICE) return reply({ error: `You need ${PORTAL_PRICE} MVC (you have ${walletOf(renter)}).` }); + renter.coins = walletOf(renter) - PORTAL_PRICE; + saveAccounts(); + communityPortals[slot] = { title, description, url: link.url, host: link.host, author: renter.username, ownerKey: socket.data.userKey, rentedAt: Date.now(), expiresAt: Date.now() + PORTAL_DURATION_MS }; + savePortals(); + socket.emit('wallet', { coins: renter.coins, spent: PORTAL_PRICE, reason: 'Community Portal (24 h)' }); + io.emit('portals_state', publicPortals()); + reply({ ok: true, coins: renter.coins }); + }); socket.to(room).emit('new_developer_joined', activeDevelopers[socket.id]); const developer = () => activeDevelopers[socket.id];