@origingame/engine 0.4.0 → 0.5.0

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 (78) hide show
  1. package/dist/web/origin-engine.d.ts +8 -5
  2. package/dist/web/origin-engine.js +39 -19
  3. package/dist/web/origin-engine_bg.wasm +0 -0
  4. package/dist/web/origin-engine_bg.wasm.d.ts +6 -5
  5. package/dist/web-publish/origin-engine-lanes.js +49 -29
  6. package/dist/web-publish/origin-engine-lanes_bg.wasm +0 -0
  7. package/dist/web-publish/origin-engine.d.ts +8 -5
  8. package/dist/web-publish/origin-engine.js +39 -19
  9. package/dist/web-publish/origin-engine_bg.wasm +0 -0
  10. package/dist/web-publish/origin-engine_bg.wasm.d.ts +6 -5
  11. package/dist/web-publish-2d/origin-engine-lanes.js +49 -29
  12. package/dist/web-publish-2d/origin-engine-lanes_bg.wasm +0 -0
  13. package/dist/web-publish-2d/origin-engine.d.ts +8 -5
  14. package/dist/web-publish-2d/origin-engine.js +39 -19
  15. package/dist/web-publish-2d/origin-engine_bg.wasm +0 -0
  16. package/dist/web-publish-2d/origin-engine_bg.wasm.d.ts +6 -5
  17. package/knowledge/looks/catalogue.json +123 -2
  18. package/knowledge/package.json +1 -1
  19. package/knowledge/scaffold/origin-engine.json +2 -2
  20. package/knowledge/scaffold/template/package.json +1 -1
  21. package/knowledge/scaffold/template/project.ogt +1 -1
  22. package/knowledge/scripts/validate.ts +69 -6
  23. package/knowledge/skills/og-audio/SKILL.md +31 -5
  24. package/knowledge/skills/og-build/SKILL.md +44 -4
  25. package/knowledge/skills/og-core/SKILL.md +4 -3
  26. package/knowledge/skills/og-feel/SKILL.md +9 -1
  27. package/knowledge/skills/og-game/SKILL.md +199 -16
  28. package/knowledge/skills/og-platform-sdk/SKILL.md +6 -0
  29. package/knowledge/skills/og-taste/SKILL.md +7 -0
  30. package/knowledge/skills/og-ui/SKILL.md +24 -0
  31. package/knowledge/wiki/ai.md +20 -20
  32. package/knowledge/wiki/anim.md +526 -60
  33. package/knowledge/wiki/atmosphere.md +13 -13
  34. package/knowledge/wiki/audio.md +160 -20
  35. package/knowledge/wiki/camera.md +13 -13
  36. package/knowledge/wiki/commands.md +11 -11
  37. package/knowledge/wiki/debug.md +13 -13
  38. package/knowledge/wiki/game.md +8 -8
  39. package/knowledge/wiki/i18n.md +7 -7
  40. package/knowledge/wiki/index.md +25 -1
  41. package/knowledge/wiki/input.md +47 -47
  42. package/knowledge/wiki/load.md +76 -50
  43. package/knowledge/wiki/math.md +102 -102
  44. package/knowledge/wiki/nav.md +34 -34
  45. package/knowledge/wiki/net.md +10 -10
  46. package/knowledge/wiki/path.md +14 -14
  47. package/knowledge/wiki/physics.md +111 -100
  48. package/knowledge/wiki/platform.md +44 -44
  49. package/knowledge/wiki/probe.md +86 -86
  50. package/knowledge/wiki/reflect.md +17 -17
  51. package/knowledge/wiki/render.md +245 -176
  52. package/knowledge/wiki/rng.md +14 -14
  53. package/knowledge/wiki/shapes.md +26 -26
  54. package/knowledge/wiki/stream.md +15 -15
  55. package/knowledge/wiki/system.md +8 -8
  56. package/knowledge/wiki/systems.md +2 -2
  57. package/knowledge/wiki/terrain.md +19 -19
  58. package/knowledge/wiki/tilemap.md +13 -13
  59. package/knowledge/wiki/time.md +4 -4
  60. package/knowledge/wiki/timeline.md +14 -14
  61. package/knowledge/wiki/transform.md +8 -8
  62. package/knowledge/wiki/tween.md +17 -17
  63. package/knowledge/wiki/ui.md +243 -243
  64. package/knowledge/wiki/video.md +5 -5
  65. package/knowledge/wiki/world.md +36 -36
  66. package/package.json +4 -4
  67. package/schema/api.schema.json +639 -11
  68. package/shell/page.ts +4 -0
  69. package/src/generated/abi.ts +3 -0
  70. package/src/index.ts +11 -0
  71. package/src/node/device.ts +5 -2
  72. package/src/node/polish.ts +34 -15
  73. package/src/node/run.ts +23 -6
  74. package/src/runtime.ts +1 -0
  75. package/src/web/gl-state.ts +907 -0
  76. package/src/web/worker.ts +6 -0
  77. package/types/bindings.json +823 -349
  78. package/types/index.d.ts +650 -15
@@ -20,7 +20,7 @@ module tilemap {
20
20
  # declarations follow, each quoted below
21
21
  ```
22
22
 
23
- <sub>`api.ogt` line 8495</sub>
23
+ <sub>`api.ogt` line 8794</sub>
24
24
 
25
25
  ## Contents
26
26
 
@@ -69,7 +69,7 @@ fn setTile {
69
69
  }
70
70
  ```
71
71
 
72
- <sub>`api.ogt` line 8605</sub>
72
+ <sub>`api.ogt` line 8904</sub>
73
73
 
74
74
  <a id="fn-getTile"></a>
75
75
 
@@ -105,7 +105,7 @@ fn getTile {
105
105
  }
106
106
  ```
107
107
 
108
- <sub>`api.ogt` line 8612</sub>
108
+ <sub>`api.ogt` line 8911</sub>
109
109
 
110
110
  <a id="fn-cellAt"></a>
111
111
 
@@ -137,7 +137,7 @@ fn cellAt {
137
137
  }
138
138
  ```
139
139
 
140
- <sub>`api.ogt` line 8622</sub>
140
+ <sub>`api.ogt` line 8921</sub>
141
141
 
142
142
  <a id="fn-cellCenter"></a>
143
143
 
@@ -171,7 +171,7 @@ fn cellCenter {
171
171
  }
172
172
  ```
173
173
 
174
- <sub>`api.ogt` line 8630</sub>
174
+ <sub>`api.ogt` line 8929</sub>
175
175
 
176
176
  ## Components, resources and events
177
177
 
@@ -226,7 +226,7 @@ component Tilemap {
226
226
  }
227
227
  ```
228
228
 
229
- <sub>`api.ogt` line 8511</sub>
229
+ <sub>`api.ogt` line 8810</sub>
230
230
 
231
231
  ## Types
232
232
 
@@ -242,7 +242,7 @@ A generational handle: a number the engine hands out. A dead handle is an error
242
242
  handle TilemapAsset "A loaded map: its layers, tilesets and objects."
243
243
  ```
244
244
 
245
- <sub>`api.ogt` line 8502</sub>
245
+ <sub>`api.ogt` line 8801</sub>
246
246
 
247
247
  <a id="type-TileLayerInfo"></a>
248
248
 
@@ -279,7 +279,7 @@ struct TileLayerInfo {
279
279
  }
280
280
  ```
281
281
 
282
- <sub>`api.ogt` line 8541</sub>
282
+ <sub>`api.ogt` line 8840</sub>
283
283
 
284
284
  <a id="type-TileObject"></a>
285
285
 
@@ -314,7 +314,7 @@ struct TileObject {
314
314
  }
315
315
  ```
316
316
 
317
- <sub>`api.ogt` line 8555</sub>
317
+ <sub>`api.ogt` line 8854</sub>
318
318
 
319
319
  <a id="type-TilemapInfo"></a>
320
320
 
@@ -349,7 +349,7 @@ struct TilemapInfo {
349
349
  }
350
350
  ```
351
351
 
352
- <sub>`api.ogt` line 8571</sub>
352
+ <sub>`api.ogt` line 8870</sub>
353
353
 
354
354
  <a id="type-SetTileDesc"></a>
355
355
 
@@ -381,7 +381,7 @@ struct SetTileDesc {
381
381
  }
382
382
  ```
383
383
 
384
- <sub>`api.ogt` line 8586</sub>
384
+ <sub>`api.ogt` line 8885</sub>
385
385
 
386
386
  <a id="type-TileCell"></a>
387
387
 
@@ -404,7 +404,7 @@ struct TileCell {
404
404
  }
405
405
  ```
406
406
 
407
- <sub>`api.ogt` line 8598</sub>
407
+ <sub>`api.ogt` line 8897</sub>
408
408
 
409
409
  ## Column kinds
410
410
 
@@ -423,4 +423,4 @@ column TilemapAsset {
423
423
  }
424
424
  ```
425
425
 
426
- <sub>`api.ogt` line 8504</sub>
426
+ <sub>`api.ogt` line 8803</sub>
@@ -14,7 +14,7 @@ module time {
14
14
  # declarations follow, each quoted below
15
15
  ```
16
16
 
17
- <sub>`api.ogt` line 1172</sub>
17
+ <sub>`api.ogt` line 1173</sub>
18
18
 
19
19
  ## Contents
20
20
 
@@ -54,7 +54,7 @@ fn setScale {
54
54
  }
55
55
  ```
56
56
 
57
- <sub>`api.ogt` line 1214</sub>
57
+ <sub>`api.ogt` line 1215</sub>
58
58
 
59
59
  <a id="fn-hitStop"></a>
60
60
 
@@ -84,7 +84,7 @@ fn hitStop {
84
84
  }
85
85
  ```
86
86
 
87
- <sub>`api.ogt` line 1221</sub>
87
+ <sub>`api.ogt` line 1222</sub>
88
88
 
89
89
  ## Components, resources and events
90
90
 
@@ -147,4 +147,4 @@ resource Time {
147
147
  }
148
148
  ```
149
149
 
150
- <sub>`api.ogt` line 1176</sub>
150
+ <sub>`api.ogt` line 1177</sub>
@@ -18,7 +18,7 @@ module timeline {
18
18
  # declarations follow, each quoted below
19
19
  ```
20
20
 
21
- <sub>`api.ogt` line 14225</sub>
21
+ <sub>`api.ogt` line 14598</sub>
22
22
 
23
23
  ## Contents
24
24
 
@@ -68,7 +68,7 @@ fn info {
68
68
  }
69
69
  ```
70
70
 
71
- <sub>`api.ogt` line 14298</sub>
71
+ <sub>`api.ogt` line 14671</sub>
72
72
 
73
73
  <a id="fn-play"></a>
74
74
 
@@ -98,7 +98,7 @@ fn play {
98
98
  }
99
99
  ```
100
100
 
101
- <sub>`api.ogt` line 14305</sub>
101
+ <sub>`api.ogt` line 14678</sub>
102
102
 
103
103
  <a id="fn-pause"></a>
104
104
 
@@ -128,7 +128,7 @@ fn pause {
128
128
  }
129
129
  ```
130
130
 
131
- <sub>`api.ogt` line 14312</sub>
131
+ <sub>`api.ogt` line 14685</sub>
132
132
 
133
133
  <a id="fn-seek"></a>
134
134
 
@@ -160,7 +160,7 @@ fn seek {
160
160
  }
161
161
  ```
162
162
 
163
- <sub>`api.ogt` line 14319</sub>
163
+ <sub>`api.ogt` line 14692</sub>
164
164
 
165
165
  <a id="fn-stop"></a>
166
166
 
@@ -190,7 +190,7 @@ fn stop {
190
190
  }
191
191
  ```
192
192
 
193
- <sub>`api.ogt` line 14327</sub>
193
+ <sub>`api.ogt` line 14700</sub>
194
194
 
195
195
  ## Components, resources and events
196
196
 
@@ -229,7 +229,7 @@ component Timeline {
229
229
  }
230
230
  ```
231
231
 
232
- <sub>`api.ogt` line 14240</sub>
232
+ <sub>`api.ogt` line 14613</sub>
233
233
 
234
234
  <a id="record-TimelineStarted"></a>
235
235
 
@@ -252,7 +252,7 @@ event TimelineStarted {
252
252
  }
253
253
  ```
254
254
 
255
- <sub>`api.ogt` line 14257</sub>
255
+ <sub>`api.ogt` line 14630</sub>
256
256
 
257
257
  <a id="record-TimelineMarker"></a>
258
258
 
@@ -281,7 +281,7 @@ event TimelineMarker {
281
281
  }
282
282
  ```
283
283
 
284
- <sub>`api.ogt` line 14263</sub>
284
+ <sub>`api.ogt` line 14636</sub>
285
285
 
286
286
  <a id="record-TimelineEnded"></a>
287
287
 
@@ -304,7 +304,7 @@ event TimelineEnded {
304
304
  }
305
305
  ```
306
306
 
307
- <sub>`api.ogt` line 14273</sub>
307
+ <sub>`api.ogt` line 14646</sub>
308
308
 
309
309
  ## Types
310
310
 
@@ -320,7 +320,7 @@ A generational handle: a number the engine hands out. A dead handle is an error
320
320
  handle TimelineAsset "A loaded timeline: its tracks, paths, sounds and clips."
321
321
  ```
322
322
 
323
- <sub>`api.ogt` line 14231</sub>
323
+ <sub>`api.ogt` line 14604</sub>
324
324
 
325
325
  <a id="type-TimelineTrackInfo"></a>
326
326
 
@@ -343,7 +343,7 @@ struct TimelineTrackInfo {
343
343
  }
344
344
  ```
345
345
 
346
- <sub>`api.ogt` line 14279</sub>
346
+ <sub>`api.ogt` line 14652</sub>
347
347
 
348
348
  <a id="type-TimelineInfo"></a>
349
349
 
@@ -374,7 +374,7 @@ struct TimelineInfo {
374
374
  }
375
375
  ```
376
376
 
377
- <sub>`api.ogt` line 14286</sub>
377
+ <sub>`api.ogt` line 14659</sub>
378
378
 
379
379
  ## Column kinds
380
380
 
@@ -393,4 +393,4 @@ column TimelineAsset {
393
393
  }
394
394
  ```
395
395
 
396
- <sub>`api.ogt` line 14233</sub>
396
+ <sub>`api.ogt` line 14606</sub>
@@ -14,7 +14,7 @@ module transform {
14
14
  # declarations follow, each quoted below
15
15
  ```
16
16
 
17
- <sub>`api.ogt` line 1111</sub>
17
+ <sub>`api.ogt` line 1112</sub>
18
18
 
19
19
  ## Contents
20
20
 
@@ -60,7 +60,7 @@ fn compose {
60
60
  }
61
61
  ```
62
62
 
63
- <sub>`api.ogt` line 1138</sub>
63
+ <sub>`api.ogt` line 1139</sub>
64
64
 
65
65
  <a id="fn-decompose"></a>
66
66
 
@@ -88,7 +88,7 @@ fn decompose {
88
88
  }
89
89
  ```
90
90
 
91
- <sub>`api.ogt` line 1146</sub>
91
+ <sub>`api.ogt` line 1147</sub>
92
92
 
93
93
  <a id="fn-lookAt"></a>
94
94
 
@@ -122,7 +122,7 @@ fn lookAt {
122
122
  }
123
123
  ```
124
124
 
125
- <sub>`api.ogt` line 1152</sub>
125
+ <sub>`api.ogt` line 1153</sub>
126
126
 
127
127
  <a id="fn-fromAxisAngle"></a>
128
128
 
@@ -152,7 +152,7 @@ fn fromAxisAngle {
152
152
  }
153
153
  ```
154
154
 
155
- <sub>`api.ogt` line 1162</sub>
155
+ <sub>`api.ogt` line 1163</sub>
156
156
 
157
157
  ## Components, resources and events
158
158
 
@@ -183,7 +183,7 @@ component Transform {
183
183
  }
184
184
  ```
185
185
 
186
- <sub>`api.ogt` line 1115</sub>
186
+ <sub>`api.ogt` line 1116</sub>
187
187
 
188
188
  <a id="record-Parent"></a>
189
189
 
@@ -204,7 +204,7 @@ component Parent {
204
204
  }
205
205
  ```
206
206
 
207
- <sub>`api.ogt` line 1126</sub>
207
+ <sub>`api.ogt` line 1127</sub>
208
208
 
209
209
  <a id="record-MatrixWorld"></a>
210
210
 
@@ -227,4 +227,4 @@ component MatrixWorld {
227
227
  }
228
228
  ```
229
229
 
230
- <sub>`api.ogt` line 1131</sub>
230
+ <sub>`api.ogt` line 1132</sub>
@@ -18,7 +18,7 @@ module tween {
18
18
  # declarations follow, each quoted below
19
19
  ```
20
20
 
21
- <sub>`api.ogt` line 8305</sub>
21
+ <sub>`api.ogt` line 8604</sub>
22
22
 
23
23
  ## Contents
24
24
 
@@ -71,7 +71,7 @@ fn to {
71
71
  }
72
72
  ```
73
73
 
74
- <sub>`api.ogt` line 8430</sub>
74
+ <sub>`api.ogt` line 8729</sub>
75
75
 
76
76
  <a id="fn-sequence"></a>
77
77
 
@@ -105,7 +105,7 @@ fn sequence {
105
105
  }
106
106
  ```
107
107
 
108
- <sub>`api.ogt` line 8437</sub>
108
+ <sub>`api.ogt` line 8736</sub>
109
109
 
110
110
  <a id="fn-parallel"></a>
111
111
 
@@ -139,7 +139,7 @@ fn parallel {
139
139
  }
140
140
  ```
141
141
 
142
- <sub>`api.ogt` line 8447</sub>
142
+ <sub>`api.ogt` line 8746</sub>
143
143
 
144
144
  <a id="fn-cancel"></a>
145
145
 
@@ -169,7 +169,7 @@ fn cancel {
169
169
  }
170
170
  ```
171
171
 
172
- <sub>`api.ogt` line 8457</sub>
172
+ <sub>`api.ogt` line 8756</sub>
173
173
 
174
174
  <a id="fn-cancelEntity"></a>
175
175
 
@@ -199,7 +199,7 @@ fn cancelEntity {
199
199
  }
200
200
  ```
201
201
 
202
- <sub>`api.ogt` line 8464</sub>
202
+ <sub>`api.ogt` line 8763</sub>
203
203
 
204
204
  <a id="fn-active"></a>
205
205
 
@@ -229,7 +229,7 @@ fn active {
229
229
  }
230
230
  ```
231
231
 
232
- <sub>`api.ogt` line 8471</sub>
232
+ <sub>`api.ogt` line 8770</sub>
233
233
 
234
234
  <a id="fn-squash"></a>
235
235
 
@@ -259,7 +259,7 @@ fn squash {
259
259
  }
260
260
  ```
261
261
 
262
- <sub>`api.ogt` line 8478</sub>
262
+ <sub>`api.ogt` line 8777</sub>
263
263
 
264
264
  <a id="fn-flash"></a>
265
265
 
@@ -289,7 +289,7 @@ fn flash {
289
289
  }
290
290
  ```
291
291
 
292
- <sub>`api.ogt` line 8485</sub>
292
+ <sub>`api.ogt` line 8784</sub>
293
293
 
294
294
  ## Components, resources and events
295
295
 
@@ -316,7 +316,7 @@ event TweenCompleted {
316
316
  }
317
317
  ```
318
318
 
319
- <sub>`api.ogt` line 8383</sub>
319
+ <sub>`api.ogt` line 8682</sub>
320
320
 
321
321
  ## Types
322
322
 
@@ -332,7 +332,7 @@ A generational handle: a number the engine hands out. A dead handle is an error
332
332
  handle Tween "A running tween or group."
333
333
  ```
334
334
 
335
- <sub>`api.ogt` line 8311</sub>
335
+ <sub>`api.ogt` line 8610</sub>
336
336
 
337
337
  <a id="type-Ease"></a>
338
338
 
@@ -395,7 +395,7 @@ enum Ease {
395
395
  }
396
396
  ```
397
397
 
398
- <sub>`api.ogt` line 8320</sub>
398
+ <sub>`api.ogt` line 8619</sub>
399
399
 
400
400
  <a id="type-TweenDesc"></a>
401
401
 
@@ -450,7 +450,7 @@ struct TweenDesc {
450
450
  }
451
451
  ```
452
452
 
453
- <sub>`api.ogt` line 8346</sub>
453
+ <sub>`api.ogt` line 8645</sub>
454
454
 
455
455
  <a id="type-TweenGroupDesc"></a>
456
456
 
@@ -478,7 +478,7 @@ struct TweenGroupDesc {
478
478
  }
479
479
  ```
480
480
 
481
- <sub>`api.ogt` line 8373</sub>
481
+ <sub>`api.ogt` line 8672</sub>
482
482
 
483
483
  <a id="type-SquashDesc"></a>
484
484
 
@@ -516,7 +516,7 @@ struct SquashDesc {
516
516
  }
517
517
  ```
518
518
 
519
- <sub>`api.ogt` line 8390</sub>
519
+ <sub>`api.ogt` line 8689</sub>
520
520
 
521
521
  <a id="type-FlashDesc"></a>
522
522
 
@@ -558,7 +558,7 @@ struct FlashDesc {
558
558
  }
559
559
  ```
560
560
 
561
- <sub>`api.ogt` line 8408</sub>
561
+ <sub>`api.ogt` line 8707</sub>
562
562
 
563
563
  ## Column kinds
564
564
 
@@ -577,4 +577,4 @@ column Tween {
577
577
  }
578
578
  ```
579
579
 
580
- <sub>`api.ogt` line 8313</sub>
580
+ <sub>`api.ogt` line 8612</sub>