@zylem/game-lib 0.3.17 → 0.4.1
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 +63 -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 +6 -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 -8
- 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 -5
- package/dist/lib/collision/collision-builder.d.ts.map +1 -0
- package/dist/lib/collision/collision-delegate.d.ts +1 -6
- 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 -9
- 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 -14
- package/dist/lib/core/entity-asset-loader.d.ts.map +1 -0
- package/dist/lib/core/entity-asset-loader.js +1 -4
- 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 -4
- package/dist/lib/core/preset-shader.d.ts.map +1 -0
- package/dist/lib/core/preset-shader.js +1 -5
- package/dist/lib/core/three-addons/Timer.d.ts +2 -16
- 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 -6
- 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 -1
- package/dist/lib/core/vessel.d.ts.map +1 -0
- package/dist/lib/core/vessel.js +0 -1
- 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 +2 -7
- 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 +2 -15
- package/dist/lib/entities/actor.d.ts.map +1 -0
- package/dist/lib/entities/actor.js +0 -3
- 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 +2 -10
- package/dist/lib/entities/delegates/debug.d.ts.map +1 -0
- package/dist/lib/entities/delegates/debug.js +1 -2
- 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 -5
- package/dist/lib/entities/entity.d.ts.map +1 -0
- package/dist/lib/entities/index.d.ts +2 -1
- 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 -5
- package/dist/lib/game/game-config.d.ts.map +1 -0
- package/dist/lib/game/game-config.js +49 -24
- package/dist/lib/game/game-default.d.ts +3 -7
- package/dist/lib/game/game-default.d.ts.map +1 -0
- package/dist/lib/game/game-default.js +0 -1
- 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 +25 -0
- package/dist/lib/game/game-retro-resolutions.d.ts.map +1 -0
- package/dist/lib/game/game-retro-resolutions.js +80 -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 +5 -4
- package/dist/lib/game/zylem-game.d.ts.map +1 -0
- package/dist/lib/game/zylem-game.js +38 -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 -4
- 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 -6
- 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 +2 -8
- package/dist/lib/stage/stage-default.d.ts.map +1 -0
- package/dist/lib/stage/stage-default.js +18 -28
- package/dist/lib/stage/stage-state.d.ts +2 -4
- 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 +28 -28
- package/dist/lib/stage/zylem-stage.d.ts +4 -2
- package/dist/lib/stage/zylem-stage.d.ts.map +1 -0
- package/dist/lib/stage/zylem-stage.js +24 -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 -15
- 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 -9
- package/dist/lib/types/stage-types.d.ts.map +1 -0
- package/dist/lib/ui/Debug.d.ts +5 -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 -8
- 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/stage.js +12 -17
- package/dist/tests/integration/debug.sim.spec.d.ts +2 -0
- package/dist/tests/integration/debug.sim.spec.d.ts.map +1 -0
- 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/package.json +22 -44
- 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
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,
|
package/dist/stage.js
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import { stage as r } from "./lib/stage/stage.js";
|
|
2
|
-
import { entitySpawner as
|
|
3
|
-
import { buildStageFromBlueprint as
|
|
4
|
-
import { getStageDefaultConfig as D, resetStageDefaults as C, setStageDefaults as b, stageDefaultsState as c } from "./lib/stage/stage-default.js";
|
|
2
|
+
import { entitySpawner as a } from "./lib/stage/entity-spawner.js";
|
|
3
|
+
import { buildStageFromBlueprint as u, createStageBlueprint as g, getCurrentStageBlueprint as i, getStageBlueprint as l, listStageBlueprints as S, removeStageBlueprint as B, resetStageBlueprints as s, setCurrentStageBlueprint as o, stageBlueprintsState as m, upsertStageBlueprint as f } from "./lib/stage/stage-blueprint.js";
|
|
5
4
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
D as getStageDefaultConfig,
|
|
5
|
+
u as buildStageFromBlueprint,
|
|
6
|
+
g as createStageBlueprint,
|
|
7
|
+
a as entitySpawner,
|
|
8
|
+
i as getCurrentStageBlueprint,
|
|
9
|
+
l as getStageBlueprint,
|
|
12
10
|
S as listStageBlueprints,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
B as setCurrentStageBlueprint,
|
|
17
|
-
b as setStageDefaults,
|
|
11
|
+
B as removeStageBlueprint,
|
|
12
|
+
s as resetStageBlueprints,
|
|
13
|
+
o as setCurrentStageBlueprint,
|
|
18
14
|
r as stage,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
m as upsertStageBlueprint
|
|
15
|
+
m as stageBlueprintsState,
|
|
16
|
+
f as upsertStageBlueprint
|
|
22
17
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug.sim.spec.d.ts","sourceRoot":"","sources":["../../../src/tests/integration/debug.sim.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -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":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zylem/game-lib",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
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,91 +71,69 @@
|
|
|
71
71
|
"pnpm": ">=10.14.0"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
|
-
"build": "tsc && vite build
|
|
75
|
-
"build:watch": "tsc && vite build --watch
|
|
76
|
-
"build:preview": "vite build --
|
|
74
|
+
"build": "VITE_TARGET=lib tsc && vite build",
|
|
75
|
+
"build:watch": "VITE_TARGET=lib tsc && vite build --watch",
|
|
76
|
+
"build:preview": "VITE_TARGET=app-prod vite build --outDir dist-preview",
|
|
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_TARGET=app-dev vite --host",
|
|
83
83
|
"serve": "npm run build:preview && vite preview --outDir dist-preview",
|
|
84
|
-
"docs": "yarn typedoc"
|
|
84
|
+
"docs": "yarn typedoc",
|
|
85
|
+
"knip": "knip"
|
|
85
86
|
},
|
|
86
87
|
"dependencies": {
|
|
87
|
-
"@dimforge/rapier3d": "^0.11.2",
|
|
88
88
|
"@dimforge/rapier3d-compat": "^0.11.2",
|
|
89
89
|
"@kobalte/core": "^0.13.11",
|
|
90
|
-
"@types/dat.gui": "^0.7.13",
|
|
91
90
|
"@types/howler": "^2.2.12",
|
|
92
|
-
"@zylem/assets": "^0.1.
|
|
91
|
+
"@zylem/assets": "^0.1.1",
|
|
93
92
|
"bitecs": "^0.3.40",
|
|
94
|
-
"dat.gui": "^0.7.9",
|
|
95
|
-
"es-toolkit": "^1.39.10",
|
|
96
|
-
"function-bind": "^1.1.2",
|
|
97
|
-
"has": "^1.0.4",
|
|
98
93
|
"howler": "^2.2.4",
|
|
99
|
-
"is-core-module": "^2.16.1",
|
|
100
|
-
"lil-gui": "^0.20.0",
|
|
101
94
|
"lucide-solid": "^0.511.0",
|
|
102
95
|
"nanoid": "^5.1.5",
|
|
103
|
-
"path-parse": "^1.0.7",
|
|
104
|
-
"picocolors": "^1.1.1",
|
|
105
|
-
"resolve": "^1.22.10",
|
|
106
96
|
"solid-js": "^1.9.9",
|
|
107
|
-
"source-map-js": "^1.2.1",
|
|
108
97
|
"stats.js": "^0.17.0",
|
|
109
|
-
"
|
|
110
|
-
"three": "0.180.0",
|
|
111
|
-
"three-addons": "^1.2.0",
|
|
112
|
-
"three-full": "^28.0.2",
|
|
113
|
-
"three-instanced-uniforms-mesh": "^0.52.4",
|
|
114
|
-
"three-spritetext": "^1.10.0",
|
|
115
|
-
"tsimp": "^2.0.12",
|
|
98
|
+
"three": "^0.180.0",
|
|
116
99
|
"valtio": "^2.1.7"
|
|
117
100
|
},
|
|
118
101
|
"peerDependencies": {
|
|
119
|
-
"three": "^0.180.0",
|
|
120
102
|
"@dimforge/rapier3d-compat": "^0.11.2",
|
|
103
|
+
"bitecs": "^0.3.40",
|
|
121
104
|
"howler": "^2.2.4",
|
|
122
|
-
"valtio": "^2.1.7",
|
|
123
105
|
"nanoid": "^5.1.5",
|
|
124
|
-
"
|
|
106
|
+
"three": "^0.180.0",
|
|
107
|
+
"valtio": "^2.1.7"
|
|
125
108
|
},
|
|
126
109
|
"devDependencies": {
|
|
127
|
-
"@ava/typescript": "^5.0.0",
|
|
128
|
-
"@babel/preset-typescript": "^7.27.1",
|
|
129
110
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
130
111
|
"@rollup/pluginutils": "^5.3.0",
|
|
112
|
+
"@solidjs/testing-library": "^0.8.10",
|
|
131
113
|
"@types/node": "^20.19.13",
|
|
132
114
|
"@types/stats.js": "^0.17.4",
|
|
133
115
|
"@types/three": "0.171.0",
|
|
134
116
|
"@typescript-eslint/eslint-plugin": "^8.42.0",
|
|
135
117
|
"@typescript-eslint/parser": "^8.42.0",
|
|
136
|
-
"@vitest/
|
|
118
|
+
"@vitest/browser": "^3.2.4",
|
|
119
|
+
"@vitest/browser-playwright": "^4.0.8",
|
|
137
120
|
"@vitest/coverage-v8": "^2.1.9",
|
|
138
|
-
"babel-plugin-inline-import": "^3.0.0",
|
|
139
121
|
"esbuild": "^0.25.9",
|
|
140
122
|
"eslint": "^9.35.0",
|
|
141
|
-
"eslint-plugin-import": "^2.32.0",
|
|
142
123
|
"happy-dom": "^18.0.1",
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"prettier": "2.6.2",
|
|
124
|
+
"jsdom": "^27.2.0",
|
|
125
|
+
"knip": "^5.69.1",
|
|
146
126
|
"rollup": "^4.50.0",
|
|
147
|
-
"rollup-plugin-dts": "^6.2.3",
|
|
148
|
-
"rollup-plugin-esbuild": "^6.2.1",
|
|
149
127
|
"rollup-plugin-typescript-paths": "^1.5.0",
|
|
150
128
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
151
129
|
"tslib": "^2.8.1",
|
|
130
|
+
"tsx": "^4.1.2",
|
|
152
131
|
"typedoc": "^0.25.13",
|
|
153
|
-
"typescript": "
|
|
132
|
+
"typescript": "5.8.2",
|
|
154
133
|
"vite": "7.0.4",
|
|
155
|
-
"vite-plugin-
|
|
156
|
-
"vite-plugin-glsl": "^1.5.1",
|
|
134
|
+
"vite-plugin-glsl": "^1.5.4",
|
|
157
135
|
"vite-plugin-solid": "^2.11.8",
|
|
158
|
-
"vitest": "^
|
|
136
|
+
"vitest": "^4.0.9"
|
|
159
137
|
},
|
|
160
|
-
"packageManager": "pnpm@10.
|
|
138
|
+
"packageManager": "pnpm@10.18.3"
|
|
161
139
|
}
|
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 {};
|