nova64 0.2.3 → 0.2.5
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/package.json +1 -1
- package/src/main.js +12 -1
package/package.json
CHANGED
package/src/main.js
CHANGED
|
@@ -146,7 +146,6 @@ function loop() {
|
|
|
146
146
|
last = now;
|
|
147
147
|
|
|
148
148
|
if (!paused || stepOnce) {
|
|
149
|
-
iApi.step();
|
|
150
149
|
const u0 = performance.now();
|
|
151
150
|
|
|
152
151
|
// Tick the global novaStore time counter
|
|
@@ -198,6 +197,10 @@ function loop() {
|
|
|
198
197
|
} catch (e) {
|
|
199
198
|
console.error('❌ gpu.endFrame() error:', e.message, e.stack);
|
|
200
199
|
}
|
|
200
|
+
|
|
201
|
+
// Snapshot input state at END of frame so keyp/isKeyPressed correctly
|
|
202
|
+
// detect transitions on the next frame (key pressed between frames).
|
|
203
|
+
iApi.step();
|
|
201
204
|
}
|
|
202
205
|
if (stepOnce) {
|
|
203
206
|
stepOnce = false;
|
|
@@ -262,6 +265,14 @@ const demoMap = {
|
|
|
262
265
|
'input-showcase': '/examples/input-showcase/code.js',
|
|
263
266
|
'audio-lab': '/examples/audio-lab/code.js',
|
|
264
267
|
'storage-quest': '/examples/storage-quest/code.js',
|
|
268
|
+
'instancing-demo': '/examples/instancing-demo/code.js',
|
|
269
|
+
'particles-demo': '/examples/particles-demo/code.js',
|
|
270
|
+
'screen-demo': '/examples/screen-demo/code.js',
|
|
271
|
+
'ui-demo': '/examples/ui-demo/code.js',
|
|
272
|
+
'wing-commander-space': '/examples/wing-commander-space/code.js',
|
|
273
|
+
'space-combat-3d': '/examples/space-combat-3d/code.js',
|
|
274
|
+
'model-viewer-3d': '/examples/model-viewer-3d/code.js',
|
|
275
|
+
'3d-advanced': '/examples/3d-advanced/code.js',
|
|
265
276
|
};
|
|
266
277
|
|
|
267
278
|
// default cart - load from URL param or default to space-harrier-3d
|