oriverse-engine 0.1.2 → 0.1.3
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/LICENSE.md +30 -30
- package/dist/AGENT_ONBOARDING.md +74 -74
- package/dist/CODEX_PROMPT.md +7 -7
- package/dist/examples/coin_collector.weave +70 -70
- package/dist/examples/dodge_blocks.weave +70 -70
- package/dist/examples/target_range.weave +82 -82
- package/dist/ktx_bridge.js +121 -121
- package/dist/ktx_lib.js +1 -1
- package/dist/oriverse_wgpu.d.ts +16 -17
- package/dist/oriverse_wgpu.js +90 -100
- package/dist/oriverse_wgpu_bg.wasm +0 -0
- package/dist/oriverse_wgpu_bg.wasm.d.ts +16 -17
- package/dist/snippets/oriverse_wgpu-255445ce6d9a0851/inline0.js +2 -1
- package/dist/starter/AGENTS.md +2 -2
- package/dist/starter/CLAUDE.md +2 -2
- package/dist/starter/game.html +5 -5
- package/dist/templates/game_cdn.html +5 -5
- package/dist/weave_documentation.txt +8 -10
- package/package.json +1 -1
package/dist/oriverse_wgpu.js
CHANGED
|
@@ -402,6 +402,14 @@ function __wbg_get_imports() {
|
|
|
402
402
|
const ret = arg0.beginRenderPass(arg1);
|
|
403
403
|
return ret;
|
|
404
404
|
}, arguments); },
|
|
405
|
+
__wbg_bind_86c20a9105588f18: function(arg0, arg1, arg2) {
|
|
406
|
+
const ret = arg0.bind(arg1, arg2);
|
|
407
|
+
return ret;
|
|
408
|
+
},
|
|
409
|
+
__wbg_bind_e6d12ff9d961400a: function(arg0, arg1) {
|
|
410
|
+
const ret = arg0.bind(arg1);
|
|
411
|
+
return ret;
|
|
412
|
+
},
|
|
405
413
|
__wbg_blockSize_5871fe73cc8dcba0: function(arg0) {
|
|
406
414
|
const ret = arg0.blockSize;
|
|
407
415
|
return ret;
|
|
@@ -802,10 +810,6 @@ function __wbg_get_imports() {
|
|
|
802
810
|
__wbg_enqueue_ec3552838b4b7fbf: function() { return handleError(function (arg0, arg1) {
|
|
803
811
|
arg0.enqueue(arg1);
|
|
804
812
|
}, arguments); },
|
|
805
|
-
__wbg_error_287b079609b734b7: function(arg0) {
|
|
806
|
-
const ret = arg0.error;
|
|
807
|
-
return ret;
|
|
808
|
-
},
|
|
809
813
|
__wbg_error_8d9a8e04cd1d3588: function(arg0) {
|
|
810
814
|
console.error(arg0);
|
|
811
815
|
},
|
|
@@ -2762,9 +2766,6 @@ function __wbg_get_imports() {
|
|
|
2762
2766
|
__wbg_set_onopen_d0eb44607253e86f: function(arg0, arg1) {
|
|
2763
2767
|
arg0.onopen = arg1;
|
|
2764
2768
|
},
|
|
2765
|
-
__wbg_set_onuncapturederror_b9a9ff2c881b2b40: function(arg0, arg1) {
|
|
2766
|
-
arg0.onuncapturederror = arg1;
|
|
2767
|
-
},
|
|
2768
2769
|
__wbg_set_operation_b5862f5a1a143b30: function(arg0, arg1) {
|
|
2769
2770
|
arg0.operation = __wbindgen_enum_GpuBlendOperation[arg1];
|
|
2770
2771
|
},
|
|
@@ -3171,10 +3172,6 @@ function __wbg_get_imports() {
|
|
|
3171
3172
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3172
3173
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3173
3174
|
}, arguments); },
|
|
3174
|
-
__wbg_valueOf_5c6da6c9a85f34dc: function(arg0) {
|
|
3175
|
-
const ret = arg0.valueOf();
|
|
3176
|
-
return ret;
|
|
3177
|
-
},
|
|
3178
3175
|
__wbg_value_21fc78aab0322612: function(arg0) {
|
|
3179
3176
|
const ret = arg0.value;
|
|
3180
3177
|
return ret;
|
|
@@ -3234,151 +3231,146 @@ function __wbg_get_imports() {
|
|
|
3234
3231
|
arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
|
|
3235
3232
|
}, arguments); },
|
|
3236
3233
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
3237
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3238
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3234
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 16, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 19, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3235
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h16dcef86690f8892, wasm_bindgen__convert__closures_____invoke__h4f46b7e32e5cc5de);
|
|
3239
3236
|
return ret;
|
|
3240
3237
|
},
|
|
3241
3238
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
3242
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3243
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3239
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 16, function: Function { arguments: [String, String], shim_idx: 21, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3240
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h16dcef86690f8892, wasm_bindgen__convert__closures_____invoke__h4374361ee1621ef3);
|
|
3244
3241
|
return ret;
|
|
3245
3242
|
},
|
|
3246
3243
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
3247
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3248
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3244
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 16, function: Function { arguments: [U32, U32, F64], shim_idx: 17, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3245
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h16dcef86690f8892, wasm_bindgen__convert__closures_____invoke__hac271129345e7e86);
|
|
3249
3246
|
return ret;
|
|
3250
3247
|
},
|
|
3251
3248
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
3252
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3253
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3249
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2358, function: Function { arguments: [Externref, Externref], shim_idx: 2361, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3250
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0def89a02ad24e25, wasm_bindgen__convert__closures_____invoke__haaac04ac4b28b1dc);
|
|
3254
3251
|
return ret;
|
|
3255
3252
|
},
|
|
3256
3253
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
3257
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3258
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3254
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2358, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 2359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3255
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0def89a02ad24e25, wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013);
|
|
3259
3256
|
return ret;
|
|
3260
3257
|
},
|
|
3261
3258
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
3262
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3263
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3259
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2358, function: Function { arguments: [NamedExternref("Event")], shim_idx: 2359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3260
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0def89a02ad24e25, wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_5);
|
|
3264
3261
|
return ret;
|
|
3265
3262
|
},
|
|
3266
3263
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
3267
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3268
|
-
const ret =
|
|
3264
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2358, function: Function { arguments: [NamedExternref("RTCDataChannelEvent")], shim_idx: 2359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3265
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0def89a02ad24e25, wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_6);
|
|
3269
3266
|
return ret;
|
|
3270
3267
|
},
|
|
3271
3268
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
3272
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3273
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3269
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2358, function: Function { arguments: [NamedExternref("RTCPeerConnectionIceEvent")], shim_idx: 2359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3270
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h0def89a02ad24e25, wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_7);
|
|
3274
3271
|
return ret;
|
|
3275
3272
|
},
|
|
3276
3273
|
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
3277
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3278
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3274
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2915, function: Function { arguments: [], shim_idx: 2916, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3275
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hf04f1b52029392cb, wasm_bindgen__convert__closures_____invoke__hbc8eaa61aedbf990);
|
|
3279
3276
|
return ret;
|
|
3280
3277
|
},
|
|
3281
3278
|
__wbindgen_cast_000000000000000a: function(arg0, arg1) {
|
|
3282
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3283
|
-
const ret =
|
|
3279
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4129, function: Function { arguments: [String], shim_idx: 4130, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
3280
|
+
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8d68c0c402e150fa, wasm_bindgen__convert__closures_____invoke__h6d3b5d34c5205706);
|
|
3284
3281
|
return ret;
|
|
3285
3282
|
},
|
|
3286
3283
|
__wbindgen_cast_000000000000000b: function(arg0, arg1) {
|
|
3287
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3288
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3284
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4154, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 4155, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3285
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h08b6962c9c4a8461, wasm_bindgen__convert__closures_____invoke__h195f08c6c1eced42);
|
|
3289
3286
|
return ret;
|
|
3290
3287
|
},
|
|
3291
3288
|
__wbindgen_cast_000000000000000c: function(arg0, arg1) {
|
|
3292
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3293
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3289
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4276, function: Function { arguments: [Externref], shim_idx: 4277, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3290
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h22ca06dde759e186, wasm_bindgen__convert__closures_____invoke__h3803a1e8b18ffddc);
|
|
3294
3291
|
return ret;
|
|
3295
3292
|
},
|
|
3296
3293
|
__wbindgen_cast_000000000000000d: function(arg0, arg1) {
|
|
3297
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3298
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0,
|
|
3294
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [Externref], shim_idx: 4370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3295
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1);
|
|
3299
3296
|
return ret;
|
|
3300
3297
|
},
|
|
3301
3298
|
__wbindgen_cast_000000000000000e: function(arg0, arg1) {
|
|
3302
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3303
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0,
|
|
3299
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx: 4372, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3300
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h9fd153286ed41e9c);
|
|
3304
3301
|
return ret;
|
|
3305
3302
|
},
|
|
3306
3303
|
__wbindgen_cast_000000000000000f: function(arg0, arg1) {
|
|
3307
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3304
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 4370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3308
3305
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_14);
|
|
3309
3306
|
return ret;
|
|
3310
3307
|
},
|
|
3311
3308
|
__wbindgen_cast_0000000000000010: function(arg0, arg1) {
|
|
3312
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3309
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [NamedExternref("Event")], shim_idx: 4370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3313
3310
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_15);
|
|
3314
3311
|
return ret;
|
|
3315
3312
|
},
|
|
3316
3313
|
__wbindgen_cast_0000000000000011: function(arg0, arg1) {
|
|
3317
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3314
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 4370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3318
3315
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_16);
|
|
3319
3316
|
return ret;
|
|
3320
3317
|
},
|
|
3321
3318
|
__wbindgen_cast_0000000000000012: function(arg0, arg1) {
|
|
3322
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3319
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 4370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3323
3320
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_17);
|
|
3324
3321
|
return ret;
|
|
3325
3322
|
},
|
|
3326
3323
|
__wbindgen_cast_0000000000000013: function(arg0, arg1) {
|
|
3327
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3324
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [NamedExternref("PageTransitionEvent")], shim_idx: 4370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3328
3325
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_18);
|
|
3329
3326
|
return ret;
|
|
3330
3327
|
},
|
|
3331
3328
|
__wbindgen_cast_0000000000000014: function(arg0, arg1) {
|
|
3332
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3333
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0,
|
|
3329
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 4370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3330
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_19);
|
|
3334
3331
|
return ret;
|
|
3335
3332
|
},
|
|
3336
3333
|
__wbindgen_cast_0000000000000015: function(arg0, arg1) {
|
|
3337
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3338
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0,
|
|
3334
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 4370, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3335
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_20);
|
|
3339
3336
|
return ret;
|
|
3340
3337
|
},
|
|
3341
3338
|
__wbindgen_cast_0000000000000016: function(arg0, arg1) {
|
|
3342
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3343
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3339
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [Option(NamedExternref("Blob"))], shim_idx: 4376, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3340
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__ha87a485729c1bc45);
|
|
3344
3341
|
return ret;
|
|
3345
3342
|
},
|
|
3346
3343
|
__wbindgen_cast_0000000000000017: function(arg0, arg1) {
|
|
3347
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3348
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3344
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4369, function: Function { arguments: [], shim_idx: 4379, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3345
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2fa417b22e371ac0, wasm_bindgen__convert__closures_____invoke__h916e8c5bf71a8454);
|
|
3349
3346
|
return ret;
|
|
3350
3347
|
},
|
|
3351
3348
|
__wbindgen_cast_0000000000000018: function(arg0, arg1) {
|
|
3352
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3353
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3349
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 5138, function: Function { arguments: [], shim_idx: 5139, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3350
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h497a5311ffee252b, wasm_bindgen__convert__closures_____invoke__hcba5ad8b0d96cf50);
|
|
3354
3351
|
return ret;
|
|
3355
3352
|
},
|
|
3356
3353
|
__wbindgen_cast_0000000000000019: function(arg0, arg1) {
|
|
3357
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3358
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3354
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 5209, function: Function { arguments: [Externref], shim_idx: 5210, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3355
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h83f8bfe43e51586e, wasm_bindgen__convert__closures_____invoke__h5fae2a5a8b174cd2);
|
|
3359
3356
|
return ret;
|
|
3360
3357
|
},
|
|
3361
3358
|
__wbindgen_cast_000000000000001a: function(arg0, arg1) {
|
|
3362
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
3363
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
3364
|
-
return ret;
|
|
3365
|
-
},
|
|
3366
|
-
__wbindgen_cast_000000000000001b: function(arg0, arg1) {
|
|
3367
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 584, function: Function { arguments: [U32, U32, F64], shim_idx: 585, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3368
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h677d3b08c69adfbf, wasm_bindgen__convert__closures_____invoke__h530de7b4ff70bfe3);
|
|
3359
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 5228, function: Function { arguments: [Externref], shim_idx: 5229, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3360
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h10eef66b5be2507e, wasm_bindgen__convert__closures_____invoke__h1425c1d15e69fe66);
|
|
3369
3361
|
return ret;
|
|
3370
3362
|
},
|
|
3371
|
-
|
|
3363
|
+
__wbindgen_cast_000000000000001b: function(arg0) {
|
|
3372
3364
|
// Cast intrinsic for `F64 -> Externref`.
|
|
3373
3365
|
const ret = arg0;
|
|
3374
3366
|
return ret;
|
|
3375
3367
|
},
|
|
3376
|
-
|
|
3368
|
+
__wbindgen_cast_000000000000001c: function(arg0, arg1) {
|
|
3377
3369
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
3378
3370
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
3379
3371
|
return ret;
|
|
3380
3372
|
},
|
|
3381
|
-
|
|
3373
|
+
__wbindgen_cast_000000000000001d: function(arg0, arg1) {
|
|
3382
3374
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
3383
3375
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
3384
3376
|
return ret;
|
|
@@ -3416,46 +3408,38 @@ function wasm_bindgen__convert__closures_____invoke__hcba5ad8b0d96cf50(arg0, arg
|
|
|
3416
3408
|
wasm.wasm_bindgen__convert__closures_____invoke__hcba5ad8b0d96cf50(arg0, arg1);
|
|
3417
3409
|
}
|
|
3418
3410
|
|
|
3419
|
-
function
|
|
3420
|
-
wasm.
|
|
3411
|
+
function wasm_bindgen__convert__closures_____invoke__h4f46b7e32e5cc5de(arg0, arg1, arg2) {
|
|
3412
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h4f46b7e32e5cc5de(arg0, arg1, arg2);
|
|
3421
3413
|
}
|
|
3422
3414
|
|
|
3423
|
-
function
|
|
3424
|
-
wasm.
|
|
3415
|
+
function wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013(arg0, arg1, arg2) {
|
|
3416
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013(arg0, arg1, arg2);
|
|
3425
3417
|
}
|
|
3426
3418
|
|
|
3427
|
-
function
|
|
3428
|
-
wasm.
|
|
3419
|
+
function wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_5(arg0, arg1, arg2) {
|
|
3420
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_5(arg0, arg1, arg2);
|
|
3429
3421
|
}
|
|
3430
3422
|
|
|
3431
|
-
function
|
|
3432
|
-
wasm.
|
|
3423
|
+
function wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_6(arg0, arg1, arg2) {
|
|
3424
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_6(arg0, arg1, arg2);
|
|
3433
3425
|
}
|
|
3434
3426
|
|
|
3435
|
-
function
|
|
3436
|
-
wasm.
|
|
3427
|
+
function wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_7(arg0, arg1, arg2) {
|
|
3428
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_7(arg0, arg1, arg2);
|
|
3437
3429
|
}
|
|
3438
3430
|
|
|
3439
|
-
function
|
|
3440
|
-
wasm.
|
|
3431
|
+
function wasm_bindgen__convert__closures_____invoke__h195f08c6c1eced42(arg0, arg1, arg2) {
|
|
3432
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h195f08c6c1eced42(arg0, arg1, arg2);
|
|
3441
3433
|
}
|
|
3442
3434
|
|
|
3443
|
-
function
|
|
3444
|
-
wasm.
|
|
3435
|
+
function wasm_bindgen__convert__closures_____invoke__h3803a1e8b18ffddc(arg0, arg1, arg2) {
|
|
3436
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3803a1e8b18ffddc(arg0, arg1, arg2);
|
|
3445
3437
|
}
|
|
3446
3438
|
|
|
3447
3439
|
function wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1(arg0, arg1, arg2) {
|
|
3448
3440
|
wasm.wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1(arg0, arg1, arg2);
|
|
3449
3441
|
}
|
|
3450
3442
|
|
|
3451
|
-
function wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_12(arg0, arg1, arg2) {
|
|
3452
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_12(arg0, arg1, arg2);
|
|
3453
|
-
}
|
|
3454
|
-
|
|
3455
|
-
function wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_13(arg0, arg1, arg2) {
|
|
3456
|
-
wasm.wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_13(arg0, arg1, arg2);
|
|
3457
|
-
}
|
|
3458
|
-
|
|
3459
3443
|
function wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_14(arg0, arg1, arg2) {
|
|
3460
3444
|
wasm.wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_14(arg0, arg1, arg2);
|
|
3461
3445
|
}
|
|
@@ -3476,12 +3460,16 @@ function wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_18(arg0,
|
|
|
3476
3460
|
wasm.wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_18(arg0, arg1, arg2);
|
|
3477
3461
|
}
|
|
3478
3462
|
|
|
3479
|
-
function
|
|
3480
|
-
wasm.
|
|
3463
|
+
function wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_19(arg0, arg1, arg2) {
|
|
3464
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_19(arg0, arg1, arg2);
|
|
3465
|
+
}
|
|
3466
|
+
|
|
3467
|
+
function wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_20(arg0, arg1, arg2) {
|
|
3468
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_20(arg0, arg1, arg2);
|
|
3481
3469
|
}
|
|
3482
3470
|
|
|
3483
|
-
function
|
|
3484
|
-
wasm.
|
|
3471
|
+
function wasm_bindgen__convert__closures_____invoke__h5fae2a5a8b174cd2(arg0, arg1, arg2) {
|
|
3472
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h5fae2a5a8b174cd2(arg0, arg1, arg2);
|
|
3485
3473
|
}
|
|
3486
3474
|
|
|
3487
3475
|
function wasm_bindgen__convert__closures_____invoke__h1425c1d15e69fe66(arg0, arg1, arg2) {
|
|
@@ -3491,8 +3479,8 @@ function wasm_bindgen__convert__closures_____invoke__h1425c1d15e69fe66(arg0, arg
|
|
|
3491
3479
|
}
|
|
3492
3480
|
}
|
|
3493
3481
|
|
|
3494
|
-
function
|
|
3495
|
-
wasm.
|
|
3482
|
+
function wasm_bindgen__convert__closures_____invoke__haaac04ac4b28b1dc(arg0, arg1, arg2, arg3) {
|
|
3483
|
+
wasm.wasm_bindgen__convert__closures_____invoke__haaac04ac4b28b1dc(arg0, arg1, arg2, arg3);
|
|
3496
3484
|
}
|
|
3497
3485
|
|
|
3498
3486
|
function wasm_bindgen__convert__closures_____invoke__h9fd153286ed41e9c(arg0, arg1, arg2, arg3) {
|
|
@@ -3507,20 +3495,22 @@ function wasm_bindgen__convert__closures_____invoke__ha87a485729c1bc45(arg0, arg
|
|
|
3507
3495
|
wasm.wasm_bindgen__convert__closures_____invoke__ha87a485729c1bc45(arg0, arg1, isLikeNone(arg2) ? 0 : addToExternrefTable0(arg2));
|
|
3508
3496
|
}
|
|
3509
3497
|
|
|
3510
|
-
function
|
|
3498
|
+
function wasm_bindgen__convert__closures_____invoke__h6d3b5d34c5205706(arg0, arg1, arg2) {
|
|
3511
3499
|
const ptr0 = passStringToWasm0(arg2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3512
3500
|
const len0 = WASM_VECTOR_LEN;
|
|
3513
|
-
wasm.
|
|
3501
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h6d3b5d34c5205706(arg0, arg1, ptr0, len0);
|
|
3514
3502
|
}
|
|
3515
3503
|
|
|
3516
|
-
function
|
|
3504
|
+
function wasm_bindgen__convert__closures_____invoke__h4374361ee1621ef3(arg0, arg1, arg2, arg3) {
|
|
3517
3505
|
const ptr0 = passStringToWasm0(arg2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3518
3506
|
const len0 = WASM_VECTOR_LEN;
|
|
3519
|
-
|
|
3507
|
+
const ptr1 = passStringToWasm0(arg3, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3508
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3509
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h4374361ee1621ef3(arg0, arg1, ptr0, len0, ptr1, len1);
|
|
3520
3510
|
}
|
|
3521
3511
|
|
|
3522
|
-
function
|
|
3523
|
-
wasm.
|
|
3512
|
+
function wasm_bindgen__convert__closures_____invoke__hac271129345e7e86(arg0, arg1, arg2, arg3, arg4) {
|
|
3513
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hac271129345e7e86(arg0, arg1, arg2, arg3, arg4);
|
|
3524
3514
|
}
|
|
3525
3515
|
|
|
3526
3516
|
|
|
Binary file
|
|
@@ -25,41 +25,40 @@ export const intounderlyingsink_close: (a: number) => any;
|
|
|
25
25
|
export const intounderlyingsink_write: (a: number, b: any) => any;
|
|
26
26
|
export const intounderlyingsource_cancel: (a: number) => void;
|
|
27
27
|
export const intounderlyingsource_pull: (a: number, b: any) => any;
|
|
28
|
-
export const
|
|
28
|
+
export const wasm_bindgen__closure__destroy__h16dcef86690f8892: (a: number, b: number) => void;
|
|
29
|
+
export const wasm_bindgen__closure__destroy__h0def89a02ad24e25: (a: number, b: number) => void;
|
|
29
30
|
export const wasm_bindgen__closure__destroy__hf04f1b52029392cb: (a: number, b: number) => void;
|
|
30
|
-
export const
|
|
31
|
-
export const
|
|
31
|
+
export const wasm_bindgen__closure__destroy__h8d68c0c402e150fa: (a: number, b: number) => void;
|
|
32
|
+
export const wasm_bindgen__closure__destroy__h08b6962c9c4a8461: (a: number, b: number) => void;
|
|
32
33
|
export const wasm_bindgen__closure__destroy__h22ca06dde759e186: (a: number, b: number) => void;
|
|
33
34
|
export const wasm_bindgen__closure__destroy__h2fa417b22e371ac0: (a: number, b: number) => void;
|
|
34
35
|
export const wasm_bindgen__closure__destroy__h497a5311ffee252b: (a: number, b: number) => void;
|
|
35
36
|
export const wasm_bindgen__closure__destroy__h83f8bfe43e51586e: (a: number, b: number) => void;
|
|
36
37
|
export const wasm_bindgen__closure__destroy__h10eef66b5be2507e: (a: number, b: number) => void;
|
|
37
|
-
export const
|
|
38
|
-
export const
|
|
39
|
-
export const
|
|
40
|
-
export const
|
|
38
|
+
export const wasm_bindgen__convert__closures_____invoke__hac271129345e7e86: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
39
|
+
export const wasm_bindgen__convert__closures_____invoke__h4374361ee1621ef3: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
40
|
+
export const wasm_bindgen__convert__closures_____invoke__haaac04ac4b28b1dc: (a: number, b: number, c: any, d: any) => void;
|
|
41
|
+
export const wasm_bindgen__convert__closures_____invoke__h6d3b5d34c5205706: (a: number, b: number, c: number, d: number) => void;
|
|
41
42
|
export const wasm_bindgen__convert__closures_____invoke__h9fd153286ed41e9c: (a: number, b: number, c: any, d: any) => void;
|
|
42
43
|
export const wasm_bindgen__convert__closures_____invoke__h1425c1d15e69fe66: (a: number, b: number, c: any) => [number, number];
|
|
43
|
-
export const wasm_bindgen__convert__closures_____invoke__h430dc5b36c3ff7df: (a: number, b: number, c: number, d: number) => void;
|
|
44
44
|
export const wasm_bindgen__convert__closures_____invoke__h65f53cb9c5fcb430: (a: number, b: number, c: any, d: any) => void;
|
|
45
|
-
export const
|
|
46
|
-
export const
|
|
47
|
-
export const
|
|
48
|
-
export const
|
|
49
|
-
export const
|
|
45
|
+
export const wasm_bindgen__convert__closures_____invoke__h4f46b7e32e5cc5de: (a: number, b: number, c: any) => void;
|
|
46
|
+
export const wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013: (a: number, b: number, c: any) => void;
|
|
47
|
+
export const wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_5: (a: number, b: number, c: any) => void;
|
|
48
|
+
export const wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_6: (a: number, b: number, c: any) => void;
|
|
49
|
+
export const wasm_bindgen__convert__closures_____invoke__h1352e4fb5458c013_7: (a: number, b: number, c: any) => void;
|
|
50
|
+
export const wasm_bindgen__convert__closures_____invoke__h195f08c6c1eced42: (a: number, b: number, c: any) => void;
|
|
50
51
|
export const wasm_bindgen__convert__closures_____invoke__h3803a1e8b18ffddc: (a: number, b: number, c: any) => void;
|
|
51
|
-
export const wasm_bindgen__convert__closures_____invoke__h3803a1e8b18ffddc_9: (a: number, b: number, c: any) => void;
|
|
52
52
|
export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1: (a: number, b: number, c: any) => void;
|
|
53
|
-
export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_12: (a: number, b: number, c: any) => void;
|
|
54
|
-
export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_13: (a: number, b: number, c: any) => void;
|
|
55
53
|
export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_14: (a: number, b: number, c: any) => void;
|
|
56
54
|
export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_15: (a: number, b: number, c: any) => void;
|
|
57
55
|
export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_16: (a: number, b: number, c: any) => void;
|
|
58
56
|
export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_17: (a: number, b: number, c: any) => void;
|
|
59
57
|
export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_18: (a: number, b: number, c: any) => void;
|
|
58
|
+
export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_19: (a: number, b: number, c: any) => void;
|
|
59
|
+
export const wasm_bindgen__convert__closures_____invoke__h27c0605e3bdfefc1_20: (a: number, b: number, c: any) => void;
|
|
60
60
|
export const wasm_bindgen__convert__closures_____invoke__ha87a485729c1bc45: (a: number, b: number, c: number) => void;
|
|
61
61
|
export const wasm_bindgen__convert__closures_____invoke__h5fae2a5a8b174cd2: (a: number, b: number, c: any) => void;
|
|
62
|
-
export const wasm_bindgen__convert__closures_____invoke__h8d56de0e71630208: (a: number, b: number, c: any) => void;
|
|
63
62
|
export const wasm_bindgen__convert__closures_____invoke__hbc8eaa61aedbf990: (a: number, b: number) => void;
|
|
64
63
|
export const wasm_bindgen__convert__closures_____invoke__h916e8c5bf71a8454: (a: number, b: number) => void;
|
|
65
64
|
export const wasm_bindgen__convert__closures_____invoke__hcba5ad8b0d96cf50: (a: number, b: number) => void;
|
|
@@ -6,12 +6,13 @@ export function __ori_install_webgpu_error_tap(sink) {
|
|
|
6
6
|
const orig = GPUAdapter.prototype.requestDevice;
|
|
7
7
|
GPUAdapter.prototype.requestDevice = async function(desc) {
|
|
8
8
|
const device = await orig.call(this, desc);
|
|
9
|
+
try { window.__ori_gpu_device = device; } catch (_) {}
|
|
9
10
|
try {
|
|
10
11
|
device.addEventListener('uncapturederror', function(event) {
|
|
11
12
|
const e = event.error;
|
|
12
13
|
const name = (e && e.constructor && e.constructor.name) || 'GPUError';
|
|
13
14
|
const msg = (e && e.message) || '';
|
|
14
|
-
try { sink(name
|
|
15
|
+
try { sink(name, msg); } catch (_) {}
|
|
15
16
|
try { console.error('[raw_webgpu_uncaptured]', name, msg); } catch (_) {}
|
|
16
17
|
});
|
|
17
18
|
} catch (_) {}
|
package/dist/starter/AGENTS.md
CHANGED
|
@@ -11,9 +11,9 @@ loader scripts or engine URLs.
|
|
|
11
11
|
|
|
12
12
|
## Before writing Weave, read the guide
|
|
13
13
|
|
|
14
|
-
- https://unpkg.com/oriverse-engine@0.1.
|
|
14
|
+
- https://unpkg.com/oriverse-engine@0.1.3/dist/GAME_AUTHORING.md — authoring patterns + 3 complete tested
|
|
15
15
|
example games (coin collector, dodge blocks, target range) to pattern-match from.
|
|
16
|
-
- https://unpkg.com/oriverse-engine@0.1.
|
|
16
|
+
- https://unpkg.com/oriverse-engine@0.1.3/dist/weave_documentation.txt — full language + API reference.
|
|
17
17
|
|
|
18
18
|
Key constraints: content must be fully procedural (primitive models `"cube"`,
|
|
19
19
|
`"sphere"`, ..., `#mesh`, `#texture` — no market/network assets); units are cm with Z
|
package/dist/starter/CLAUDE.md
CHANGED
|
@@ -11,9 +11,9 @@ loader scripts or engine URLs.
|
|
|
11
11
|
|
|
12
12
|
## Before writing Weave, read the guide
|
|
13
13
|
|
|
14
|
-
- https://unpkg.com/oriverse-engine@0.1.
|
|
14
|
+
- https://unpkg.com/oriverse-engine@0.1.3/dist/GAME_AUTHORING.md — authoring patterns + 3 complete tested
|
|
15
15
|
example games (coin collector, dodge blocks, target range) to pattern-match from.
|
|
16
|
-
- https://unpkg.com/oriverse-engine@0.1.
|
|
16
|
+
- https://unpkg.com/oriverse-engine@0.1.3/dist/weave_documentation.txt — full language + API reference.
|
|
17
17
|
|
|
18
18
|
Key constraints: content must be fully procedural (primitive models `"cube"`,
|
|
19
19
|
`"sphere"`, ..., `#mesh`, `#texture` — no market/network assets); units are cm with Z
|
package/dist/starter/game.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
This single small file IS the whole game: engine js/wasm come from unpkg, your game is
|
|
3
3
|
the inline Weave source below. Serve from any static host (no COOP/COEP headers) or a
|
|
4
4
|
plain `python -m http.server`; open in a WebGPU browser (Chrome/Edge).
|
|
5
|
-
The engine version is pinned in the https://unpkg.com/oriverse-engine@0.1.
|
|
5
|
+
The engine version is pinned in the https://unpkg.com/oriverse-engine@0.1.3/dist urls below (injected from
|
|
6
6
|
npm_package/package.json at packaging time) — bump the @version with engine releases.
|
|
7
7
|
Content must be fully procedural: primitives ("cube", "sphere", ...), #mesh, #texture,
|
|
8
8
|
#particles. Market/network assets are unavailable and will hard-error. -->
|
|
@@ -43,16 +43,16 @@ object BlueCube {
|
|
|
43
43
|
</script>
|
|
44
44
|
|
|
45
45
|
<!-- KTX2 texture transcoder sidecar (classic scripts; ktx_lib.wasm resolves relative to the script url). -->
|
|
46
|
-
<script src="https://unpkg.com/oriverse-engine@0.1.
|
|
47
|
-
<script src="https://unpkg.com/oriverse-engine@0.1.
|
|
46
|
+
<script src="https://unpkg.com/oriverse-engine@0.1.3/dist/ktx_lib.js"></script>
|
|
47
|
+
<script src="https://unpkg.com/oriverse-engine@0.1.3/dist/ktx_bridge.js"></script>
|
|
48
48
|
<script type="module">
|
|
49
|
-
import initOriverse from "https://unpkg.com/oriverse-engine@0.1.
|
|
49
|
+
import initOriverse from "https://unpkg.com/oriverse-engine@0.1.3/dist/oriverse_wgpu.js";
|
|
50
50
|
const setBoot = (t) => { const b = document.getElementById('oriverse-status-banner'); if (b) b.textContent = t; };
|
|
51
51
|
(async () => {
|
|
52
52
|
try {
|
|
53
53
|
setBoot('instantiating wasm...');
|
|
54
54
|
// Artifact build: wasm-bindgen owns a private (non-shared) memory; no COOP/COEP needed.
|
|
55
|
-
await initOriverse({ module_or_path: "https://unpkg.com/oriverse-engine@0.1.
|
|
55
|
+
await initOriverse({ module_or_path: "https://unpkg.com/oriverse-engine@0.1.3/dist/oriverse_wgpu_bg.wasm" });
|
|
56
56
|
} catch (e) {
|
|
57
57
|
const msg = (e && e.stack) ? e.stack : String(e);
|
|
58
58
|
setBoot('WASM init failed:\n' + msg);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
This single small file IS the whole game: engine js/wasm come from unpkg, your game is
|
|
3
3
|
the inline Weave source below. Serve from any static host (no COOP/COEP headers) or a
|
|
4
4
|
plain `python -m http.server`; open in a WebGPU browser (Chrome/Edge).
|
|
5
|
-
The engine version is pinned in the https://unpkg.com/oriverse-engine@0.1.
|
|
5
|
+
The engine version is pinned in the https://unpkg.com/oriverse-engine@0.1.3/dist urls below (injected from
|
|
6
6
|
npm_package/package.json at packaging time) — bump the @version with engine releases.
|
|
7
7
|
Content must be fully procedural: primitives ("cube", "sphere", ...), #mesh, #texture,
|
|
8
8
|
#particles. Market/network assets are unavailable and will hard-error. -->
|
|
@@ -43,16 +43,16 @@ object BlueCube {
|
|
|
43
43
|
</script>
|
|
44
44
|
|
|
45
45
|
<!-- KTX2 texture transcoder sidecar (classic scripts; ktx_lib.wasm resolves relative to the script url). -->
|
|
46
|
-
<script src="https://unpkg.com/oriverse-engine@0.1.
|
|
47
|
-
<script src="https://unpkg.com/oriverse-engine@0.1.
|
|
46
|
+
<script src="https://unpkg.com/oriverse-engine@0.1.3/dist/ktx_lib.js"></script>
|
|
47
|
+
<script src="https://unpkg.com/oriverse-engine@0.1.3/dist/ktx_bridge.js"></script>
|
|
48
48
|
<script type="module">
|
|
49
|
-
import initOriverse from "https://unpkg.com/oriverse-engine@0.1.
|
|
49
|
+
import initOriverse from "https://unpkg.com/oriverse-engine@0.1.3/dist/oriverse_wgpu.js";
|
|
50
50
|
const setBoot = (t) => { const b = document.getElementById('oriverse-status-banner'); if (b) b.textContent = t; };
|
|
51
51
|
(async () => {
|
|
52
52
|
try {
|
|
53
53
|
setBoot('instantiating wasm...');
|
|
54
54
|
// Artifact build: wasm-bindgen owns a private (non-shared) memory; no COOP/COEP needed.
|
|
55
|
-
await initOriverse({ module_or_path: "https://unpkg.com/oriverse-engine@0.1.
|
|
55
|
+
await initOriverse({ module_or_path: "https://unpkg.com/oriverse-engine@0.1.3/dist/oriverse_wgpu_bg.wasm" });
|
|
56
56
|
} catch (e) {
|
|
57
57
|
const msg = (e && e.stack) ? e.stack : String(e);
|
|
58
58
|
setBoot('WASM init failed:\n' + msg);
|