@zylem/game-lib 0.3.17 → 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.
- package/README.md +2 -2
- package/dist/.vite/manifest.json +64 -58
- package/dist/api/actions.d.ts +5 -0
- package/dist/api/actions.d.ts.map +1 -0
- package/dist/api/behaviors.d.ts +4 -0
- package/dist/api/behaviors.d.ts.map +1 -0
- package/dist/api/camera.d.ts +4 -0
- package/dist/api/camera.d.ts.map +1 -0
- package/dist/api/core.d.ts +6 -0
- package/dist/api/core.d.ts.map +1 -0
- package/dist/api/entities.d.ts +9 -0
- package/dist/api/entities.d.ts.map +1 -0
- package/dist/api/main.d.ts +32 -0
- package/dist/api/main.d.ts.map +1 -0
- package/dist/api/stage.d.ts +7 -0
- package/dist/api/stage.d.ts.map +1 -0
- package/dist/core.js +4 -4
- package/dist/lib/actions/behaviors/actions.d.ts +1 -0
- package/dist/lib/actions/behaviors/actions.d.ts.map +1 -0
- package/dist/lib/actions/behaviors/behavior.d.ts +1 -0
- package/dist/lib/actions/behaviors/behavior.d.ts.map +1 -0
- package/dist/lib/actions/behaviors/boundaries/boundary.d.ts +1 -0
- package/dist/lib/actions/behaviors/boundaries/boundary.d.ts.map +1 -0
- package/dist/lib/actions/behaviors/character-controller.d.ts +1 -0
- package/dist/lib/actions/behaviors/character-controller.d.ts.map +1 -0
- package/dist/lib/actions/behaviors/debug/debug-collision.d.ts +1 -0
- package/dist/lib/actions/behaviors/debug/debug-collision.d.ts.map +1 -0
- package/dist/lib/actions/behaviors/debug/debug-update.d.ts +1 -0
- package/dist/lib/actions/behaviors/debug/debug-update.d.ts.map +1 -0
- package/dist/lib/actions/behaviors/debug/debug.d.ts +1 -0
- package/dist/lib/actions/behaviors/debug/debug.d.ts.map +1 -0
- package/dist/lib/actions/behaviors/movement/movement-sequence-2d.d.ts +1 -0
- package/dist/lib/actions/behaviors/movement/movement-sequence-2d.d.ts.map +1 -0
- package/dist/lib/actions/behaviors/ricochet/ricochet-2d-collision.d.ts +1 -0
- package/dist/lib/actions/behaviors/ricochet/ricochet-2d-collision.d.ts.map +1 -0
- package/dist/lib/actions/behaviors/ricochet/ricochet-2d-in-bounds.d.ts +1 -0
- package/dist/lib/actions/behaviors/ricochet/ricochet-2d-in-bounds.d.ts.map +1 -0
- package/dist/lib/actions/behaviors/ricochet/ricochet.d.ts +1 -0
- package/dist/lib/actions/behaviors/ricochet/ricochet.d.ts.map +1 -0
- package/dist/lib/actions/behaviors/zylem-behavior.d.ts +1 -0
- package/dist/lib/actions/behaviors/zylem-behavior.d.ts.map +1 -0
- package/dist/lib/actions/capabilities/moveable.d.ts +1 -0
- package/dist/lib/actions/capabilities/moveable.d.ts.map +1 -0
- package/dist/lib/actions/capabilities/rotatable.d.ts +1 -0
- package/dist/lib/actions/capabilities/rotatable.d.ts.map +1 -0
- package/dist/lib/actions/capabilities/transformable.d.ts +1 -0
- package/dist/lib/actions/capabilities/transformable.d.ts.map +1 -0
- package/dist/lib/actions/global-change.d.ts +1 -0
- package/dist/lib/actions/global-change.d.ts.map +1 -0
- package/dist/lib/camera/camera.d.ts +1 -0
- package/dist/lib/camera/camera.d.ts.map +1 -0
- package/dist/lib/camera/fixed-2d.d.ts +1 -0
- package/dist/lib/camera/fixed-2d.d.ts.map +1 -0
- package/dist/lib/camera/perspective.d.ts +1 -0
- package/dist/lib/camera/perspective.d.ts.map +1 -0
- package/dist/lib/camera/third-person.d.ts +1 -0
- package/dist/lib/camera/third-person.d.ts.map +1 -0
- package/dist/lib/camera/zylem-camera.d.ts +27 -0
- package/dist/lib/camera/zylem-camera.d.ts.map +1 -0
- package/dist/lib/camera/zylem-camera.js +100 -37
- package/dist/lib/collision/collision-builder.d.ts +1 -0
- package/dist/lib/collision/collision-builder.d.ts.map +1 -0
- package/dist/lib/collision/collision-delegate.d.ts +1 -0
- package/dist/lib/collision/collision-delegate.d.ts.map +1 -0
- package/dist/lib/collision/collision-group.d.ts +1 -0
- package/dist/lib/collision/collision-group.d.ts.map +1 -0
- package/dist/lib/collision/collision-mask.d.ts +1 -0
- package/dist/lib/collision/collision-mask.d.ts.map +1 -0
- package/dist/lib/collision/collision.d.ts +1 -0
- package/dist/lib/collision/collision.d.ts.map +1 -0
- package/dist/lib/collision/utils.d.ts +1 -0
- package/dist/lib/collision/utils.d.ts.map +1 -0
- package/dist/lib/collision/world.d.ts +1 -0
- package/dist/lib/collision/world.d.ts.map +1 -0
- package/dist/lib/core/asset-manager.d.ts +1 -0
- package/dist/lib/core/asset-manager.d.ts.map +1 -0
- package/dist/lib/core/base-node-life-cycle.d.ts +1 -0
- package/dist/lib/core/base-node-life-cycle.d.ts.map +1 -0
- package/dist/lib/core/base-node.d.ts +1 -0
- package/dist/lib/core/base-node.d.ts.map +1 -0
- package/dist/lib/core/base-node.js +1 -1
- package/dist/lib/core/entity-asset-loader.d.ts +1 -0
- package/dist/lib/core/entity-asset-loader.d.ts.map +1 -0
- package/dist/lib/core/errors.d.ts +1 -0
- package/dist/lib/core/errors.d.ts.map +1 -0
- package/dist/lib/core/flags.d.ts +1 -0
- package/dist/lib/core/flags.d.ts.map +1 -0
- package/dist/lib/core/index.d.ts +1 -0
- package/dist/lib/core/index.d.ts.map +1 -0
- package/dist/lib/core/lazy-loader.d.ts +1 -0
- package/dist/lib/core/lazy-loader.d.ts.map +1 -0
- package/dist/lib/core/lifecycle-base.d.ts +1 -0
- package/dist/lib/core/lifecycle-base.d.ts.map +1 -0
- package/dist/lib/core/preset-shader.d.ts +1 -0
- package/dist/lib/core/preset-shader.d.ts.map +1 -0
- package/dist/lib/core/three-addons/Timer.d.ts +1 -0
- package/dist/lib/core/three-addons/Timer.d.ts.map +1 -0
- package/dist/lib/core/utility/nodes.d.ts +5 -3
- package/dist/lib/core/utility/nodes.d.ts.map +1 -0
- package/dist/lib/core/utility/nodes.js +20 -16
- package/dist/lib/core/utility/strings.d.ts +1 -0
- package/dist/lib/core/utility/strings.d.ts.map +1 -0
- package/dist/lib/core/utility/vector.d.ts +1 -0
- package/dist/lib/core/utility/vector.d.ts.map +1 -0
- package/dist/lib/core/vector.d.ts +1 -0
- package/dist/lib/core/vector.d.ts.map +1 -0
- package/dist/lib/core/vessel.d.ts +1 -0
- package/dist/lib/core/vessel.d.ts.map +1 -0
- package/dist/lib/debug/console/console-state.d.ts +1 -0
- package/dist/lib/debug/console/console-state.d.ts.map +1 -0
- package/dist/lib/debug/console/console-store.d.ts +1 -0
- package/dist/lib/debug/console/console-store.d.ts.map +1 -0
- package/dist/lib/debug/debug-state.d.ts +1 -0
- package/dist/lib/debug/debug-state.d.ts.map +1 -0
- package/dist/lib/debug/debug-store.d.ts +1 -0
- package/dist/lib/debug/debug-store.d.ts.map +1 -0
- package/dist/lib/debug/state-based-debug-loader.d.ts +1 -0
- package/dist/lib/debug/state-based-debug-loader.d.ts.map +1 -0
- package/dist/lib/device/aspect-ratio.d.ts +1 -0
- package/dist/lib/device/aspect-ratio.d.ts.map +1 -0
- package/dist/lib/device/desktop.d.ts +1 -0
- package/dist/lib/device/desktop.d.ts.map +1 -0
- package/dist/lib/device/mobile.d.ts +1 -0
- package/dist/lib/device/mobile.d.ts.map +1 -0
- package/dist/lib/device/tablet.d.ts +1 -0
- package/dist/lib/device/tablet.d.ts.map +1 -0
- package/dist/lib/entities/actor.d.ts +1 -0
- package/dist/lib/entities/actor.d.ts.map +1 -0
- package/dist/lib/entities/box.d.ts +1 -0
- package/dist/lib/entities/box.d.ts.map +1 -0
- package/dist/lib/entities/builder.d.ts +1 -0
- package/dist/lib/entities/builder.d.ts.map +1 -0
- package/dist/lib/entities/create.d.ts +1 -0
- package/dist/lib/entities/create.d.ts.map +1 -0
- package/dist/lib/entities/delegates/animation.d.ts +1 -0
- package/dist/lib/entities/delegates/animation.d.ts.map +1 -0
- package/dist/lib/entities/delegates/debug.d.ts +1 -0
- package/dist/lib/entities/delegates/debug.d.ts.map +1 -0
- package/dist/lib/entities/delegates/loader.d.ts +1 -0
- package/dist/lib/entities/delegates/loader.d.ts.map +1 -0
- package/dist/lib/entities/destroy.d.ts +1 -0
- package/dist/lib/entities/destroy.d.ts.map +1 -0
- package/dist/lib/entities/entity.d.ts +1 -0
- package/dist/lib/entities/entity.d.ts.map +1 -0
- package/dist/lib/entities/index.d.ts +1 -0
- package/dist/lib/entities/index.d.ts.map +1 -0
- package/dist/lib/entities/plane.d.ts +1 -0
- package/dist/lib/entities/plane.d.ts.map +1 -0
- package/dist/lib/entities/rect.d.ts +1 -0
- package/dist/lib/entities/rect.d.ts.map +1 -0
- package/dist/lib/entities/sphere.d.ts +1 -0
- package/dist/lib/entities/sphere.d.ts.map +1 -0
- package/dist/lib/entities/sprite.d.ts +1 -0
- package/dist/lib/entities/sprite.d.ts.map +1 -0
- package/dist/lib/entities/text.d.ts +8 -0
- package/dist/lib/entities/text.d.ts.map +1 -0
- package/dist/lib/entities/text.js +77 -48
- package/dist/lib/entities/zone.d.ts +1 -0
- package/dist/lib/entities/zone.d.ts.map +1 -0
- package/dist/lib/game/game-blueprint.d.ts +5 -11
- package/dist/lib/game/game-blueprint.d.ts.map +1 -0
- package/dist/lib/game/game-canvas.d.ts +1 -0
- package/dist/lib/game/game-canvas.d.ts.map +1 -0
- package/dist/lib/game/game-canvas.js +9 -9
- package/dist/lib/game/game-config.d.ts +17 -1
- package/dist/lib/game/game-config.d.ts.map +1 -0
- package/dist/lib/game/game-config.js +50 -24
- package/dist/lib/game/game-default.d.ts +5 -4
- package/dist/lib/game/game-default.d.ts.map +1 -0
- package/dist/lib/game/game-interfaces.d.ts +3 -2
- package/dist/lib/game/game-interfaces.d.ts.map +1 -0
- package/dist/lib/game/game-retro-resolutions.d.ts +24 -0
- package/dist/lib/game/game-retro-resolutions.d.ts.map +1 -0
- package/dist/lib/game/game-retro-resolutions.js +81 -0
- package/dist/lib/game/game-state.d.ts +6 -5
- package/dist/lib/game/game-state.d.ts.map +1 -0
- package/dist/lib/game/game.d.ts +7 -8
- package/dist/lib/game/game.d.ts.map +1 -0
- package/dist/lib/game/game.js +46 -70
- package/dist/lib/game/zylem-game.d.ts +4 -3
- package/dist/lib/game/zylem-game.d.ts.map +1 -0
- package/dist/lib/game/zylem-game.js +39 -31
- package/dist/lib/graphics/geometries/XZPlaneGeometry.d.ts +1 -0
- package/dist/lib/graphics/geometries/XZPlaneGeometry.d.ts.map +1 -0
- package/dist/lib/graphics/material.d.ts +1 -0
- package/dist/lib/graphics/material.d.ts.map +1 -0
- package/dist/lib/graphics/mesh.d.ts +1 -0
- package/dist/lib/graphics/mesh.d.ts.map +1 -0
- package/dist/lib/graphics/render-pass.d.ts +1 -0
- package/dist/lib/graphics/render-pass.d.ts.map +1 -0
- package/dist/lib/graphics/zylem-scene.d.ts +1 -0
- package/dist/lib/graphics/zylem-scene.d.ts.map +1 -0
- package/dist/lib/input/gamepad-provider.d.ts +1 -0
- package/dist/lib/input/gamepad-provider.d.ts.map +1 -0
- package/dist/lib/input/input-manager.d.ts +1 -0
- package/dist/lib/input/input-manager.d.ts.map +1 -0
- package/dist/lib/input/input-provider.d.ts +1 -0
- package/dist/lib/input/input-provider.d.ts.map +1 -0
- package/dist/lib/input/input.d.ts +1 -0
- package/dist/lib/input/input.d.ts.map +1 -0
- package/dist/lib/input/keyboard-provider.d.ts +1 -0
- package/dist/lib/input/keyboard-provider.d.ts.map +1 -0
- package/dist/lib/interfaces/entity.d.ts +1 -0
- package/dist/lib/interfaces/entity.d.ts.map +1 -0
- package/dist/lib/sounds/index.d.ts +1 -0
- package/dist/lib/sounds/index.d.ts.map +1 -0
- package/dist/lib/sounds/ping-pong-sound.d.ts +1 -0
- package/dist/lib/sounds/ping-pong-sound.d.ts.map +1 -0
- package/dist/lib/sounds/ricochet-sound.d.ts +1 -0
- package/dist/lib/sounds/ricochet-sound.d.ts.map +1 -0
- package/dist/lib/stage/debug-entity-cursor.d.ts +1 -0
- package/dist/lib/stage/debug-entity-cursor.d.ts.map +1 -0
- package/dist/lib/stage/entity-spawner.d.ts +1 -0
- package/dist/lib/stage/entity-spawner.d.ts.map +1 -0
- package/dist/lib/stage/stage-blueprint.d.ts +1 -0
- package/dist/lib/stage/stage-blueprint.d.ts.map +1 -0
- package/dist/lib/stage/stage-camera-debug-delegate.d.ts +14 -0
- package/dist/lib/stage/stage-camera-debug-delegate.d.ts.map +1 -0
- package/dist/lib/stage/stage-debug-delegate.d.ts +1 -0
- package/dist/lib/stage/stage-debug-delegate.d.ts.map +1 -0
- package/dist/lib/stage/stage-default.d.ts +1 -0
- package/dist/lib/stage/stage-default.d.ts.map +1 -0
- package/dist/lib/stage/stage-state.d.ts +1 -0
- package/dist/lib/stage/stage-state.d.ts.map +1 -0
- package/dist/lib/stage/stage.d.ts +2 -1
- package/dist/lib/stage/stage.d.ts.map +1 -0
- package/dist/lib/stage/stage.js +27 -27
- package/dist/lib/stage/zylem-stage.d.ts +4 -1
- package/dist/lib/stage/zylem-stage.d.ts.map +1 -0
- package/dist/lib/stage/zylem-stage.js +25 -24
- package/dist/lib/systems/test-system.d.ts +1 -0
- package/dist/lib/systems/test-system.d.ts.map +1 -0
- package/dist/lib/systems/transformable.system.d.ts +1 -0
- package/dist/lib/systems/transformable.system.d.ts.map +1 -0
- package/dist/lib/types/entity-types.d.ts +1 -0
- package/dist/lib/types/entity-types.d.ts.map +1 -0
- package/dist/lib/types/index.d.ts +1 -0
- package/dist/lib/types/index.d.ts.map +1 -0
- package/dist/lib/types/stage-types.d.ts +1 -0
- package/dist/lib/types/stage-types.d.ts.map +1 -0
- package/dist/lib/ui/Debug.d.ts +1 -0
- package/dist/lib/ui/Debug.d.ts.map +1 -0
- package/dist/lib/ui/console/Console.d.ts +1 -0
- package/dist/lib/ui/console/Console.d.ts.map +1 -0
- package/dist/lib/ui/debug-panel/AccordionMenu.d.ts +1 -0
- package/dist/lib/ui/debug-panel/AccordionMenu.d.ts.map +1 -0
- package/dist/lib/ui/debug-panel/Menu.d.ts +1 -0
- package/dist/lib/ui/debug-panel/Menu.d.ts.map +1 -0
- package/dist/lib/ui/debug-panel/sections/EntitiesSection.d.ts +1 -0
- package/dist/lib/ui/debug-panel/sections/EntitiesSection.d.ts.map +1 -0
- package/dist/lib/ui/debug-panel/sections/GameSection.d.ts +1 -0
- package/dist/lib/ui/debug-panel/sections/GameSection.d.ts.map +1 -0
- package/dist/lib/ui/debug-panel/sections/StagesSection.d.ts +1 -0
- package/dist/lib/ui/debug-panel/sections/StagesSection.d.ts.map +1 -0
- package/dist/lib/ui/debug-panel/sections/all.d.ts +1 -0
- package/dist/lib/ui/debug-panel/sections/all.d.ts.map +1 -0
- package/dist/lib/ui/toolbar/Toolbar.d.ts +1 -0
- package/dist/lib/ui/toolbar/Toolbar.d.ts.map +1 -0
- package/dist/main.js +10 -10
- package/dist/tests/unit/collision/collision.spec.d.ts +2 -0
- package/dist/tests/unit/collision/collision.spec.d.ts.map +1 -0
- package/dist/tests/unit/core/game.spec.d.ts +2 -0
- package/dist/tests/unit/core/game.spec.d.ts.map +1 -0
- package/dist/tests/unit/core/stage.spec.d.ts +2 -0
- package/dist/tests/unit/core/stage.spec.d.ts.map +1 -0
- package/dist/tests/unit/core/vessel.spec.d.ts +2 -0
- package/dist/tests/unit/core/vessel.spec.d.ts.map +1 -0
- package/dist/tests/unit/stage/stage-blueprint.spec.d.ts +2 -0
- package/dist/tests/unit/stage/stage-blueprint.spec.d.ts.map +1 -0
- package/package.json +11 -9
- package/dist/actions.d.ts +0 -4
- package/dist/behaviors.d.ts +0 -3
- package/dist/camera.d.ts +0 -3
- package/dist/core.d.ts +0 -5
- package/dist/entities.d.ts +0 -8
- package/dist/main.d.ts +0 -31
- package/dist/stage.d.ts +0 -6
- package/dist/tests/collision/collision.spec.d.ts +0 -1
- package/dist/tests/core/game.spec.d.ts +0 -1
- package/dist/tests/core/stage.spec.d.ts +0 -1
- package/dist/tests/core/vessel.spec.d.ts +0 -1
- package/dist/tests/stage/stage-blueprint.spec.d.ts +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { createWorld as c, addEntity as
|
|
1
|
+
import { createWorld as c, addEntity as u, addComponent as f, removeEntity as p } from "bitecs";
|
|
2
2
|
import { Vector3 as o, Color as d, Vector2 as m } from "three";
|
|
3
|
-
import { ZylemWorld as
|
|
3
|
+
import { ZylemWorld as l } from "../collision/world.js";
|
|
4
4
|
import { ZylemScene as y } from "../graphics/zylem-scene.js";
|
|
5
|
-
import { setStageBackgroundColor as g, setStageBackgroundImage as E, setStageVariables as
|
|
5
|
+
import { setStageBackgroundColor as g, setStageBackgroundImage as E, setStageVariables as b, resetStageVariables as w } from "./stage-state.js";
|
|
6
6
|
import { ZylemBlueColor as S } from "../core/utility/vector.js";
|
|
7
7
|
import { debugState as a } from "../debug/debug-state.js";
|
|
8
|
-
import { getGlobalState as
|
|
8
|
+
import { getGlobalState as h } from "../game/game-state.js";
|
|
9
9
|
import { LifeCycleBase as v } from "../core/lifecycle-base.js";
|
|
10
10
|
import M from "../systems/transformable.system.js";
|
|
11
11
|
import { BaseNode as _ } from "../core/base-node.js";
|
|
12
12
|
import { nanoid as C } from "nanoid";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
const
|
|
13
|
+
import { Perspectives as D } from "../camera/perspective.js";
|
|
14
|
+
import { CameraWrapper as B } from "../camera/camera.js";
|
|
15
|
+
import { StageDebugDelegate as O } from "./stage-debug-delegate.js";
|
|
16
|
+
import { GameEntity as P } from "../entities/entity.js";
|
|
17
|
+
import { ZylemCamera as R } from "../camera/zylem-camera.js";
|
|
18
|
+
const W = "Stage";
|
|
19
19
|
class Y extends v {
|
|
20
|
-
type =
|
|
20
|
+
type = W;
|
|
21
21
|
state = {
|
|
22
22
|
backgroundColor: S,
|
|
23
23
|
backgroundImage: null,
|
|
@@ -44,6 +44,7 @@ class Y extends v {
|
|
|
44
44
|
testSystem = null;
|
|
45
45
|
transformSystem = null;
|
|
46
46
|
debugDelegate = null;
|
|
47
|
+
cameraDebugDelegate = null;
|
|
47
48
|
uuid;
|
|
48
49
|
wrapperRef = null;
|
|
49
50
|
camera;
|
|
@@ -66,7 +67,7 @@ class Y extends v {
|
|
|
66
67
|
return { config: t, entities: i, asyncEntities: s, camera: r };
|
|
67
68
|
}
|
|
68
69
|
isZylemStageConfig(e) {
|
|
69
|
-
return e && typeof e == "object" && !(e instanceof _) && !(e instanceof
|
|
70
|
+
return e && typeof e == "object" && !(e instanceof _) && !(e instanceof B);
|
|
70
71
|
}
|
|
71
72
|
isBaseNode(e) {
|
|
72
73
|
return e && typeof e == "object" && typeof e.create == "function";
|
|
@@ -91,7 +92,7 @@ class Y extends v {
|
|
|
91
92
|
}
|
|
92
93
|
setState() {
|
|
93
94
|
const { backgroundColor: e, backgroundImage: t } = this.state, i = e instanceof d ? e : new d(e);
|
|
94
|
-
g(i), E(t),
|
|
95
|
+
g(i), E(t), b(this.state.variables ?? {});
|
|
95
96
|
}
|
|
96
97
|
/**
|
|
97
98
|
* Load and initialize the stage's scene and world.
|
|
@@ -102,8 +103,8 @@ class Y extends v {
|
|
|
102
103
|
this.setState();
|
|
103
104
|
const i = t || (this.camera ? this.camera.cameraRef : this.createDefaultCamera());
|
|
104
105
|
this.cameraRef = i, this.scene = new y(e, i, this.state);
|
|
105
|
-
const s = await
|
|
106
|
-
this.world = new
|
|
106
|
+
const s = await l.loadPhysics(this.gravity ?? new o(0, 0, 0));
|
|
107
|
+
this.world = new l(s), this.scene.setup();
|
|
107
108
|
for (let r of this.children)
|
|
108
109
|
this.spawnEntity(r);
|
|
109
110
|
if (this.pendingEntities.length && (this.enqueue(...this.pendingEntities), this.pendingEntities = []), this.pendingPromises.length) {
|
|
@@ -115,14 +116,14 @@ class Y extends v {
|
|
|
115
116
|
}
|
|
116
117
|
createDefaultCamera() {
|
|
117
118
|
const e = window.innerWidth, t = window.innerHeight, i = new m(e, t);
|
|
118
|
-
return new
|
|
119
|
+
return new R(D.ThirdPerson, i);
|
|
119
120
|
}
|
|
120
121
|
_setup(e) {
|
|
121
122
|
if (!this.scene || !this.world) {
|
|
122
123
|
this.logMissingEntities();
|
|
123
124
|
return;
|
|
124
125
|
}
|
|
125
|
-
a.on && (this.debugDelegate = new
|
|
126
|
+
a.on && (this.debugDelegate = new O(this));
|
|
126
127
|
}
|
|
127
128
|
_update(e) {
|
|
128
129
|
const { delta: t } = e;
|
|
@@ -148,10 +149,10 @@ class Y extends v {
|
|
|
148
149
|
_destroy(e) {
|
|
149
150
|
this._childrenMap.forEach((t) => {
|
|
150
151
|
try {
|
|
151
|
-
t.nodeDestroy({ me: t, globals:
|
|
152
|
+
t.nodeDestroy({ me: t, globals: h() });
|
|
152
153
|
} catch {
|
|
153
154
|
}
|
|
154
|
-
}), this._childrenMap.clear(), this._removalMap.clear(), this._debugMap.clear(), this.world?.destroy(), this.scene?.destroy(), this.debugDelegate?.dispose(), this.isLoaded = !1, this.world = null, this.scene = null, this.cameraRef = null,
|
|
155
|
+
}), this._childrenMap.clear(), this._removalMap.clear(), this._debugMap.clear(), this.world?.destroy(), this.scene?.destroy(), this.debugDelegate?.dispose(), this.cameraRef?.setDebugDelegate(null), this.cameraDebugDelegate = null, this.isLoaded = !1, this.world = null, this.scene = null, this.cameraRef = null, w();
|
|
155
156
|
}
|
|
156
157
|
/**
|
|
157
158
|
* Create, register, and add an entity to the scene/world.
|
|
@@ -160,22 +161,22 @@ class Y extends v {
|
|
|
160
161
|
async spawnEntity(e) {
|
|
161
162
|
if (!this.scene || !this.world)
|
|
162
163
|
return;
|
|
163
|
-
const t = e.create(), i =
|
|
164
|
+
const t = e.create(), i = u(this.ecs);
|
|
164
165
|
if (t.eid = i, this.scene.addEntity(t), e.behaviors)
|
|
165
166
|
for (let s of e.behaviors) {
|
|
166
|
-
|
|
167
|
+
f(this.ecs, s.component, t.eid);
|
|
167
168
|
const r = Object.keys(s.values);
|
|
168
169
|
for (const n of r)
|
|
169
170
|
s.component[n][t.eid] = s.values[n];
|
|
170
171
|
}
|
|
171
172
|
t.colliderDesc && this.world.addEntity(t), e.nodeSetup({
|
|
172
173
|
me: e,
|
|
173
|
-
globals:
|
|
174
|
+
globals: h(),
|
|
174
175
|
camera: this.scene.zylemCamera
|
|
175
176
|
}), this.addEntityToStage(t);
|
|
176
177
|
}
|
|
177
178
|
buildEntityState(e) {
|
|
178
|
-
return e instanceof
|
|
179
|
+
return e instanceof P ? { ...e.buildInfo() } : {
|
|
179
180
|
uuid: e.uuid,
|
|
180
181
|
name: e.name,
|
|
181
182
|
eid: e.eid
|
|
@@ -263,6 +264,6 @@ class Y extends v {
|
|
|
263
264
|
}
|
|
264
265
|
}
|
|
265
266
|
export {
|
|
266
|
-
|
|
267
|
+
W as STAGE_TYPE,
|
|
267
268
|
Y as ZylemStage
|
|
268
269
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-system.d.ts","sourceRoot":"","sources":["../../../src/lib/systems/test-system.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformable.system.d.ts","sourceRoot":"","sources":["../../../src/lib/systems/transformable.system.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAE/C,MAAM,MAAM,WAAW,GAAG;IACzB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC,SAAS,CAAA;KAAE,CAAC,CAAC;CACpE,CAAA;AAED,eAAO,MAAM,QAAQ;;;;EAInB,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;;EAKnB,CAAC;AAEH,eAAO,MAAM,KAAK;;;;EAIhB,CAAC;AAEH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,KAAK,EAAE,WAAW,wDA8C/D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-types.d.ts","sourceRoot":"","sources":["../../../src/lib/types/entity-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAEhE;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,mBAAmB;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnD,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnD,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChD;AAED;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,mBAAmB;IACpE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAC/C,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAC9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/types/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage-types.d.ts","sourceRoot":"","sources":["../../../src/lib/types/stage-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IACnC,eAAe,EAAE,KAAK,CAAC;IACvB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE;QACP,EAAE,EAAE,MAAM,EAAE,CAAC;QACb,EAAE,EAAE,MAAM,EAAE,CAAC;KACb,CAAC;IACF,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC,mBAAmB,CAAC,EAAE,CAAC;IACzC,QAAQ,CAAC,EAAE,GAAG,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,EAAE,CAAC;IAChB,KAAK,EAAE,mBAAmB,CAAC;CAC3B"}
|
package/dist/lib/ui/Debug.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Debug.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/Debug.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Console.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/console/Console.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8B,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAGtE,OAAO,eAAe,CAAC;AAEvB;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,SA6BrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionMenu.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/debug-panel/AccordionMenu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,qBAAqB,CAAC;AAE7B;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,SAmC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/debug-panel/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAI1C,OAAO,YAAY,CAAC;AAEpB,eAAO,MAAM,IAAI,EAAE,SAAS,CAAC;IAAE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,CAYpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EntitiesSection.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ui/debug-panel/sections/EntitiesSection.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAyC,MAAM,UAAU,CAAC;AAQ5E,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGlD,UAAU,cAAc;IACtB,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,eAAO,MAAM,SAAS,EAAE,SAAS,CAAC,cAAc,CAyB/C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,SA2B7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameSection.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ui/debug-panel/sections/GameSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAI1C,eAAO,MAAM,WAAW,EAAE,SAyBzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StagesSection.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ui/debug-panel/sections/StagesSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAKrC,eAAO,MAAM,aAAa,EAAE,SA2B3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../../../../src/lib/ui/debug-panel/sections/all.tsx"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../src/lib/ui/toolbar/Toolbar.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,eAAe,CAAC;AAIvB,eAAO,MAAM,OAAO,EAAE,SAAS,CAAC;IAAE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,CA0HvD,CAAC"}
|
package/dist/main.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createGame as m } from "./lib/game/game.js";
|
|
2
2
|
import { gameConfig as a } from "./lib/game/game-config.js";
|
|
3
3
|
import { stage as f } from "./lib/stage/stage.js";
|
|
4
4
|
import { entitySpawner as s } from "./lib/stage/entity-spawner.js";
|
|
5
5
|
import { vessel as i } from "./lib/core/vessel.js";
|
|
6
|
-
import { camera as
|
|
6
|
+
import { camera as c } from "./lib/camera/camera.js";
|
|
7
7
|
import { Perspectives as h } from "./lib/camera/perspective.js";
|
|
8
8
|
import { ZylemBox as v, box as d } from "./lib/entities/box.js";
|
|
9
9
|
import { sphere as R } from "./lib/entities/sphere.js";
|
|
@@ -13,9 +13,9 @@ import { zone as D } from "./lib/entities/zone.js";
|
|
|
13
13
|
import { actor as I } from "./lib/entities/actor.js";
|
|
14
14
|
import { text as T } from "./lib/entities/text.js";
|
|
15
15
|
import { rect as A } from "./lib/entities/rect.js";
|
|
16
|
-
import { makeMoveable as
|
|
17
|
-
import { makeRotatable as
|
|
18
|
-
import { makeTransformable as
|
|
16
|
+
import { makeMoveable as M } from "./lib/actions/capabilities/moveable.js";
|
|
17
|
+
import { makeRotatable as Z } from "./lib/actions/capabilities/rotatable.js";
|
|
18
|
+
import { makeTransformable as q } from "./lib/actions/capabilities/transformable.js";
|
|
19
19
|
import { ricochet2DInBounds as J } from "./lib/actions/behaviors/ricochet/ricochet-2d-in-bounds.js";
|
|
20
20
|
import { ricochet2DCollision as L } from "./lib/actions/behaviors/ricochet/ricochet-2d-collision.js";
|
|
21
21
|
import { boundary2d as O } from "./lib/actions/behaviors/boundaries/boundary.js";
|
|
@@ -33,16 +33,16 @@ export {
|
|
|
33
33
|
I as actor,
|
|
34
34
|
O as boundary2d,
|
|
35
35
|
d as box,
|
|
36
|
-
|
|
36
|
+
c as camera,
|
|
37
|
+
m as createGame,
|
|
37
38
|
U as destroy,
|
|
38
39
|
s as entitySpawner,
|
|
39
|
-
m as game,
|
|
40
40
|
a as gameConfig,
|
|
41
41
|
Y as globalChange,
|
|
42
42
|
_ as globalChanges,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
M as makeMoveable,
|
|
44
|
+
Z as makeRotatable,
|
|
45
|
+
q as makeTransformable,
|
|
46
46
|
w as plane,
|
|
47
47
|
A as rect,
|
|
48
48
|
L as ricochet2DCollision,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collision.spec.d.ts","sourceRoot":"","sources":["../../../../src/tests/unit/collision/collision.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game.spec.d.ts","sourceRoot":"","sources":["../../../../src/tests/unit/core/game.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage.spec.d.ts","sourceRoot":"","sources":["../../../../src/tests/unit/core/stage.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vessel.spec.d.ts","sourceRoot":"","sources":["../../../../src/tests/unit/core/vessel.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage-blueprint.spec.d.ts","sourceRoot":"","sources":["../../../../src/tests/unit/stage/stage-blueprint.spec.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zylem/game-lib",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A powerful and easy-to-use framework for creating simple 3D digital interactive applications using TypeScript.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -71,15 +71,15 @@
|
|
|
71
71
|
"pnpm": ">=10.14.0"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
|
-
"build": "tsc && vite build
|
|
75
|
-
"build:watch": "tsc && vite build --watch
|
|
74
|
+
"build": "tsc && vite build",
|
|
75
|
+
"build:watch": "tsc && vite build --watch",
|
|
76
76
|
"build:preview": "vite build --mode development",
|
|
77
77
|
"lint": "eslint \"**/*.{ts,tsx}\"",
|
|
78
78
|
"lint:fix": "eslint \"**/*.{ts,tsx}\" --fix",
|
|
79
79
|
"test": "npx vitest --reporter=verbose",
|
|
80
80
|
"coverage": "vitest run --coverage",
|
|
81
81
|
"start": "vite",
|
|
82
|
-
"dev": "vite --host
|
|
82
|
+
"dev": "vite --host",
|
|
83
83
|
"serve": "npm run build:preview && vite preview --outDir dist-preview",
|
|
84
84
|
"docs": "yarn typedoc"
|
|
85
85
|
},
|
|
@@ -113,15 +113,16 @@
|
|
|
113
113
|
"three-instanced-uniforms-mesh": "^0.52.4",
|
|
114
114
|
"three-spritetext": "^1.10.0",
|
|
115
115
|
"tsimp": "^2.0.12",
|
|
116
|
+
"typescript-fsm": "^1.6.0",
|
|
116
117
|
"valtio": "^2.1.7"
|
|
117
118
|
},
|
|
118
119
|
"peerDependencies": {
|
|
119
|
-
"three": "^0.180.0",
|
|
120
120
|
"@dimforge/rapier3d-compat": "^0.11.2",
|
|
121
|
+
"bitecs": "^0.3.40",
|
|
121
122
|
"howler": "^2.2.4",
|
|
122
|
-
"valtio": "^2.1.7",
|
|
123
123
|
"nanoid": "^5.1.5",
|
|
124
|
-
"
|
|
124
|
+
"three": "^0.180.0",
|
|
125
|
+
"valtio": "^2.1.7"
|
|
125
126
|
},
|
|
126
127
|
"devDependencies": {
|
|
127
128
|
"@ava/typescript": "^5.0.0",
|
|
@@ -155,7 +156,8 @@
|
|
|
155
156
|
"vite-plugin-checker": "^0.5.6",
|
|
156
157
|
"vite-plugin-glsl": "^1.5.1",
|
|
157
158
|
"vite-plugin-solid": "^2.11.8",
|
|
158
|
-
"vitest": "^3.2.4"
|
|
159
|
+
"vitest": "^3.2.4",
|
|
160
|
+
"@microsoft/api-extractor": "^7.47.11"
|
|
159
161
|
},
|
|
160
|
-
"packageManager": "pnpm@10.
|
|
162
|
+
"packageManager": "pnpm@10.18.3"
|
|
161
163
|
}
|
package/dist/actions.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export * as actions from './lib/actions/behaviors/actions';
|
|
2
|
-
export { makeMoveable } from './lib/actions/capabilities/moveable';
|
|
3
|
-
export { makeRotatable } from './lib/actions/capabilities/rotatable';
|
|
4
|
-
export { makeTransformable } from './lib/actions/capabilities/transformable';
|
package/dist/behaviors.d.ts
DELETED
package/dist/camera.d.ts
DELETED
package/dist/core.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { game } from './lib/game/game';
|
|
2
|
-
export type { ZylemGameConfig } from './lib/game/game-interfaces';
|
|
3
|
-
export { vessel } from './lib/core/vessel';
|
|
4
|
-
export type { Vect3 } from './lib/core/utility/vector';
|
|
5
|
-
export { globalChange, globalChanges, variableChange, variableChanges } from './lib/actions/global-change';
|
package/dist/entities.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { box, ZylemBox } from './lib/entities/box';
|
|
2
|
-
export { sphere } from './lib/entities/sphere';
|
|
3
|
-
export { sprite } from './lib/entities/sprite';
|
|
4
|
-
export { plane } from './lib/entities/plane';
|
|
5
|
-
export { zone } from './lib/entities/zone';
|
|
6
|
-
export { actor } from './lib/entities/actor';
|
|
7
|
-
export { text } from './lib/entities/text';
|
|
8
|
-
export { rect } from './lib/entities/rect';
|
package/dist/main.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export { game } from './lib/game/game';
|
|
2
|
-
export type { ZylemGameConfig } from './lib/game/game-interfaces';
|
|
3
|
-
export { gameConfig } from './lib/game/game-config';
|
|
4
|
-
export { stage } from './lib/stage/stage';
|
|
5
|
-
export { entitySpawner } from './lib/stage/entity-spawner';
|
|
6
|
-
export type { StageOptions } from './lib/stage/zylem-stage';
|
|
7
|
-
export { vessel } from './lib/core/vessel';
|
|
8
|
-
export { camera } from './lib/camera/camera';
|
|
9
|
-
export type { PerspectiveType } from './lib/camera/perspective';
|
|
10
|
-
export { Perspectives } from './lib/camera/perspective';
|
|
11
|
-
export type { Vect3 } from './lib/core/utility/vector';
|
|
12
|
-
export { box } from './lib/entities/box';
|
|
13
|
-
export { sphere } from './lib/entities/sphere';
|
|
14
|
-
export { sprite } from './lib/entities/sprite';
|
|
15
|
-
export { plane } from './lib/entities/plane';
|
|
16
|
-
export { zone } from './lib/entities/zone';
|
|
17
|
-
export { actor } from './lib/entities/actor';
|
|
18
|
-
export { text } from './lib/entities/text';
|
|
19
|
-
export { rect } from './lib/entities/rect';
|
|
20
|
-
export { ZylemBox } from './lib/entities/box';
|
|
21
|
-
export { makeMoveable } from './lib/actions/capabilities/moveable';
|
|
22
|
-
export { makeRotatable } from './lib/actions/capabilities/rotatable';
|
|
23
|
-
export { makeTransformable } from './lib/actions/capabilities/transformable';
|
|
24
|
-
export { ricochet2DInBounds } from './lib/actions/behaviors/ricochet/ricochet-2d-in-bounds';
|
|
25
|
-
export { ricochet2DCollision } from './lib/actions/behaviors/ricochet/ricochet-2d-collision';
|
|
26
|
-
export { boundary2d } from './lib/actions/behaviors/boundaries/boundary';
|
|
27
|
-
export { destroy } from './lib/entities/destroy';
|
|
28
|
-
export { Howl } from 'howler';
|
|
29
|
-
export * as THREE from 'three';
|
|
30
|
-
export * as RAPIER from '@dimforge/rapier3d-compat';
|
|
31
|
-
export { globalChange, globalChanges, variableChange, variableChanges } from './lib/actions/global-change';
|
package/dist/stage.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { stage } from './lib/stage/stage';
|
|
2
|
-
export { entitySpawner } from './lib/stage/entity-spawner';
|
|
3
|
-
export type { StageOptions } from './lib/stage/zylem-stage';
|
|
4
|
-
export { stageBlueprintsState, createStageBlueprint, upsertStageBlueprint, removeStageBlueprint, getStageBlueprint, listStageBlueprints, setCurrentStageBlueprint, getCurrentStageBlueprint, buildStageFromBlueprint, resetStageBlueprints, } from './lib/stage/stage-blueprint';
|
|
5
|
-
export type { StageBlueprint } from './lib/stage/stage-blueprint';
|
|
6
|
-
export { stageDefaultsState, setStageDefaults, resetStageDefaults, getStageDefaultConfig, } from './lib/stage/stage-default';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|