@origingame/engine 0.3.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.
- package/dist/web/origin-engine.d.ts +44 -5
- package/dist/web/origin-engine.js +279 -19
- package/dist/web/origin-engine_bg.wasm +0 -0
- package/dist/web/origin-engine_bg.wasm.d.ts +18 -5
- package/dist/web-publish/origin-engine-lanes.js +289 -48
- package/dist/web-publish/origin-engine-lanes_bg.wasm +0 -0
- package/dist/web-publish/origin-engine.d.ts +44 -5
- package/dist/web-publish/origin-engine.js +279 -38
- package/dist/web-publish/origin-engine_bg.wasm +0 -0
- package/dist/web-publish/origin-engine_bg.wasm.d.ts +18 -5
- package/dist/web-publish-2d/origin-engine-lanes.js +289 -48
- package/dist/web-publish-2d/origin-engine-lanes_bg.wasm +0 -0
- package/dist/web-publish-2d/origin-engine.d.ts +44 -5
- package/dist/web-publish-2d/origin-engine.js +279 -38
- package/dist/web-publish-2d/origin-engine_bg.wasm +0 -0
- package/dist/web-publish-2d/origin-engine_bg.wasm.d.ts +18 -5
- package/knowledge/README.md +2 -1
- package/knowledge/guides/three-to-og.md +393 -0
- package/knowledge/knowledge.json +2 -1
- package/knowledge/looks/catalogue.json +123 -2
- package/knowledge/package.json +3 -2
- package/knowledge/scaffold/origin-engine.json +2 -2
- package/knowledge/scaffold/template/package.json +1 -1
- package/knowledge/scaffold/template/project.ogt +1 -1
- package/knowledge/scripts/validate.ts +209 -27
- package/knowledge/skills/og-audio/SKILL.md +33 -7
- package/knowledge/skills/og-build/SKILL.md +66 -7
- package/knowledge/skills/og-core/SKILL.md +24 -8
- package/knowledge/skills/og-feel/SKILL.md +11 -3
- package/knowledge/skills/og-game/SKILL.md +680 -51
- package/knowledge/skills/og-i18n/SKILL.md +7 -7
- package/knowledge/skills/og-model/SKILL.md +374 -0
- package/knowledge/skills/og-platform-sdk/SKILL.md +7 -1
- package/knowledge/skills/og-taste/SKILL.md +7 -0
- package/knowledge/skills/og-ui/SKILL.md +39 -8
- package/knowledge/wiki/ai.md +20 -20
- package/knowledge/wiki/anim.md +537 -63
- package/knowledge/wiki/atmosphere.md +13 -13
- package/knowledge/wiki/audio.md +160 -20
- package/knowledge/wiki/camera.md +13 -13
- package/knowledge/wiki/commands.md +11 -11
- package/knowledge/wiki/debug.md +13 -13
- package/knowledge/wiki/game.md +8 -8
- package/knowledge/wiki/i18n.md +7 -7
- package/knowledge/wiki/index.md +81 -3
- package/knowledge/wiki/input.md +47 -47
- package/knowledge/wiki/load.md +83 -57
- package/knowledge/wiki/math.md +102 -102
- package/knowledge/wiki/nav.md +34 -34
- package/knowledge/wiki/net.md +10 -10
- package/knowledge/wiki/path.md +14 -14
- package/knowledge/wiki/physics.md +111 -100
- package/knowledge/wiki/platform.md +44 -44
- package/knowledge/wiki/probe.md +86 -86
- package/knowledge/wiki/reflect.md +30 -18
- package/knowledge/wiki/render.md +1243 -176
- package/knowledge/wiki/rng.md +14 -14
- package/knowledge/wiki/shapes.md +727 -0
- package/knowledge/wiki/stream.md +15 -15
- package/knowledge/wiki/system.md +8 -8
- package/knowledge/wiki/systems.md +2 -2
- package/knowledge/wiki/terrain.md +24 -20
- package/knowledge/wiki/tilemap.md +13 -13
- package/knowledge/wiki/time.md +4 -4
- package/knowledge/wiki/timeline.md +14 -14
- package/knowledge/wiki/transform.md +8 -8
- package/knowledge/wiki/tween.md +17 -17
- package/knowledge/wiki/ui.md +245 -269
- package/knowledge/wiki/video.md +5 -5
- package/knowledge/wiki/world.md +36 -36
- package/package.json +4 -4
- package/schema/api.schema.json +2238 -81
- package/shell/page.ts +4 -0
- package/shell/platform.ts +5 -0
- package/shell/player.ts +8 -2
- package/shell/transport.ts +6 -0
- package/src/generated/abi.ts +40 -1
- package/src/geom.ts +260 -0
- package/src/index.ts +19 -1
- package/src/node/device.ts +5 -2
- package/src/node/playtest-run.ts +1 -0
- package/src/node/polish.ts +34 -15
- package/src/node/run.ts +23 -6
- package/src/platform-local.ts +2 -0
- package/src/playtest.ts +8 -0
- package/src/runtime.ts +88 -6
- package/src/ui-kit/settings.ts +9 -0
- package/src/web/gl-state.ts +907 -0
- package/src/web/shell.ts +1 -1
- package/src/web/worker.ts +8 -2
- package/types/bindings.json +1222 -453
- package/types/index.d.ts +1868 -315
|
@@ -14,7 +14,7 @@ module transform {
|
|
|
14
14
|
# declarations follow, each quoted below
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
<sub>`api.ogt` line
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
230
|
+
<sub>`api.ogt` line 1132</sub>
|
package/knowledge/wiki/tween.md
CHANGED
|
@@ -18,7 +18,7 @@ module tween {
|
|
|
18
18
|
# declarations follow, each quoted below
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
<sub>`api.ogt` line
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
580
|
+
<sub>`api.ogt` line 8612</sub>
|