@origingame/engine 0.3.0 → 0.4.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 (84) hide show
  1. package/dist/web/origin-engine.d.ts +38 -2
  2. package/dist/web/origin-engine.js +250 -10
  3. package/dist/web/origin-engine_bg.wasm +0 -0
  4. package/dist/web/origin-engine_bg.wasm.d.ts +14 -2
  5. package/dist/web-publish/origin-engine-lanes.js +255 -34
  6. package/dist/web-publish/origin-engine-lanes_bg.wasm +0 -0
  7. package/dist/web-publish/origin-engine.d.ts +39 -3
  8. package/dist/web-publish/origin-engine.js +253 -32
  9. package/dist/web-publish/origin-engine_bg.wasm +0 -0
  10. package/dist/web-publish/origin-engine_bg.wasm.d.ts +15 -3
  11. package/dist/web-publish-2d/origin-engine-lanes.js +253 -32
  12. package/dist/web-publish-2d/origin-engine-lanes_bg.wasm +0 -0
  13. package/dist/web-publish-2d/origin-engine.d.ts +38 -2
  14. package/dist/web-publish-2d/origin-engine.js +250 -29
  15. package/dist/web-publish-2d/origin-engine_bg.wasm +0 -0
  16. package/dist/web-publish-2d/origin-engine_bg.wasm.d.ts +14 -2
  17. package/knowledge/README.md +2 -1
  18. package/knowledge/guides/three-to-og.md +393 -0
  19. package/knowledge/knowledge.json +2 -1
  20. package/knowledge/package.json +3 -2
  21. package/knowledge/scaffold/origin-engine.json +2 -2
  22. package/knowledge/scaffold/template/package.json +1 -1
  23. package/knowledge/scaffold/template/project.ogt +1 -1
  24. package/knowledge/scripts/validate.ts +140 -21
  25. package/knowledge/skills/og-audio/SKILL.md +2 -2
  26. package/knowledge/skills/og-build/SKILL.md +22 -3
  27. package/knowledge/skills/og-core/SKILL.md +20 -5
  28. package/knowledge/skills/og-feel/SKILL.md +2 -2
  29. package/knowledge/skills/og-game/SKILL.md +481 -35
  30. package/knowledge/skills/og-i18n/SKILL.md +7 -7
  31. package/knowledge/skills/og-model/SKILL.md +374 -0
  32. package/knowledge/skills/og-platform-sdk/SKILL.md +1 -1
  33. package/knowledge/skills/og-ui/SKILL.md +15 -8
  34. package/knowledge/wiki/ai.md +20 -20
  35. package/knowledge/wiki/anim.md +63 -55
  36. package/knowledge/wiki/atmosphere.md +13 -13
  37. package/knowledge/wiki/audio.md +18 -18
  38. package/knowledge/wiki/camera.md +13 -13
  39. package/knowledge/wiki/commands.md +11 -11
  40. package/knowledge/wiki/debug.md +13 -13
  41. package/knowledge/wiki/game.md +8 -8
  42. package/knowledge/wiki/i18n.md +7 -7
  43. package/knowledge/wiki/index.md +57 -3
  44. package/knowledge/wiki/input.md +47 -47
  45. package/knowledge/wiki/load.md +57 -57
  46. package/knowledge/wiki/nav.md +34 -34
  47. package/knowledge/wiki/net.md +10 -10
  48. package/knowledge/wiki/path.md +14 -14
  49. package/knowledge/wiki/physics.md +95 -95
  50. package/knowledge/wiki/platform.md +44 -44
  51. package/knowledge/wiki/probe.md +86 -86
  52. package/knowledge/wiki/reflect.md +16 -4
  53. package/knowledge/wiki/render.md +1168 -170
  54. package/knowledge/wiki/rng.md +14 -14
  55. package/knowledge/wiki/shapes.md +727 -0
  56. package/knowledge/wiki/stream.md +15 -15
  57. package/knowledge/wiki/system.md +8 -8
  58. package/knowledge/wiki/systems.md +2 -2
  59. package/knowledge/wiki/terrain.md +24 -20
  60. package/knowledge/wiki/tilemap.md +13 -13
  61. package/knowledge/wiki/time.md +4 -4
  62. package/knowledge/wiki/timeline.md +14 -14
  63. package/knowledge/wiki/transform.md +8 -8
  64. package/knowledge/wiki/tween.md +17 -17
  65. package/knowledge/wiki/ui.md +245 -269
  66. package/knowledge/wiki/video.md +5 -5
  67. package/knowledge/wiki/world.md +36 -36
  68. package/package.json +4 -4
  69. package/schema/api.schema.json +1834 -305
  70. package/shell/platform.ts +5 -0
  71. package/shell/player.ts +8 -2
  72. package/shell/transport.ts +6 -0
  73. package/src/generated/abi.ts +37 -1
  74. package/src/geom.ts +260 -0
  75. package/src/index.ts +8 -1
  76. package/src/node/playtest-run.ts +1 -0
  77. package/src/platform-local.ts +2 -0
  78. package/src/playtest.ts +8 -0
  79. package/src/runtime.ts +87 -6
  80. package/src/ui-kit/settings.ts +9 -0
  81. package/src/web/shell.ts +1 -1
  82. package/src/web/worker.ts +2 -2
  83. package/types/bindings.json +697 -402
  84. package/types/index.d.ts +1045 -127
@@ -14,7 +14,7 @@ module transform {
14
14
  # declarations follow, each quoted below
15
15
  ```
16
16
 
17
- <sub>`api.ogt` line 1105</sub>
17
+ <sub>`api.ogt` line 1111</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 1132</sub>
63
+ <sub>`api.ogt` line 1138</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 1140</sub>
91
+ <sub>`api.ogt` line 1146</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 1146</sub>
125
+ <sub>`api.ogt` line 1152</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 1156</sub>
155
+ <sub>`api.ogt` line 1162</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 1109</sub>
186
+ <sub>`api.ogt` line 1115</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 1120</sub>
207
+ <sub>`api.ogt` line 1126</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 1125</sub>
230
+ <sub>`api.ogt` line 1131</sub>
@@ -18,7 +18,7 @@ module tween {
18
18
  # declarations follow, each quoted below
19
19
  ```
20
20
 
21
- <sub>`api.ogt` line 7732</sub>
21
+ <sub>`api.ogt` line 8305</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 7857</sub>
74
+ <sub>`api.ogt` line 8430</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 7864</sub>
108
+ <sub>`api.ogt` line 8437</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 7874</sub>
142
+ <sub>`api.ogt` line 8447</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 7884</sub>
172
+ <sub>`api.ogt` line 8457</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 7891</sub>
202
+ <sub>`api.ogt` line 8464</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 7898</sub>
232
+ <sub>`api.ogt` line 8471</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 7905</sub>
262
+ <sub>`api.ogt` line 8478</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 7912</sub>
292
+ <sub>`api.ogt` line 8485</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 7810</sub>
319
+ <sub>`api.ogt` line 8383</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 7738</sub>
335
+ <sub>`api.ogt` line 8311</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 7747</sub>
398
+ <sub>`api.ogt` line 8320</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 7773</sub>
453
+ <sub>`api.ogt` line 8346</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 7800</sub>
481
+ <sub>`api.ogt` line 8373</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 7817</sub>
519
+ <sub>`api.ogt` line 8390</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 7835</sub>
561
+ <sub>`api.ogt` line 8408</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 7740</sub>
580
+ <sub>`api.ogt` line 8313</sub>