nova64 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -8
- package/bin/nova64.js +165 -0
- package/dist/assets/console-CY_kygm3.js +14 -0
- package/dist/assets/console-CY_kygm3.js.map +1 -0
- package/dist/assets/main-l0sNRNKZ.js.map +1 -0
- package/dist/assets/sky/studio/nx.png +0 -0
- package/dist/assets/sky/studio/ny.png +0 -0
- package/dist/assets/sky/studio/nz.png +0 -0
- package/dist/assets/sky/studio/px.png +0 -0
- package/dist/assets/sky/studio/py.png +0 -0
- package/dist/assets/sky/studio/pz.png +0 -0
- package/dist/assets/vanilla-Dcuy32gi.js +2 -0
- package/dist/assets/vanilla-Dcuy32gi.js.map +1 -0
- package/dist/console.html +899 -0
- package/dist/docs/BENCHMARK.md +77 -0
- package/dist/docs/CHEATSHEET.md +255 -0
- package/dist/docs/EFFECTS_API_GUIDE.md +577 -0
- package/dist/docs/EFFECTS_QUICK_REFERENCE.md +331 -0
- package/dist/docs/FONT_CHARACTER_REFERENCE.md +219 -0
- package/dist/docs/FREE_GLB_ASSETS.md +330 -0
- package/dist/docs/FULLSCREEN_BUTTON_FEATURE.md +296 -0
- package/dist/docs/GAMEPAD_SUPPORT.md +348 -0
- package/dist/docs/GAME_IMPROVEMENTS.md +278 -0
- package/dist/docs/GAME_QUALITY_STATUS.md +300 -0
- package/dist/docs/MIGRATION_GUIDE.md +553 -0
- package/dist/docs/NOVA64_3D_API.md +356 -0
- package/dist/docs/NOVA64_API_REFERENCE.md +1406 -0
- package/dist/docs/NOVA64_UI_API.md +503 -0
- package/dist/docs/UI_SYSTEM_SUMMARY.md +445 -0
- package/dist/docs/VOXEL_ENGINE_GUIDE.md +662 -0
- package/dist/docs/VOXEL_QUICK_REFERENCE.md +386 -0
- package/dist/docs/api-3d.html +750 -0
- package/dist/docs/api-effects.html +385 -0
- package/dist/docs/api-improvements.md +121 -0
- package/dist/docs/api-skybox.html +407 -0
- package/dist/docs/api-sprites.html +321 -0
- package/dist/docs/api-voxel.html +337 -0
- package/dist/docs/api.html +543 -0
- package/dist/docs/assets.html +306 -0
- package/dist/docs/audio.html +340 -0
- package/dist/docs/blogs.html +286 -0
- package/dist/docs/collision.html +316 -0
- package/dist/docs/console.html +247 -0
- package/dist/docs/editor.html +297 -0
- package/dist/docs/font.html +247 -0
- package/dist/docs/framebuffer.html +247 -0
- package/dist/docs/fullscreen-button.html +297 -0
- package/dist/docs/gpu-systems.html +247 -0
- package/dist/docs/index.html +580 -0
- package/dist/docs/input.html +491 -0
- package/dist/docs/physics.html +311 -0
- package/dist/docs/screens.html +311 -0
- package/dist/docs/storage.html +311 -0
- package/dist/docs/textinput.html +332 -0
- package/dist/docs/ui.html +488 -0
- package/dist/examples/3d-advanced/code.js +695 -0
- package/dist/examples/adventure-comic-3d/code.js +342 -0
- package/dist/examples/audio-lab/code.js +150 -0
- package/dist/examples/boids-flocking/code.js +270 -0
- package/dist/examples/crystal-cathedral-3d/code.js +706 -0
- package/dist/examples/cyberpunk-city-3d/code.js +1383 -0
- package/dist/examples/demoscene/README.md +192 -0
- package/dist/examples/demoscene/code.js +1081 -0
- package/dist/examples/demoscene/meta.json +21 -0
- package/dist/examples/dungeon-crawler-3d/code.js +1117 -0
- package/dist/examples/f-zero-nova-3d/code.js +865 -0
- package/dist/examples/f-zero-nova-3d/code_old.js +1555 -0
- package/dist/examples/fps-demo-3d/code.js +744 -0
- package/dist/examples/game-of-life-3d/code.js +338 -0
- package/dist/examples/generative-art/code.js +632 -0
- package/dist/examples/hello-3d/code.js +325 -0
- package/dist/examples/hello-skybox/code.js +183 -0
- package/dist/examples/hello-world/code.js +19 -0
- package/dist/examples/input-showcase/code.js +109 -0
- package/dist/examples/instancing-demo/code.js +315 -0
- package/dist/examples/minecraft-demo/code.js +387 -0
- package/dist/examples/model-viewer-3d/code.js +114 -0
- package/dist/examples/mystical-realm-3d/code.js +1203 -0
- package/dist/examples/nature-explorer-3d/code.js +1318 -0
- package/dist/examples/particles-demo/code.js +522 -0
- package/dist/examples/pbr-showcase/code.js +140 -0
- package/dist/examples/physics-demo-3d/code.js +948 -0
- package/dist/examples/screen-demo/code.js +267 -0
- package/dist/examples/shooter-demo-3d/code.js +1286 -0
- package/dist/examples/space-combat-3d/IMPLEMENTATION_SUMMARY.md +109 -0
- package/dist/examples/space-combat-3d/README.md +135 -0
- package/dist/examples/space-combat-3d/code.js +1332 -0
- package/dist/examples/space-harrier-3d/code.js +923 -0
- package/dist/examples/star-fox-nova-3d/code.js +1116 -0
- package/dist/examples/star-fox-nova-3d/code_backup.js +410 -0
- package/dist/examples/star-fox-nova-3d/code_broken.js +1821 -0
- package/dist/examples/storage-quest/code.js +209 -0
- package/dist/examples/strider-demo-3d/IMPROVEMENT_OPTIONS.md +285 -0
- package/dist/examples/strider-demo-3d/cache-test.html +132 -0
- package/dist/examples/strider-demo-3d/code-fixed.js +582 -0
- package/dist/examples/strider-demo-3d/code-old.js +1537 -0
- package/dist/examples/strider-demo-3d/code.js +1462 -0
- package/dist/examples/strider-demo-3d/code.js.bak2 +1169 -0
- package/dist/examples/strider-demo-3d/fix-game.sh +53 -0
- package/dist/examples/super-plumber-64/README.md +128 -0
- package/dist/examples/super-plumber-64/code.js +1185 -0
- package/dist/examples/super-plumber-64/index.html +88 -0
- package/dist/examples/test-2d-overlay/code.js +32 -0
- package/dist/examples/test-font/code.js +51 -0
- package/dist/examples/test-minimal/code.js +21 -0
- package/dist/examples/ui-demo/code.js +306 -0
- package/dist/examples/wing-commander-space/README.md +180 -0
- package/dist/examples/wing-commander-space/code.js +1285 -0
- package/dist/examples/wizardry-3d/CHANGELOG.md +366 -0
- package/dist/examples/wizardry-3d/code.js +3928 -0
- package/dist/index.html +666 -0
- package/dist/os9-shell/assets/index-DIHfrTaW.css +1 -0
- package/dist/os9-shell/assets/index-KchE_ngx.js +483 -0
- package/dist/os9-shell/assets/index-KchE_ngx.js.map +1 -0
- package/dist/os9-shell/index.html +23 -0
- package/dist/os9-shell/nova-icon.svg +12 -0
- package/index.html +6 -1
- package/package.json +37 -32
- package/public/assets/sky/studio/nx.png +0 -0
- package/public/assets/sky/studio/ny.png +0 -0
- package/public/assets/sky/studio/nz.png +0 -0
- package/public/assets/sky/studio/px.png +0 -0
- package/public/assets/sky/studio/py.png +0 -0
- package/public/assets/sky/studio/pz.png +0 -0
- package/public/os9-shell/assets/index-KchE_ngx.js +483 -0
- package/public/os9-shell/assets/index-KchE_ngx.js.map +1 -0
- package/public/os9-shell/index.html +10 -1
- package/runtime/api-2d.js +301 -21
- package/runtime/api-3d/pbr.js +45 -1
- package/runtime/api-3d.js +1 -0
- package/runtime/api-effects.js +90 -3
- package/runtime/api-gameutils.js +476 -0
- package/runtime/api-generative.js +610 -0
- package/runtime/api-skybox.js +54 -0
- package/runtime/api-voxel.js +139 -28
- package/runtime/gpu-threejs.js +13 -9
- package/runtime/ui.js +2 -2
- package/src/main.js +20 -0
- package/public/os9-shell/assets/index-B1Uvacma.js +0 -32825
- package/public/os9-shell/assets/index-B1Uvacma.js.map +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<base href="/os9-shell/" />
|
|
6
|
+
<link rel="icon" type="image/svg+xml" href="./nova-icon.svg" />
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
+
<title>nova64 OS</title>
|
|
9
|
+
<script type="importmap">
|
|
10
|
+
{
|
|
11
|
+
"imports": {
|
|
12
|
+
"three": "https://esm.sh/three@0.182.0",
|
|
13
|
+
"three/examples/jsm/": "https://esm.sh/three@0.182.0/examples/jsm/"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
</script>
|
|
17
|
+
<script type="module" crossorigin src="./assets/index-KchE_ngx.js"></script>
|
|
18
|
+
<link rel="stylesheet" crossorigin href="./assets/index-DIHfrTaW.css">
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
<div id="root"></div>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg width="64" height="64" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="starGrad" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
4
|
+
<stop offset="0%" style="stop-color:#FFD700;stop-opacity:1" />
|
|
5
|
+
<stop offset="100%" style="stop-color:#FFA500;stop-opacity:1" />
|
|
6
|
+
</linearGradient>
|
|
7
|
+
</defs>
|
|
8
|
+
<circle cx="32" cy="32" r="30" fill="#008080" stroke="#CCCCCC" stroke-width="2"/>
|
|
9
|
+
<polygon points="32,12 36,26 50,26 38,35 42,49 32,40 22,49 26,35 14,26 28,26"
|
|
10
|
+
fill="url(#starGrad)" stroke="#CC8800" stroke-width="1"/>
|
|
11
|
+
<text x="32" y="58" font-family="Arial, sans-serif" font-size="8" fill="#FFFFFF" text-anchor="middle">nova64</text>
|
|
12
|
+
</svg>
|
package/index.html
CHANGED
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
|
|
445
445
|
<!-- Terminal Animation -->
|
|
446
446
|
<div class="terminal">
|
|
447
|
-
<div class="terminal-line">$ pnpm add nova64</div>
|
|
447
|
+
<div class="terminal-line">$ pnpm add -g nova64</div>
|
|
448
448
|
<div class="terminal-line success">✓ GPU acceleration initialized</div>
|
|
449
449
|
<div class="terminal-line success">✓ 3D engine loaded (with actual lighting!)</div>
|
|
450
450
|
<div class="terminal-line success">✓ Voxel renderer standing by</div>
|
|
@@ -630,6 +630,11 @@
|
|
|
630
630
|
<h4>Tron Demoscene</h4>
|
|
631
631
|
<p>Visual effects showcase</p>
|
|
632
632
|
</div>
|
|
633
|
+
<div class="demo-card" onclick="window.location.href='/console.html?demo=pbr-showcase'">
|
|
634
|
+
<span class="emoji">🔮</span>
|
|
635
|
+
<h4>PBR Showcase</h4>
|
|
636
|
+
<p>Metalness & roughness grid with IBL</p>
|
|
637
|
+
</div>
|
|
633
638
|
</div>
|
|
634
639
|
</section>
|
|
635
640
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nova64",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Nova64 — Ultimate 3D Fantasy Console runtime for JavaScript games powered by Three.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fantasy-console",
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"url": "https://github.com/nova64/nova64/issues"
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
|
+
"bin": {
|
|
25
|
+
"nova64": "./bin/nova64.js"
|
|
26
|
+
},
|
|
24
27
|
"main": "./runtime/index.js",
|
|
25
28
|
"types": "./runtime/index.d.ts",
|
|
26
29
|
"exports": {
|
|
@@ -33,6 +36,8 @@
|
|
|
33
36
|
"./runtime/ui/*": "./runtime/ui/*.js"
|
|
34
37
|
},
|
|
35
38
|
"files": [
|
|
39
|
+
"bin/",
|
|
40
|
+
"dist/",
|
|
36
41
|
"runtime/",
|
|
37
42
|
"src/",
|
|
38
43
|
"public/",
|
|
@@ -41,36 +46,6 @@
|
|
|
41
46
|
"README.md",
|
|
42
47
|
"LICENSE"
|
|
43
48
|
],
|
|
44
|
-
"scripts": {
|
|
45
|
-
"dev": "vite",
|
|
46
|
-
"build": "vite build",
|
|
47
|
-
"preview": "vite preview",
|
|
48
|
-
"osBuild": "cd os9-shell && pnpm install && pnpm build && rm -rf ../public/os9-shell/* && mkdir -p ../public/os9-shell && cp -r dist/* ../public/os9-shell/",
|
|
49
|
-
"test": "node tests/test-cli.js",
|
|
50
|
-
"test:api": "node tests/test-cli.js api",
|
|
51
|
-
"test:input": "node tests/test-cli.js input",
|
|
52
|
-
"test:starfox": "node tests/test-cli.js starfox",
|
|
53
|
-
"test:integration": "node tests/test-cli.js integration",
|
|
54
|
-
"test:web": "open tests/test-runner.html || xdg-open tests/test-runner.html || start tests/test-runner.html",
|
|
55
|
-
"test:all": "pnpm run test && pnpm run test:api && pnpm run test:input && pnpm run test:starfox && pnpm run test:integration",
|
|
56
|
-
"test:watch": "nodemon --watch runtime --watch tests --watch examples --exec 'pnpm run test'",
|
|
57
|
-
"bench": "node tests/bench.js",
|
|
58
|
-
"bench:material": "node tests/bench.js --suite=material",
|
|
59
|
-
"bench:instancing": "node tests/bench.js --suite=instancing",
|
|
60
|
-
"bench:mesh": "node tests/bench.js --suite=mesh",
|
|
61
|
-
"lint": "eslint 'runtime/**/*.js' 'src/**/*.js' --max-warnings=0",
|
|
62
|
-
"lint:fix": "eslint 'runtime/**/*.js' 'src/**/*.js' --fix",
|
|
63
|
-
"format": "prettier --write \"**/*.{js,json,md}\"",
|
|
64
|
-
"format:check": "prettier --check \"**/*.{js,json,md}\"",
|
|
65
|
-
"validate": "pnpm run format:check && pnpm run lint && pnpm run test:all",
|
|
66
|
-
"clean": "rm -rf dist node_modules",
|
|
67
|
-
"reinstall": "pnpm run clean && pnpm install",
|
|
68
|
-
"prepare": "husky",
|
|
69
|
-
"prepublishOnly": "pnpm run validate && pnpm run build",
|
|
70
|
-
"release:patch": "pnpm version patch && git push && git push --tags",
|
|
71
|
-
"release:minor": "pnpm version minor && git push && git push --tags",
|
|
72
|
-
"release:major": "pnpm version major && git push && git push --tags"
|
|
73
|
-
},
|
|
74
49
|
"dependencies": {
|
|
75
50
|
"three": "^0.182.0",
|
|
76
51
|
"zustand": "^5.0.11"
|
|
@@ -262,5 +237,35 @@
|
|
|
262
237
|
"trailingComma": "es5",
|
|
263
238
|
"printWidth": 100,
|
|
264
239
|
"arrowParens": "avoid"
|
|
240
|
+
},
|
|
241
|
+
"scripts": {
|
|
242
|
+
"dev": "vite",
|
|
243
|
+
"build": "vite build && node scripts/postbuild.js",
|
|
244
|
+
"preview": "vite preview",
|
|
245
|
+
"osBuild": "cd os9-shell && pnpm install && pnpm build && rm -rf ../public/os9-shell/* && mkdir -p ../public/os9-shell && cp -r dist/* ../public/os9-shell/",
|
|
246
|
+
"deployToStarcade9": "bash scripts/deploy-starcade9.sh",
|
|
247
|
+
"serveStarcade9": "npx serve ../starcade9/starcade9.github.io",
|
|
248
|
+
"test": "node tests/test-cli.js",
|
|
249
|
+
"test:api": "node tests/test-cli.js api",
|
|
250
|
+
"test:input": "node tests/test-cli.js input",
|
|
251
|
+
"test:starfox": "node tests/test-cli.js starfox",
|
|
252
|
+
"test:integration": "node tests/test-cli.js integration",
|
|
253
|
+
"test:web": "open tests/test-runner.html || xdg-open tests/test-runner.html || start tests/test-runner.html",
|
|
254
|
+
"test:all": "pnpm run test && pnpm run test:api && pnpm run test:input && pnpm run test:starfox && pnpm run test:integration",
|
|
255
|
+
"test:watch": "nodemon --watch runtime --watch tests --watch examples --exec 'pnpm run test'",
|
|
256
|
+
"bench": "node tests/bench.js",
|
|
257
|
+
"bench:material": "node tests/bench.js --suite=material",
|
|
258
|
+
"bench:instancing": "node tests/bench.js --suite=instancing",
|
|
259
|
+
"bench:mesh": "node tests/bench.js --suite=mesh",
|
|
260
|
+
"lint": "eslint 'runtime/**/*.js' 'src/**/*.js' --max-warnings=0",
|
|
261
|
+
"lint:fix": "eslint 'runtime/**/*.js' 'src/**/*.js' --fix",
|
|
262
|
+
"format": "prettier --write \"**/*.{js,json,md}\"",
|
|
263
|
+
"format:check": "prettier --check \"**/*.{js,json,md}\"",
|
|
264
|
+
"validate": "pnpm run format:check && pnpm run lint && pnpm run test:all",
|
|
265
|
+
"clean": "rm -rf dist node_modules",
|
|
266
|
+
"reinstall": "pnpm run clean && pnpm install",
|
|
267
|
+
"release:patch": "pnpm version patch && git push && git push --tags",
|
|
268
|
+
"release:minor": "pnpm version minor && git push && git push --tags",
|
|
269
|
+
"release:major": "pnpm version major && git push && git push --tags"
|
|
265
270
|
}
|
|
266
|
-
}
|
|
271
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|