-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
338 lines (324 loc) · 19.6 KB
/
Copy pathindex.html
File metadata and controls
338 lines (324 loc) · 19.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
<!doctype html>
<html class="site-loading" lang="en" data-i18n-scope="home" data-home-chapter="arrival" data-i18n-build-version="__NICECHUNK_BUILD_VERSION__">
<head>
<meta charset="UTF-8" />
<script>
(() => {
const rawBuildVersion = document.documentElement.dataset.i18nBuildVersion || "";
const buildVersion = rawBuildVersion.includes("__NICECHUNK_") ? "" : rawBuildVersion;
const versionSuffix = buildVersion ? `?v=${encodeURIComponent(buildVersion)}` : "";
const warmups = [
{ rel: "modulepreload", href: `/chunk.js/chunk/browser-runtime.js${versionSuffix}` },
{ rel: "preload", as: "fetch", type: "application/javascript", href: `/chunk.js/chunk/chunk-build-worker.bundle.js${versionSuffix}` },
];
for (const warmup of warmups) {
const link = document.createElement("link");
Object.assign(link, warmup, { crossOrigin: "anonymous", fetchPriority: "high" });
document.head.append(link);
}
const supported = ["en", "es", "fr", "de", "ja", "ru", "ko", "zh-Hant", "zh-Hans"];
const stored = String(localStorage.getItem("nicechunk.language") || "").trim();
const lower = stored.toLowerCase();
let language = supported.includes(stored) ? stored : supported.find((code) => code.toLowerCase() === lower.split("-")[0]);
if (["zh-tw", "zh-hk", "zh-mo", "zh-hant"].includes(lower)) language = "zh-Hant";
if (["zh", "zh-cn", "zh-sg", "zh-hans"].includes(lower)) language = "zh-Hans";
language ||= "en";
const version = document.documentElement.dataset.i18nBuildVersion || "";
if (version && localStorage.getItem(`nicechunk.home.locale.version.${language}`) === version) return;
const localeBase = "/home/locales";
const url = `${localeBase}/${encodeURIComponent(language)}.json`;
window.__nicechunkLocalePreload = {
language,
localeBase,
promise: fetch(url, { cache: "no-store", headers: { Accept: "application/json" } }),
};
})();
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#0c0e12" />
<meta name="color-scheme" content="dark" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=0.1.53" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=0.1.53" />
<link rel="shortcut icon" href="/favicon.ico?v=0.1.53" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=0.1.53" />
<link rel="manifest" href="/site.webmanifest?v=0.1.53" />
<link rel="preload" as="image" href="/media/home-world-preview-desktop.webp" media="(min-width: 901px)" fetchpriority="high" />
<link rel="preload" as="image" href="/media/home-world-preview-mobile.webp" media="(max-width: 900px)" fetchpriority="high" />
<link rel="preload" as="fetch" type="application/octet-stream" href="/media/home-world-terrain-v1.bin.gz?v=__NICECHUNK_BUILD_VERSION__" crossorigin="anonymous" />
<meta name="description" content="NiceChunk is a playable voxel civilization on Solana Devnet: deterministic terrain, verified mining, physical materials, forging, building, markets, skills, and Guardian relays." data-i18n-content="meta.description" />
<title data-home-i18n="meta.title">NiceChunk | Build the world. Verify the change.</title>
</head>
<body>
<script>
const routeRedirects = {
"/play": "/play/",
"/login": "/login/",
"/player_set": "/player_set/",
"/roadmap": "/roadmap/",
"/world_rule": "/world_rule/",
"/resource_rule": "/resource_rule/",
"/ncm": "/ncm/",
"/ncfm": "/ncfm/",
"/ncm_dna": "/ncm_dna/",
"/elements": "/elements/",
"/docs": "/docs/",
"/whitepaper": "/whitepaper/",
"/fairness": "/fairness/",
"/forging": "/forging/",
"/mining": "/mining/",
"/guardian": "/guardian/",
"/contracts": "/contracts/",
"/trust": "/trust/",
"/proof-of-frontier": "/proof-of-frontier/",
};
if (routeRedirects[window.location.pathname]) {
window.location.replace(routeRedirects[window.location.pathname]);
}
</script>
<div class="home-world-layer" aria-hidden="true">
<div class="home-world-static"></div>
<canvas id="homeWorldCanvas" data-scene-ready="false" data-scene-renderer="chunk.js-webgl2"></canvas>
<div class="home-world-vignette"></div>
<div class="guardian-chat-layer" id="guardianChatLayer" data-active="false">
<div class="guardian-chat-bubble guardian-chat-bubble-boy" id="guardianChatBoy" data-speaking="true">
<span class="guardian-chat-copy" data-home-i18n="watchers.chat.pair0.boy">Hi! 👋</span>
</div>
<div class="guardian-chat-bubble guardian-chat-bubble-girl" id="guardianChatGirl" data-speaking="false">
<span class="guardian-chat-copy" data-home-i18n="watchers.chat.pair0.girl">Hello! 😊</span>
</div>
</div>
</div>
<div class="home-world-loader-backdrop" aria-hidden="true"></div>
<div
class="home-world-loader"
id="homeWorldLoader"
role="progressbar"
aria-label="Building the NiceChunk 3D world"
aria-describedby="homeWorldLoadingStage"
aria-valuemin="0"
aria-valuemax="100"
aria-valuenow="16"
aria-busy="true"
data-site-loading-progress
data-home-i18n-aria-label="loading.aria"
>
<div class="home-world-loader-heading">
<p data-home-i18n="loading.eyebrow">Building the world</p>
<strong data-site-loading-percent>16%</strong>
</div>
<div class="home-world-loader-body">
<div class="home-loader-voxel-grid" aria-hidden="true">
<i class="home-loader-voxel"></i><i class="home-loader-voxel"></i><i class="home-loader-voxel"></i><i class="home-loader-voxel"></i>
<i class="home-loader-voxel"></i><i class="home-loader-voxel"></i><i class="home-loader-voxel"></i><i class="home-loader-voxel"></i>
<i class="home-loader-voxel"></i><i class="home-loader-voxel"></i><i class="home-loader-voxel"></i><i class="home-loader-voxel"></i>
<i class="home-loader-voxel"></i><i class="home-loader-voxel"></i><i class="home-loader-voxel"></i><i class="home-loader-voxel"></i>
</div>
<div class="home-world-loader-status">
<p id="homeWorldLoadingStage" data-site-loading-stage data-home-i18n="loading.initializing">Initializing Chunk.js</p>
<div class="home-world-loader-track" aria-hidden="true"><i></i></div>
<small data-home-i18n="loading.engine">Chunk.js · Local reconstruction</small>
</div>
</div>
</div>
<div class="home-building-inspector" id="homeBuildingInspector" data-active="false" data-side="right" aria-hidden="true">
<svg class="ncm-inspector-connector" aria-hidden="true" preserveAspectRatio="none">
<path id="ncmInspectorBuildingOutlineShadow" class="ncm-building-outline-shadow"></path>
<path id="ncmInspectorBuildingOutline" class="ncm-building-outline"></path>
<path id="ncmInspectorConnectorShadow" class="ncm-connector-shadow" pathLength="1"></path>
<path id="ncmInspectorConnector" class="ncm-connector-line" pathLength="1"></path>
<circle id="ncmInspectorAnchor" class="ncm-connector-anchor" r="5"></circle>
<rect id="ncmInspectorTerminal" class="ncm-connector-terminal" width="5" height="5"></rect>
</svg>
<aside class="ncm-inspector-panel" aria-label="NCM building storage representation" data-home-i18n-aria-label="buildingInspector.aria">
<div class="ncm-inspector-surface"></div>
<span class="ncm-frame ncm-frame-top"></span>
<span class="ncm-frame ncm-frame-right"></span>
<span class="ncm-frame ncm-frame-bottom"></span>
<span class="ncm-frame ncm-frame-left"></span>
<div class="ncm-inspector-content">
<header class="ncm-inspector-header">
<div>
<p class="ncm-inspector-eyebrow" data-home-i18n="buildingInspector.eyebrow">NCM3 BUILDING BLUEPRINT</p>
<h2 id="ncmInspectorTitle">NCM3</h2>
<code id="ncmInspectorIdentity">BUILDING</code>
</div>
<p class="ncm-inspector-state"><i></i><span data-home-i18n="buildingInspector.state">CHAIN-STORAGE REPRESENTATION</span></p>
</header>
<p class="ncm-inspector-detail" data-home-i18n="buildingInspector.detail">This deterministic NCM3 payload is the chain-storage representation; Chunk.js expands it locally into the rendered building.</p>
<dl class="ncm-inspector-metrics">
<div>
<dt data-home-i18n="buildingInspector.rawPayload">NCM3 RAW PAYLOAD</dt>
<dd id="ncmInspectorPayload">0 B</dd>
</div>
<div>
<dt data-home-i18n="buildingInspector.expandedVoxels">EXPANDED VOXELS</dt>
<dd id="ncmInspectorVoxels">0</dd>
</div>
<div>
<dt data-home-i18n="buildingInspector.modelSize">MODEL SIZE (VOXELS)</dt>
<dd id="ncmInspectorModelSize">0 × 0 × 0</dd>
</div>
<div>
<dt data-home-i18n="buildingInspector.expansionDensity">EXPANSION DENSITY</dt>
<dd id="ncmInspectorExpansion">0 VOX/B</dd>
</div>
</dl>
<div class="ncm-inspector-code-heading">
<span data-home-i18n="buildingInspector.fullCode">FULL NCM3 CODE</span>
<span id="ncmInspectorCodeLength">0 CHARACTERS</span>
</div>
<pre class="ncm-inspector-code"><code id="ncmInspectorCode">NCM3:</code></pre>
</div>
</aside>
</div>
<header class="site-header" id="siteHeader" data-site-header-root data-site-header-pending="true"></header>
<button
class="home-scroll-cue"
id="homeScrollCue"
type="button"
data-scroll-target="1"
aria-label="Explore the next chapter"
data-home-i18n-aria-label="scrollCue.aria"
>
<span class="home-scroll-cue-motion" aria-hidden="true">
<span class="home-scroll-cue-mouse"><i></i></span>
<span class="home-scroll-cue-swipe"><i></i></span>
</span>
<span class="home-scroll-cue-label home-scroll-cue-label-desktop" data-home-i18n="scrollCue.desktop">Scroll to explore</span>
<span class="home-scroll-cue-label home-scroll-cue-label-mobile" data-home-i18n="scrollCue.mobile">Swipe up to explore</span>
</button>
<nav class="chapter-nav" aria-label="Section navigation" data-home-i18n-aria-label="sideNav.aria">
<p class="chapter-counter" aria-hidden="true">
<strong id="chapterCurrent">01</strong>
<i></i>
<span>05</span>
</p>
<div class="chapter-nav-list">
<button class="side-dot active" type="button" tabindex="0" data-section-index="0" aria-label="Arrival" data-home-i18n-aria-label="sideNav.arrival">
<b>01</b>
<span data-home-i18n="sideNav.arrival">Arrival</span>
</button>
<button class="side-dot" type="button" tabindex="-1" data-section-index="1" aria-label="World" data-home-i18n-aria-label="sideNav.world">
<b>02</b>
<span data-home-i18n="sideNav.world">World</span>
</button>
<button class="side-dot" type="button" tabindex="-1" data-section-index="2" aria-label="Technology" data-home-i18n-aria-label="sideNav.technology">
<b>03</b>
<span data-home-i18n="sideNav.technology">Technology</span>
</button>
<button class="side-dot" type="button" tabindex="-1" data-section-index="3" aria-label="Create" data-home-i18n-aria-label="sideNav.create">
<b>04</b>
<span data-home-i18n="sideNav.create">Create</span>
</button>
<button class="side-dot" type="button" tabindex="-1" data-section-index="4" aria-label="Explore" data-home-i18n-aria-label="sideNav.explore">
<b>05</b>
<span data-home-i18n="sideNav.explore">Explore</span>
</button>
</div>
</nav>
<main id="scrollContainer" class="scroll-container">
<section class="snap-section active" id="section-0" data-scene-view="arrival" aria-labelledby="heroTitle">
<div class="chapter-layout chapter-layout-hero">
<div class="chapter-card hero-copy">
<p class="eyebrow" data-home-i18n="hero.eyebrow">Playable Devnet Alpha</p>
<h1 id="heroTitle"><span class="chapter-copy-line" data-home-i18n="hero.title">Build the world. Verify the change.</span></h1>
<p class="hero-subtitle"><span class="chapter-copy-line" data-home-i18n="hero.subtitle">Explore a deterministic voxel world, mine measured resources, smelt and forge materials, build, trade exact items, and grow skills. Chunk.js renders each moment; Solana programs settle persistent state; Guardians relay nearby play.</span></p>
<div class="chapter-actions hero-actions">
<a class="primary-action" href="/play/" data-home-i18n="hero.enterWorld">Enter World</a>
</div>
<ul class="chapter-telemetry" aria-label="Product status" data-home-i18n-aria-label="hero.statusAria">
<li data-home-i18n="hero.badges.solana">Solana Program State</li>
<li data-home-i18n="hero.badges.seeded">Chunk.js Voxel Engine</li>
<li data-home-i18n="hero.badges.watchers">Guardian Realtime Relay</li>
</ul>
</div>
<div class="hero-world-stage" aria-hidden="true"></div>
</div>
</section>
<section class="snap-section" id="section-1" data-scene-view="world" aria-labelledby="worldTitle">
<div class="chapter-layout chapter-layout-world">
<div class="chapter-card world-copy">
<p class="eyebrow blue" data-home-i18n="world.eyebrow">Verifiable World</p>
<h2 id="worldTitle"><span class="chapter-copy-line" data-home-i18n="world.title">Untouched terrain is generated. Player changes are recorded.</span></h2>
<p><span class="chapter-copy-line" data-home-i18n="world.body">Seed and coordinates reconstruct every untouched block. When a player mines or builds, Solana programs validate the action and record the persistent delta. The browser can rebuild the same base world without downloading a hidden master map.</span></p>
<div class="world-readout">
<span data-home-i18n="world.readout.protocol">BASE: DETERMINISTIC RECONSTRUCTION</span>
<span data-home-i18n="world.readout.state">CHANGE: SOLANA CHUNK DELTAS</span>
<span data-home-i18n="world.readout.verify">RENDER: CHUNK.JS WEBGL2</span>
</div>
<div class="chapter-actions">
<a class="secondary-action" href="/world/" data-home-i18n="world.primaryAction">Explore the World</a>
</div>
</div>
</div>
</section>
<section class="snap-section" id="section-2" data-scene-view="technology" aria-labelledby="technologyTitle">
<div class="chapter-layout">
<div class="chapter-card technology-copy">
<p class="eyebrow blue" data-home-i18n="technology.eyebrow">Verifiable Technology</p>
<h2 id="technologyTitle"><span class="chapter-copy-line" data-home-i18n="technology.title">Render locally. Settle on Solana.</span></h2>
<p><span class="chapter-copy-line" data-home-i18n="technology.body">NCM compresses voxel assets, Chunk.js reconstructs them in the browser, Guardians relay nearby play, and Solana programs remain the authority for persistent state.</span></p>
<ul class="chapter-facts">
<li data-home-i18n="technology.facts.compression">Compact deterministic NCM data</li>
<li data-home-i18n="technology.facts.authority">Explicit program and Guardian boundaries</li>
<li data-home-i18n="technology.facts.proof">Public proofs instead of hidden authority</li>
</ul>
<div class="chapter-actions">
<a class="secondary-action" href="/technology/" data-home-i18n="technology.primaryAction">Verify the Protocol</a>
</div>
</div>
</div>
</section>
<section class="snap-section" id="section-3" data-scene-view="create" aria-labelledby="createTitle">
<div class="chapter-layout chapter-layout-right">
<div class="chapter-card create-copy">
<p class="eyebrow blue" data-home-i18n="create.eyebrow">Creation Pipeline</p>
<h2 id="createTitle"><span class="chapter-copy-line" data-home-i18n="create.title">Useful work becomes a world asset.</span></h2>
<p><span class="chapter-copy-line" data-home-i18n="create.body">Compose buildings and items, compress their geometry, forge measured materials, and render the exact result with the same tools used by the live world.</span></p>
<ul class="chapter-facts">
<li data-home-i18n="create.facts.build">Build NCM and Item NCM production editors</li>
<li data-home-i18n="create.facts.render">Chunk.js purpose-built WebGL2 rendering</li>
<li data-home-i18n="create.facts.search">Miner, NCM4, and Fourier research tools</li>
</ul>
<div class="chapter-actions">
<a class="secondary-action" href="/create/" data-home-i18n="create.primaryAction">Open Creator Hub</a>
</div>
</div>
</div>
</section>
<section class="snap-section" id="section-4" data-scene-view="explore" aria-labelledby="exploreTitle">
<div class="chapter-layout chapter-layout-wide">
<div class="chapter-card explore-copy">
<p class="eyebrow blue" data-home-i18n="explore.eyebrow">Open Knowledge</p>
<h2 id="exploreTitle"><span class="chapter-copy-line" data-home-i18n="explore.title">Follow every rule into the code.</span></h2>
<p><span class="chapter-copy-line" data-home-i18n="explore.body">Start with the player guide, inspect the technical architecture, or enter the playable Devnet world. The detailed pages remain open when you need the full proof.</span></p>
<div class="chapter-actions">
<a class="primary-action" href="/docs/" data-home-i18n="explore.primaryAction">Open Docs</a>
<a class="secondary-action" href="/play/" data-home-i18n="explore.secondaryAction">Enter World</a>
</div>
</div>
<footer class="site-footer" data-site-footer-native>
<div>
<a class="brand-mark" href="/" aria-label="NiceChunk">
<img src="/media/nck.png" alt="" />
<span>NICECHUNK</span>
</a>
<p data-home-i18n="footer.tagline">A verifiable voxel civilization on Solana.</p>
</div>
<nav aria-label="Footer navigation" data-home-i18n-aria-label="footer.aria">
<a href="/play/" data-home-i18n="footer.enterWorld">Enter World</a>
<a href="/world/" data-home-i18n="footer.world">World</a>
<a href="/technology/" data-home-i18n="footer.technology">Technology</a>
<a href="/create/" data-home-i18n="footer.create">Create</a>
<a href="/docs/" data-home-i18n="footer.docs">Docs</a>
<a href="/roadmap/" data-home-i18n="footer.roadbook">Roadmap</a>
<a href="/whitepaper/" data-home-i18n="footer.whitepaper">Whitepaper</a>
<a href="https://github.com/nicechunk" rel="noopener noreferrer">GitHub</a>
</nav>
</footer>
</div>
</section>
</main>
<script type="module" src="/home/home.js"></script>
</body>
</html>