nova64 0.2.4 → 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.
Files changed (140) hide show
  1. package/README.md +25 -8
  2. package/bin/nova64.js +165 -0
  3. package/dist/assets/console-CY_kygm3.js +14 -0
  4. package/dist/assets/console-CY_kygm3.js.map +1 -0
  5. package/dist/assets/main-l0sNRNKZ.js.map +1 -0
  6. package/dist/assets/sky/studio/nx.png +0 -0
  7. package/dist/assets/sky/studio/ny.png +0 -0
  8. package/dist/assets/sky/studio/nz.png +0 -0
  9. package/dist/assets/sky/studio/px.png +0 -0
  10. package/dist/assets/sky/studio/py.png +0 -0
  11. package/dist/assets/sky/studio/pz.png +0 -0
  12. package/dist/assets/vanilla-Dcuy32gi.js +2 -0
  13. package/dist/assets/vanilla-Dcuy32gi.js.map +1 -0
  14. package/dist/console.html +899 -0
  15. package/dist/docs/BENCHMARK.md +77 -0
  16. package/dist/docs/CHEATSHEET.md +255 -0
  17. package/dist/docs/EFFECTS_API_GUIDE.md +577 -0
  18. package/dist/docs/EFFECTS_QUICK_REFERENCE.md +331 -0
  19. package/dist/docs/FONT_CHARACTER_REFERENCE.md +219 -0
  20. package/dist/docs/FREE_GLB_ASSETS.md +330 -0
  21. package/dist/docs/FULLSCREEN_BUTTON_FEATURE.md +296 -0
  22. package/dist/docs/GAMEPAD_SUPPORT.md +348 -0
  23. package/dist/docs/GAME_IMPROVEMENTS.md +278 -0
  24. package/dist/docs/GAME_QUALITY_STATUS.md +300 -0
  25. package/dist/docs/MIGRATION_GUIDE.md +553 -0
  26. package/dist/docs/NOVA64_3D_API.md +356 -0
  27. package/dist/docs/NOVA64_API_REFERENCE.md +1406 -0
  28. package/dist/docs/NOVA64_UI_API.md +503 -0
  29. package/dist/docs/UI_SYSTEM_SUMMARY.md +445 -0
  30. package/dist/docs/VOXEL_ENGINE_GUIDE.md +662 -0
  31. package/dist/docs/VOXEL_QUICK_REFERENCE.md +386 -0
  32. package/dist/docs/api-3d.html +750 -0
  33. package/dist/docs/api-effects.html +385 -0
  34. package/dist/docs/api-improvements.md +121 -0
  35. package/dist/docs/api-skybox.html +407 -0
  36. package/dist/docs/api-sprites.html +321 -0
  37. package/dist/docs/api-voxel.html +337 -0
  38. package/dist/docs/api.html +543 -0
  39. package/dist/docs/assets.html +306 -0
  40. package/dist/docs/audio.html +340 -0
  41. package/dist/docs/blogs.html +286 -0
  42. package/dist/docs/collision.html +316 -0
  43. package/dist/docs/console.html +247 -0
  44. package/dist/docs/editor.html +297 -0
  45. package/dist/docs/font.html +247 -0
  46. package/dist/docs/framebuffer.html +247 -0
  47. package/dist/docs/fullscreen-button.html +297 -0
  48. package/dist/docs/gpu-systems.html +247 -0
  49. package/dist/docs/index.html +580 -0
  50. package/dist/docs/input.html +491 -0
  51. package/dist/docs/physics.html +311 -0
  52. package/dist/docs/screens.html +311 -0
  53. package/dist/docs/storage.html +311 -0
  54. package/dist/docs/textinput.html +332 -0
  55. package/dist/docs/ui.html +488 -0
  56. package/dist/examples/3d-advanced/code.js +695 -0
  57. package/dist/examples/adventure-comic-3d/code.js +342 -0
  58. package/dist/examples/audio-lab/code.js +150 -0
  59. package/dist/examples/boids-flocking/code.js +270 -0
  60. package/dist/examples/crystal-cathedral-3d/code.js +706 -0
  61. package/dist/examples/cyberpunk-city-3d/code.js +1383 -0
  62. package/dist/examples/demoscene/README.md +192 -0
  63. package/dist/examples/demoscene/code.js +1081 -0
  64. package/dist/examples/demoscene/meta.json +21 -0
  65. package/dist/examples/dungeon-crawler-3d/code.js +1117 -0
  66. package/dist/examples/f-zero-nova-3d/code.js +865 -0
  67. package/dist/examples/f-zero-nova-3d/code_old.js +1555 -0
  68. package/dist/examples/fps-demo-3d/code.js +744 -0
  69. package/dist/examples/game-of-life-3d/code.js +338 -0
  70. package/dist/examples/generative-art/code.js +632 -0
  71. package/dist/examples/hello-3d/code.js +325 -0
  72. package/dist/examples/hello-skybox/code.js +183 -0
  73. package/dist/examples/hello-world/code.js +19 -0
  74. package/dist/examples/input-showcase/code.js +109 -0
  75. package/dist/examples/instancing-demo/code.js +315 -0
  76. package/dist/examples/minecraft-demo/code.js +387 -0
  77. package/dist/examples/model-viewer-3d/code.js +114 -0
  78. package/dist/examples/mystical-realm-3d/code.js +1203 -0
  79. package/dist/examples/nature-explorer-3d/code.js +1318 -0
  80. package/dist/examples/particles-demo/code.js +522 -0
  81. package/dist/examples/pbr-showcase/code.js +140 -0
  82. package/dist/examples/physics-demo-3d/code.js +948 -0
  83. package/dist/examples/screen-demo/code.js +267 -0
  84. package/dist/examples/shooter-demo-3d/code.js +1286 -0
  85. package/dist/examples/space-combat-3d/IMPLEMENTATION_SUMMARY.md +109 -0
  86. package/dist/examples/space-combat-3d/README.md +135 -0
  87. package/dist/examples/space-combat-3d/code.js +1332 -0
  88. package/dist/examples/space-harrier-3d/code.js +923 -0
  89. package/dist/examples/star-fox-nova-3d/code.js +1116 -0
  90. package/dist/examples/star-fox-nova-3d/code_backup.js +410 -0
  91. package/dist/examples/star-fox-nova-3d/code_broken.js +1821 -0
  92. package/dist/examples/storage-quest/code.js +209 -0
  93. package/dist/examples/strider-demo-3d/IMPROVEMENT_OPTIONS.md +285 -0
  94. package/dist/examples/strider-demo-3d/cache-test.html +132 -0
  95. package/dist/examples/strider-demo-3d/code-fixed.js +582 -0
  96. package/dist/examples/strider-demo-3d/code-old.js +1537 -0
  97. package/dist/examples/strider-demo-3d/code.js +1462 -0
  98. package/dist/examples/strider-demo-3d/code.js.bak2 +1169 -0
  99. package/dist/examples/strider-demo-3d/fix-game.sh +53 -0
  100. package/dist/examples/super-plumber-64/README.md +128 -0
  101. package/dist/examples/super-plumber-64/code.js +1185 -0
  102. package/dist/examples/super-plumber-64/index.html +88 -0
  103. package/dist/examples/test-2d-overlay/code.js +32 -0
  104. package/dist/examples/test-font/code.js +51 -0
  105. package/dist/examples/test-minimal/code.js +21 -0
  106. package/dist/examples/ui-demo/code.js +306 -0
  107. package/dist/examples/wing-commander-space/README.md +180 -0
  108. package/dist/examples/wing-commander-space/code.js +1285 -0
  109. package/dist/examples/wizardry-3d/CHANGELOG.md +366 -0
  110. package/dist/examples/wizardry-3d/code.js +3928 -0
  111. package/dist/index.html +666 -0
  112. package/dist/os9-shell/assets/index-DIHfrTaW.css +1 -0
  113. package/dist/os9-shell/assets/index-KchE_ngx.js +483 -0
  114. package/dist/os9-shell/assets/index-KchE_ngx.js.map +1 -0
  115. package/dist/os9-shell/index.html +23 -0
  116. package/dist/os9-shell/nova-icon.svg +12 -0
  117. package/index.html +6 -1
  118. package/package.json +37 -32
  119. package/public/assets/sky/studio/nx.png +0 -0
  120. package/public/assets/sky/studio/ny.png +0 -0
  121. package/public/assets/sky/studio/nz.png +0 -0
  122. package/public/assets/sky/studio/px.png +0 -0
  123. package/public/assets/sky/studio/py.png +0 -0
  124. package/public/assets/sky/studio/pz.png +0 -0
  125. package/public/os9-shell/assets/index-KchE_ngx.js +483 -0
  126. package/public/os9-shell/assets/index-KchE_ngx.js.map +1 -0
  127. package/public/os9-shell/index.html +10 -1
  128. package/runtime/api-2d.js +301 -21
  129. package/runtime/api-3d/pbr.js +45 -1
  130. package/runtime/api-3d.js +1 -0
  131. package/runtime/api-effects.js +90 -3
  132. package/runtime/api-gameutils.js +476 -0
  133. package/runtime/api-generative.js +610 -0
  134. package/runtime/api-skybox.js +54 -0
  135. package/runtime/api-voxel.js +139 -28
  136. package/runtime/gpu-threejs.js +13 -9
  137. package/runtime/ui.js +2 -2
  138. package/src/main.js +24 -1
  139. package/public/os9-shell/assets/index-B1Uvacma.js +0 -32825
  140. package/public/os9-shell/assets/index-B1Uvacma.js.map +0 -1
@@ -0,0 +1,53 @@
1
+ #!/bin/bash
2
+ # Fix the Shadow Ninja 3D game
3
+
4
+ echo "🔧 Fixing Shadow Ninja 3D Platformer..."
5
+ echo ""
6
+
7
+ # Navigate to game directory
8
+ cd "$(dirname "$0")"
9
+
10
+ # Backup old code
11
+ if [ -f "code.js" ]; then
12
+ echo "đŸ“Ļ Backing up old code.js to code-old.js..."
13
+ cp code.js code-old.js
14
+ fi
15
+
16
+ # Replace with fixed version
17
+ if [ -f "code-fixed.js" ]; then
18
+ echo "✅ Installing fixed version..."
19
+ cp code-fixed.js code.js
20
+ echo " ✓ Game code updated!"
21
+ else
22
+ echo "❌ Error: code-fixed.js not found!"
23
+ exit 1
24
+ fi
25
+
26
+ # Create models directory
27
+ echo ""
28
+ echo "📁 Setting up models directory..."
29
+ mkdir -p ../../../public/models
30
+ echo " ✓ Created /public/models/"
31
+
32
+ echo ""
33
+ echo "🎮 Game fixed successfully!"
34
+ echo ""
35
+ echo "📝 Next steps:"
36
+ echo " 1. Refresh your browser"
37
+ echo " 2. Test the game - it should work properly now!"
38
+ echo " 3. (Optional) Download GLB models from:"
39
+ echo " - https://poly.pizza"
40
+ echo " - https://kenney.nl/assets"
41
+ echo " - http://quaternius.com/assets.html"
42
+ echo " 4. Place models in public/models/ folder"
43
+ echo " 5. Enable USE_GLB_MODELS in code.js"
44
+ echo ""
45
+ echo "đŸŽ¯ The game now has:"
46
+ echo " ✓ Proper collision detection"
47
+ echo " ✓ Coyote time (150ms grace period)"
48
+ echo " ✓ Jump buffering (100ms window)"
49
+ echo " ✓ Progressive level design"
50
+ echo " ✓ Clear visual feedback"
51
+ echo " ✓ Smooth camera following"
52
+ echo ""
53
+ echo "Happy gaming! 🎮"
@@ -0,0 +1,128 @@
1
+ # 🍄 SUPER PLUMBER 64
2
+
3
+ A Super Mario 64 inspired 3D platformer for Nova64!
4
+
5
+ ## 🎮 Features
6
+
7
+ ### Mario-Like Mechanics
8
+
9
+ - **Triple Jump System** - Jump three times in quick succession for higher jumps
10
+ - **Ground Pound** - Press Down + Jump in mid-air for a powerful slam
11
+ - **Smooth Movement** - Analog stick support with camera-relative controls
12
+ - **3D Platforming** - Navigate colorful floating platforms
13
+
14
+ ### Collectibles
15
+
16
+ - **Coins** (Yellow) - Spinning gold coins worth 10 points each (15 total)
17
+ - **Stars** (Orange) - Bobbing power stars worth 100 points each (3 total)
18
+
19
+ ### Level Design
20
+
21
+ - 11 interconnected platforms at various heights
22
+ - Multiple paths to explore
23
+ - High platform requires skilled jumping
24
+ - Hidden areas with extra collectibles
25
+
26
+ ## đŸ•šī¸ Controls
27
+
28
+ ### Keyboard
29
+
30
+ - **Arrow Keys** or **WASD** - Move
31
+ - **Space** or **Z** - Jump
32
+ - **Down + Jump** (in air) - Ground Pound
33
+ - **Q** / **E** - Rotate Camera
34
+
35
+ ### Gamepad
36
+
37
+ - **Left Stick** - Move (analog)
38
+ - **A Button** - Jump
39
+ - **Right Stick** - Rotate Camera
40
+ - **D-pad Down + A** (in air) - Ground Pound
41
+
42
+ ## đŸŽ¯ Objectives
43
+
44
+ 1. **Collect all 15 Coins** - Explore every platform
45
+ 2. **Collect all 3 Stars** - Find the hidden power stars
46
+ 3. **Master the triple jump** - Reach the highest platforms
47
+
48
+ ## 🌟 Special Moves
49
+
50
+ ### Triple Jump
51
+
52
+ 1. **First Jump** - Normal height
53
+ 2. **Second Jump** - Higher (press jump again quickly)
54
+ 3. **Third Jump** - HIGHEST! (press jump one more time)
55
+
56
+ _Tip: You have 0.5 seconds between jumps to maintain the combo!_
57
+
58
+ ### Ground Pound
59
+
60
+ 1. Jump into the air
61
+ 2. Press **Down + Jump** together
62
+ 3. Slam down at high speed
63
+ 4. Bounce on landing
64
+
65
+ _Tip: Great for reaching lower platforms quickly!_
66
+
67
+ ## 🏆 Scoring
68
+
69
+ - Each Coin: **10 points**
70
+ - Each Star: **100 points**
71
+ - Maximum Score: **450 points** (150 from coins + 300 from stars)
72
+
73
+ ## 🎨 Visual Features
74
+
75
+ - **Bloom Effects** - Shiny collectibles glow
76
+ - **Colorful Platforms** - Each platform has unique colors
77
+ - **Smooth Animations** - Coins spin, stars bob
78
+ - **Sky & Fog** - Beautiful sky gradient with atmospheric fog
79
+ - **3rd Person Camera** - Follows player smoothly
80
+
81
+ ## 🚀 Technical
82
+
83
+ - **Resolution**: 640×360 (Nintendo 64 style)
84
+ - **Frame Rate**: 60 FPS target
85
+ - **Physics**: Custom gravity and collision system
86
+ - **Camera**: 3rd person with manual rotation
87
+ - **Respawn**: Fall off? You'll respawn at spawn!
88
+
89
+ ## đŸŽŦ Getting Started
90
+
91
+ 1. Open `index.html` in a modern browser
92
+ 2. Use arrow keys to move around
93
+ 3. Press Space to jump
94
+ 4. Jump quickly 3 times for a triple jump!
95
+ 5. Collect all coins and stars
96
+
97
+ ## 🐛 Known Features
98
+
99
+ - Platforms are simple boxes (retro aesthetic!)
100
+ - No enemies (pure platforming challenge)
101
+ - Camera can be manually rotated with Q/E
102
+ - Fall detection respawns you at start
103
+
104
+ ## 💡 Tips
105
+
106
+ 1. **Practice triple jumping** - It's essential for high platforms
107
+ 2. **Use ground pound** - Helps you land precisely
108
+ 3. **Explore everywhere** - Coins are on all paths
109
+ 4. **Rotate camera** - Find the best viewing angle
110
+ 5. **The highest star** requires a running triple jump from a nearby platform
111
+
112
+ ## 🎮 Inspired By
113
+
114
+ - **Super Mario 64** - Movement mechanics, triple jump
115
+ - **Banjo-Kazooie** - Collectible hunting
116
+ - **Crash Bandicoot** - Platform layout
117
+
118
+ ## 📝 Credits
119
+
120
+ Built with **Nova64 Fantasy Console**
121
+
122
+ - 3D Graphics: Three.js backend
123
+ - Post-Processing: Bloom effects
124
+ - Input: Keyboard + Gamepad support
125
+
126
+ ---
127
+
128
+ **Now get out there and collect those stars! 🌟**