@zylem/game-lib 0.8.8 → 0.9.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/README.md +7 -1
- package/dist/actions.d.ts +2 -2
- package/dist/actions.js +1 -1
- package/dist/api/game-lib.api.json +35786 -18973
- package/dist/api/game-lib.api.md +1209 -13
- package/dist/api/game-lib.d.ts +1609 -7
- package/dist/api/game-lib.typedoc.json +220861 -97409
- package/dist/audio.d.ts +193 -1
- package/dist/audio.js +1 -1
- package/dist/behavior.js +1 -1
- package/dist/bridge.d.ts +46 -6
- package/dist/bridge.js +1 -1
- package/dist/catalog.d.ts +91 -3
- package/dist/catalog.js +1 -1
- package/dist/chunk-2HSR5XDQ.js +1 -0
- package/dist/chunk-2MHB4X6B.js +24 -0
- package/dist/chunk-2PFNNGTV.js +1 -0
- package/dist/chunk-2XMG3NJS.js +1 -0
- package/dist/chunk-4CZZZCFB.js +9 -0
- package/dist/{chunk-7NYP4YAG.js → chunk-6FGXC4T6.js} +1 -1
- package/dist/chunk-6XFXPIVB.js +1 -0
- package/dist/{chunk-CBUQBP2U.js → chunk-BQRMYLYD.js} +1 -1
- package/dist/chunk-FZNEWOC5.js +1 -0
- package/dist/chunk-GPCSX3M6.js +1 -0
- package/dist/chunk-HISTSRAL.js +1 -0
- package/dist/chunk-K3NNXZIJ.js +1 -0
- package/dist/chunk-KP6DLLJO.js +1 -0
- package/dist/{chunk-JNFFTNMH.js → chunk-KSEP7AUF.js} +1 -1
- package/dist/{chunk-YOVE25NW.js → chunk-LI43BZQN.js} +1 -1
- package/dist/chunk-LSFWI46T.js +1 -0
- package/dist/chunk-NVVLLWIM.js +1 -0
- package/dist/chunk-QGIYILYI.js +1 -0
- package/dist/chunk-STVEILJJ.js +1 -0
- package/dist/chunk-UUOPT2N4.js +1 -0
- package/dist/chunk-VMXSE3EC.js +0 -0
- package/dist/chunk-VSFULLND.js +1 -0
- package/dist/chunk-VUJXR5K5.js +1 -0
- package/dist/chunk-WOT6VMZA.js +1 -0
- package/dist/chunk-YNX3Q3CL.js +1 -0
- package/dist/chunk-YQS7CGXE.js +1 -0
- package/dist/chunk-ZZO4CKRU.js +1 -0
- package/dist/cinematics.d.ts +279 -0
- package/dist/cinematics.js +1 -0
- package/dist/core.d.ts +13 -10
- package/dist/core.js +1 -1
- package/dist/cutscene-definition-C479fkei.d.ts +509 -0
- package/dist/{debug-state-CpnNRUFh.d.ts → debug-state-Cg3f5FB6.d.ts} +1 -1
- package/dist/debug.d.ts +3 -2
- package/dist/debug.js +1 -1
- package/dist/{entity-XZNGBeca.d.ts → entity-XqvuWgPm.d.ts} +54 -0
- package/dist/{entity-type-map-CkkFMSrL.d.ts → entity-type-map-CrsrKT8c.d.ts} +13 -4
- package/dist/entity.d.ts +4 -3
- package/dist/entity.js +1 -1
- package/dist/events.js +1 -1
- package/dist/game-9PjI5z2p.d.ts +652 -0
- package/dist/game-default-WBKQCEDJ.js +1 -0
- package/dist/globals.js +1 -1
- package/dist/graphics.d.ts +1 -1
- package/dist/graphics.js +1 -1
- package/dist/input-ui.js +1 -1
- package/dist/input.js +1 -1
- package/dist/public.d.ts +14 -8
- package/dist/public.js +1 -1
- package/dist/runtime.js +1 -1
- package/dist/schema/cutscene.schema.json +782 -0
- package/dist/schema/entity.schema.json +24 -24
- package/dist/schema/game-config.schema.json +10 -10
- package/dist/schema/song.schema.json +430 -0
- package/dist/schema/stage.schema.json +29 -29
- package/dist/schema.d.ts +2 -0
- package/dist/schema.js +1 -1
- package/dist/selection-bounds-BKmSo9aG.d.ts +50 -0
- package/dist/song-definition-rEKksP0B.d.ts +263 -0
- package/dist/song-player-7QPLFLAS.js +1 -0
- package/dist/{game-BPOr7zTB.d.ts → stage-BuGkjZnr.d.ts} +90 -644
- package/dist/web-components.d.ts +7 -5
- package/dist/web-components.js +1 -1
- package/dist/{zylem-camera-DZTpPOiD.d.ts → zylem-camera-Baf5vH8Z.d.ts} +8 -0
- package/package.json +25 -16
- package/dist/chunk-34MYRTRP.js +0 -9
- package/dist/chunk-AE3CTVHY.js +0 -1
- package/dist/chunk-BMRFDDMR.js +0 -1
- package/dist/chunk-EVMLNMGU.js +0 -1
- package/dist/chunk-F5LROYZL.js +0 -24
- package/dist/chunk-GHJQ2HKI.js +0 -1
- package/dist/chunk-HNCTOJP7.js +0 -1
- package/dist/chunk-IBJLPJLE.js +0 -1
- package/dist/chunk-MXO4VGDB.js +0 -1
- package/dist/chunk-QDQ4QMAI.js +0 -1
- package/dist/chunk-SAQA4SXW.js +0 -1
- package/dist/chunk-XK63E4SX.js +0 -1
- package/dist/chunk-ZRT3ZQVH.js +0 -1
- package/dist/chunk-ZTYNZ2N2.js +0 -1
- package/dist/game-default-7HCJJF5S.js +0 -1
- /package/dist/{chunk-MSCVL5OK.js → chunk-ELQN62PQ.js} +0 -0
package/README.md
CHANGED
|
@@ -35,6 +35,8 @@ Games normally never touch the runtime directly; for debug tooling there is an e
|
|
|
35
35
|
|
|
36
36
|
> Note: This project is still in alpha. There are unfinished features and some APIs that may change.
|
|
37
37
|
|
|
38
|
+
**Docs:** [https://zylem-game-lib.github.io/zylem/](https://zylem-game-lib.github.io/zylem/)
|
|
39
|
+
|
|
38
40
|
## Installation
|
|
39
41
|
|
|
40
42
|
```bash
|
|
@@ -76,9 +78,13 @@ ball.onUpdate(({ me, inputs, delta }) => {
|
|
|
76
78
|
});
|
|
77
79
|
|
|
78
80
|
// start the game with the ball
|
|
79
|
-
createGame(ball);
|
|
81
|
+
createGame(ball).start();
|
|
80
82
|
```
|
|
81
83
|
|
|
84
|
+
## Documentation
|
|
85
|
+
|
|
86
|
+
Full guides, API reference, and architecture diagrams: [https://zylem-game-lib.github.io/zylem/](https://zylem-game-lib.github.io/zylem/).
|
|
87
|
+
|
|
82
88
|
## Development
|
|
83
89
|
|
|
84
90
|
This package is part of the Zylem monorepo. See the main repository README for development setup.
|
package/dist/actions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Action, G as GameEntity } from './entity-
|
|
2
|
-
export { x as getRotation, i as rotateEuler, r as rotateInDirection, j as rotateX, k as rotateY, h as rotateYEuler, l as rotateZ, w as setRotation, q as setRotationDegrees, u as setRotationDegreesX, t as setRotationDegreesY, v as setRotationDegreesZ, n as setRotationX, m as setRotationY, o as setRotationZ } from './entity-
|
|
1
|
+
import { A as Action, G as GameEntity } from './entity-XqvuWgPm.js';
|
|
2
|
+
export { x as getRotation, i as rotateEuler, r as rotateInDirection, j as rotateX, k as rotateY, h as rotateYEuler, l as rotateZ, w as setRotation, q as setRotationDegrees, u as setRotationDegreesX, t as setRotationDegreesY, v as setRotationDegreesZ, n as setRotationX, m as setRotationY, o as setRotationZ } from './entity-XqvuWgPm.js';
|
|
3
3
|
import { Object3D } from 'three';
|
|
4
4
|
import { TransformState } from '@zylem/behaviors/core';
|
|
5
5
|
export { TransformState, createTransformStore, getPosition, getVelocity, move, moveForwardXY, moveX, moveXY, moveXZ, moveY, moveZ, resetVelocity, setPosition, setPositionX, setPositionY, setPositionZ, wrapAround3D, wrapAroundXY } from '@zylem/behaviors/core';
|
package/dist/actions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as Q,B as R,C as S,D as T,E as U,a as q,b as r,c as s,d as t,e as u,f as v,g as w,h as x,i as y,j as z,k as A,l as B,m as C,n as D,o as E,p as F,q as G,r as H,s as I,t as J,u as K,v as L,w as M,x as N,y as O,z as P}from"./chunk-IPWUDOV5.js";import{a as p}from"./chunk-BH53MBAZ.js";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"./chunk-XRP4JJXL.js";export{p as applyTransformChanges,v as callFunc,E as createTransformStore,u as delay,w as fadeOpacity,N as getPosition,o as getRotation,O as getVelocity,F as move,r as moveBy,M as moveForwardXY,s as moveTo,G as moveX,J as moveXY,K as moveXZ,H as moveY,I as moveZ,y as onPress,z as onRelease,B as parallel,C as repeat,D as repeatForever,q as resetEntityOpacity,L as resetVelocity,t as rotateBy,c as rotateEuler,a as rotateInDirection,e as rotateX,d as rotateY,b as rotateYEuler,f as rotateZ,A as sequence,P as setPosition,Q as setPositionX,R as setPositionY,S as setPositionZ,m as setRotation,n as setRotationDegrees,j as setRotationDegreesX,h as setRotationDegreesY,l as setRotationDegreesZ,i as setRotationX,g as setRotationY,k as setRotationZ,x as throttle,U as wrapAround3D,T as wrapAroundXY};
|
|
1
|
+
import{A as Q,B as R,C as S,D as T,E as U,a as q,b as r,c as s,d as t,e as u,f as v,g as w,h as x,i as y,j as z,k as A,l as B,m as C,n as D,o as E,p as F,q as G,r as H,s as I,t as J,u as K,v as L,w as M,x as N,y as O,z as P}from"./chunk-IPWUDOV5.js";import{a as p}from"./chunk-BH53MBAZ.js";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"./chunk-XRP4JJXL.js";import"./chunk-WOT6VMZA.js";export{p as applyTransformChanges,v as callFunc,E as createTransformStore,u as delay,w as fadeOpacity,N as getPosition,o as getRotation,O as getVelocity,F as move,r as moveBy,M as moveForwardXY,s as moveTo,G as moveX,J as moveXY,K as moveXZ,H as moveY,I as moveZ,y as onPress,z as onRelease,B as parallel,C as repeat,D as repeatForever,q as resetEntityOpacity,L as resetVelocity,t as rotateBy,c as rotateEuler,a as rotateInDirection,e as rotateX,d as rotateY,b as rotateYEuler,f as rotateZ,A as sequence,P as setPosition,Q as setPositionX,R as setPositionY,S as setPositionZ,m as setRotation,n as setRotationDegrees,j as setRotationDegreesX,h as setRotationDegreesY,l as setRotationDegreesZ,i as setRotationX,g as setRotationY,k as setRotationZ,x as throttle,U as wrapAround3D,T as wrapAroundXY};
|