@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.
Files changed (282) hide show
  1. package/README.md +2 -2
  2. package/dist/.vite/manifest.json +64 -58
  3. package/dist/api/actions.d.ts +5 -0
  4. package/dist/api/actions.d.ts.map +1 -0
  5. package/dist/api/behaviors.d.ts +4 -0
  6. package/dist/api/behaviors.d.ts.map +1 -0
  7. package/dist/api/camera.d.ts +4 -0
  8. package/dist/api/camera.d.ts.map +1 -0
  9. package/dist/api/core.d.ts +6 -0
  10. package/dist/api/core.d.ts.map +1 -0
  11. package/dist/api/entities.d.ts +9 -0
  12. package/dist/api/entities.d.ts.map +1 -0
  13. package/dist/api/main.d.ts +32 -0
  14. package/dist/api/main.d.ts.map +1 -0
  15. package/dist/api/stage.d.ts +7 -0
  16. package/dist/api/stage.d.ts.map +1 -0
  17. package/dist/core.js +4 -4
  18. package/dist/lib/actions/behaviors/actions.d.ts +1 -0
  19. package/dist/lib/actions/behaviors/actions.d.ts.map +1 -0
  20. package/dist/lib/actions/behaviors/behavior.d.ts +1 -0
  21. package/dist/lib/actions/behaviors/behavior.d.ts.map +1 -0
  22. package/dist/lib/actions/behaviors/boundaries/boundary.d.ts +1 -0
  23. package/dist/lib/actions/behaviors/boundaries/boundary.d.ts.map +1 -0
  24. package/dist/lib/actions/behaviors/character-controller.d.ts +1 -0
  25. package/dist/lib/actions/behaviors/character-controller.d.ts.map +1 -0
  26. package/dist/lib/actions/behaviors/debug/debug-collision.d.ts +1 -0
  27. package/dist/lib/actions/behaviors/debug/debug-collision.d.ts.map +1 -0
  28. package/dist/lib/actions/behaviors/debug/debug-update.d.ts +1 -0
  29. package/dist/lib/actions/behaviors/debug/debug-update.d.ts.map +1 -0
  30. package/dist/lib/actions/behaviors/debug/debug.d.ts +1 -0
  31. package/dist/lib/actions/behaviors/debug/debug.d.ts.map +1 -0
  32. package/dist/lib/actions/behaviors/movement/movement-sequence-2d.d.ts +1 -0
  33. package/dist/lib/actions/behaviors/movement/movement-sequence-2d.d.ts.map +1 -0
  34. package/dist/lib/actions/behaviors/ricochet/ricochet-2d-collision.d.ts +1 -0
  35. package/dist/lib/actions/behaviors/ricochet/ricochet-2d-collision.d.ts.map +1 -0
  36. package/dist/lib/actions/behaviors/ricochet/ricochet-2d-in-bounds.d.ts +1 -0
  37. package/dist/lib/actions/behaviors/ricochet/ricochet-2d-in-bounds.d.ts.map +1 -0
  38. package/dist/lib/actions/behaviors/ricochet/ricochet.d.ts +1 -0
  39. package/dist/lib/actions/behaviors/ricochet/ricochet.d.ts.map +1 -0
  40. package/dist/lib/actions/behaviors/zylem-behavior.d.ts +1 -0
  41. package/dist/lib/actions/behaviors/zylem-behavior.d.ts.map +1 -0
  42. package/dist/lib/actions/capabilities/moveable.d.ts +1 -0
  43. package/dist/lib/actions/capabilities/moveable.d.ts.map +1 -0
  44. package/dist/lib/actions/capabilities/rotatable.d.ts +1 -0
  45. package/dist/lib/actions/capabilities/rotatable.d.ts.map +1 -0
  46. package/dist/lib/actions/capabilities/transformable.d.ts +1 -0
  47. package/dist/lib/actions/capabilities/transformable.d.ts.map +1 -0
  48. package/dist/lib/actions/global-change.d.ts +1 -0
  49. package/dist/lib/actions/global-change.d.ts.map +1 -0
  50. package/dist/lib/camera/camera.d.ts +1 -0
  51. package/dist/lib/camera/camera.d.ts.map +1 -0
  52. package/dist/lib/camera/fixed-2d.d.ts +1 -0
  53. package/dist/lib/camera/fixed-2d.d.ts.map +1 -0
  54. package/dist/lib/camera/perspective.d.ts +1 -0
  55. package/dist/lib/camera/perspective.d.ts.map +1 -0
  56. package/dist/lib/camera/third-person.d.ts +1 -0
  57. package/dist/lib/camera/third-person.d.ts.map +1 -0
  58. package/dist/lib/camera/zylem-camera.d.ts +27 -0
  59. package/dist/lib/camera/zylem-camera.d.ts.map +1 -0
  60. package/dist/lib/camera/zylem-camera.js +100 -37
  61. package/dist/lib/collision/collision-builder.d.ts +1 -0
  62. package/dist/lib/collision/collision-builder.d.ts.map +1 -0
  63. package/dist/lib/collision/collision-delegate.d.ts +1 -0
  64. package/dist/lib/collision/collision-delegate.d.ts.map +1 -0
  65. package/dist/lib/collision/collision-group.d.ts +1 -0
  66. package/dist/lib/collision/collision-group.d.ts.map +1 -0
  67. package/dist/lib/collision/collision-mask.d.ts +1 -0
  68. package/dist/lib/collision/collision-mask.d.ts.map +1 -0
  69. package/dist/lib/collision/collision.d.ts +1 -0
  70. package/dist/lib/collision/collision.d.ts.map +1 -0
  71. package/dist/lib/collision/utils.d.ts +1 -0
  72. package/dist/lib/collision/utils.d.ts.map +1 -0
  73. package/dist/lib/collision/world.d.ts +1 -0
  74. package/dist/lib/collision/world.d.ts.map +1 -0
  75. package/dist/lib/core/asset-manager.d.ts +1 -0
  76. package/dist/lib/core/asset-manager.d.ts.map +1 -0
  77. package/dist/lib/core/base-node-life-cycle.d.ts +1 -0
  78. package/dist/lib/core/base-node-life-cycle.d.ts.map +1 -0
  79. package/dist/lib/core/base-node.d.ts +1 -0
  80. package/dist/lib/core/base-node.d.ts.map +1 -0
  81. package/dist/lib/core/base-node.js +1 -1
  82. package/dist/lib/core/entity-asset-loader.d.ts +1 -0
  83. package/dist/lib/core/entity-asset-loader.d.ts.map +1 -0
  84. package/dist/lib/core/errors.d.ts +1 -0
  85. package/dist/lib/core/errors.d.ts.map +1 -0
  86. package/dist/lib/core/flags.d.ts +1 -0
  87. package/dist/lib/core/flags.d.ts.map +1 -0
  88. package/dist/lib/core/index.d.ts +1 -0
  89. package/dist/lib/core/index.d.ts.map +1 -0
  90. package/dist/lib/core/lazy-loader.d.ts +1 -0
  91. package/dist/lib/core/lazy-loader.d.ts.map +1 -0
  92. package/dist/lib/core/lifecycle-base.d.ts +1 -0
  93. package/dist/lib/core/lifecycle-base.d.ts.map +1 -0
  94. package/dist/lib/core/preset-shader.d.ts +1 -0
  95. package/dist/lib/core/preset-shader.d.ts.map +1 -0
  96. package/dist/lib/core/three-addons/Timer.d.ts +1 -0
  97. package/dist/lib/core/three-addons/Timer.d.ts.map +1 -0
  98. package/dist/lib/core/utility/nodes.d.ts +5 -3
  99. package/dist/lib/core/utility/nodes.d.ts.map +1 -0
  100. package/dist/lib/core/utility/nodes.js +20 -16
  101. package/dist/lib/core/utility/strings.d.ts +1 -0
  102. package/dist/lib/core/utility/strings.d.ts.map +1 -0
  103. package/dist/lib/core/utility/vector.d.ts +1 -0
  104. package/dist/lib/core/utility/vector.d.ts.map +1 -0
  105. package/dist/lib/core/vector.d.ts +1 -0
  106. package/dist/lib/core/vector.d.ts.map +1 -0
  107. package/dist/lib/core/vessel.d.ts +1 -0
  108. package/dist/lib/core/vessel.d.ts.map +1 -0
  109. package/dist/lib/debug/console/console-state.d.ts +1 -0
  110. package/dist/lib/debug/console/console-state.d.ts.map +1 -0
  111. package/dist/lib/debug/console/console-store.d.ts +1 -0
  112. package/dist/lib/debug/console/console-store.d.ts.map +1 -0
  113. package/dist/lib/debug/debug-state.d.ts +1 -0
  114. package/dist/lib/debug/debug-state.d.ts.map +1 -0
  115. package/dist/lib/debug/debug-store.d.ts +1 -0
  116. package/dist/lib/debug/debug-store.d.ts.map +1 -0
  117. package/dist/lib/debug/state-based-debug-loader.d.ts +1 -0
  118. package/dist/lib/debug/state-based-debug-loader.d.ts.map +1 -0
  119. package/dist/lib/device/aspect-ratio.d.ts +1 -0
  120. package/dist/lib/device/aspect-ratio.d.ts.map +1 -0
  121. package/dist/lib/device/desktop.d.ts +1 -0
  122. package/dist/lib/device/desktop.d.ts.map +1 -0
  123. package/dist/lib/device/mobile.d.ts +1 -0
  124. package/dist/lib/device/mobile.d.ts.map +1 -0
  125. package/dist/lib/device/tablet.d.ts +1 -0
  126. package/dist/lib/device/tablet.d.ts.map +1 -0
  127. package/dist/lib/entities/actor.d.ts +1 -0
  128. package/dist/lib/entities/actor.d.ts.map +1 -0
  129. package/dist/lib/entities/box.d.ts +1 -0
  130. package/dist/lib/entities/box.d.ts.map +1 -0
  131. package/dist/lib/entities/builder.d.ts +1 -0
  132. package/dist/lib/entities/builder.d.ts.map +1 -0
  133. package/dist/lib/entities/create.d.ts +1 -0
  134. package/dist/lib/entities/create.d.ts.map +1 -0
  135. package/dist/lib/entities/delegates/animation.d.ts +1 -0
  136. package/dist/lib/entities/delegates/animation.d.ts.map +1 -0
  137. package/dist/lib/entities/delegates/debug.d.ts +1 -0
  138. package/dist/lib/entities/delegates/debug.d.ts.map +1 -0
  139. package/dist/lib/entities/delegates/loader.d.ts +1 -0
  140. package/dist/lib/entities/delegates/loader.d.ts.map +1 -0
  141. package/dist/lib/entities/destroy.d.ts +1 -0
  142. package/dist/lib/entities/destroy.d.ts.map +1 -0
  143. package/dist/lib/entities/entity.d.ts +1 -0
  144. package/dist/lib/entities/entity.d.ts.map +1 -0
  145. package/dist/lib/entities/index.d.ts +1 -0
  146. package/dist/lib/entities/index.d.ts.map +1 -0
  147. package/dist/lib/entities/plane.d.ts +1 -0
  148. package/dist/lib/entities/plane.d.ts.map +1 -0
  149. package/dist/lib/entities/rect.d.ts +1 -0
  150. package/dist/lib/entities/rect.d.ts.map +1 -0
  151. package/dist/lib/entities/sphere.d.ts +1 -0
  152. package/dist/lib/entities/sphere.d.ts.map +1 -0
  153. package/dist/lib/entities/sprite.d.ts +1 -0
  154. package/dist/lib/entities/sprite.d.ts.map +1 -0
  155. package/dist/lib/entities/text.d.ts +8 -0
  156. package/dist/lib/entities/text.d.ts.map +1 -0
  157. package/dist/lib/entities/text.js +77 -48
  158. package/dist/lib/entities/zone.d.ts +1 -0
  159. package/dist/lib/entities/zone.d.ts.map +1 -0
  160. package/dist/lib/game/game-blueprint.d.ts +5 -11
  161. package/dist/lib/game/game-blueprint.d.ts.map +1 -0
  162. package/dist/lib/game/game-canvas.d.ts +1 -0
  163. package/dist/lib/game/game-canvas.d.ts.map +1 -0
  164. package/dist/lib/game/game-canvas.js +9 -9
  165. package/dist/lib/game/game-config.d.ts +17 -1
  166. package/dist/lib/game/game-config.d.ts.map +1 -0
  167. package/dist/lib/game/game-config.js +50 -24
  168. package/dist/lib/game/game-default.d.ts +5 -4
  169. package/dist/lib/game/game-default.d.ts.map +1 -0
  170. package/dist/lib/game/game-interfaces.d.ts +3 -2
  171. package/dist/lib/game/game-interfaces.d.ts.map +1 -0
  172. package/dist/lib/game/game-retro-resolutions.d.ts +24 -0
  173. package/dist/lib/game/game-retro-resolutions.d.ts.map +1 -0
  174. package/dist/lib/game/game-retro-resolutions.js +81 -0
  175. package/dist/lib/game/game-state.d.ts +6 -5
  176. package/dist/lib/game/game-state.d.ts.map +1 -0
  177. package/dist/lib/game/game.d.ts +7 -8
  178. package/dist/lib/game/game.d.ts.map +1 -0
  179. package/dist/lib/game/game.js +46 -70
  180. package/dist/lib/game/zylem-game.d.ts +4 -3
  181. package/dist/lib/game/zylem-game.d.ts.map +1 -0
  182. package/dist/lib/game/zylem-game.js +39 -31
  183. package/dist/lib/graphics/geometries/XZPlaneGeometry.d.ts +1 -0
  184. package/dist/lib/graphics/geometries/XZPlaneGeometry.d.ts.map +1 -0
  185. package/dist/lib/graphics/material.d.ts +1 -0
  186. package/dist/lib/graphics/material.d.ts.map +1 -0
  187. package/dist/lib/graphics/mesh.d.ts +1 -0
  188. package/dist/lib/graphics/mesh.d.ts.map +1 -0
  189. package/dist/lib/graphics/render-pass.d.ts +1 -0
  190. package/dist/lib/graphics/render-pass.d.ts.map +1 -0
  191. package/dist/lib/graphics/zylem-scene.d.ts +1 -0
  192. package/dist/lib/graphics/zylem-scene.d.ts.map +1 -0
  193. package/dist/lib/input/gamepad-provider.d.ts +1 -0
  194. package/dist/lib/input/gamepad-provider.d.ts.map +1 -0
  195. package/dist/lib/input/input-manager.d.ts +1 -0
  196. package/dist/lib/input/input-manager.d.ts.map +1 -0
  197. package/dist/lib/input/input-provider.d.ts +1 -0
  198. package/dist/lib/input/input-provider.d.ts.map +1 -0
  199. package/dist/lib/input/input.d.ts +1 -0
  200. package/dist/lib/input/input.d.ts.map +1 -0
  201. package/dist/lib/input/keyboard-provider.d.ts +1 -0
  202. package/dist/lib/input/keyboard-provider.d.ts.map +1 -0
  203. package/dist/lib/interfaces/entity.d.ts +1 -0
  204. package/dist/lib/interfaces/entity.d.ts.map +1 -0
  205. package/dist/lib/sounds/index.d.ts +1 -0
  206. package/dist/lib/sounds/index.d.ts.map +1 -0
  207. package/dist/lib/sounds/ping-pong-sound.d.ts +1 -0
  208. package/dist/lib/sounds/ping-pong-sound.d.ts.map +1 -0
  209. package/dist/lib/sounds/ricochet-sound.d.ts +1 -0
  210. package/dist/lib/sounds/ricochet-sound.d.ts.map +1 -0
  211. package/dist/lib/stage/debug-entity-cursor.d.ts +1 -0
  212. package/dist/lib/stage/debug-entity-cursor.d.ts.map +1 -0
  213. package/dist/lib/stage/entity-spawner.d.ts +1 -0
  214. package/dist/lib/stage/entity-spawner.d.ts.map +1 -0
  215. package/dist/lib/stage/stage-blueprint.d.ts +1 -0
  216. package/dist/lib/stage/stage-blueprint.d.ts.map +1 -0
  217. package/dist/lib/stage/stage-camera-debug-delegate.d.ts +14 -0
  218. package/dist/lib/stage/stage-camera-debug-delegate.d.ts.map +1 -0
  219. package/dist/lib/stage/stage-debug-delegate.d.ts +1 -0
  220. package/dist/lib/stage/stage-debug-delegate.d.ts.map +1 -0
  221. package/dist/lib/stage/stage-default.d.ts +1 -0
  222. package/dist/lib/stage/stage-default.d.ts.map +1 -0
  223. package/dist/lib/stage/stage-state.d.ts +1 -0
  224. package/dist/lib/stage/stage-state.d.ts.map +1 -0
  225. package/dist/lib/stage/stage.d.ts +2 -1
  226. package/dist/lib/stage/stage.d.ts.map +1 -0
  227. package/dist/lib/stage/stage.js +27 -27
  228. package/dist/lib/stage/zylem-stage.d.ts +4 -1
  229. package/dist/lib/stage/zylem-stage.d.ts.map +1 -0
  230. package/dist/lib/stage/zylem-stage.js +25 -24
  231. package/dist/lib/systems/test-system.d.ts +1 -0
  232. package/dist/lib/systems/test-system.d.ts.map +1 -0
  233. package/dist/lib/systems/transformable.system.d.ts +1 -0
  234. package/dist/lib/systems/transformable.system.d.ts.map +1 -0
  235. package/dist/lib/types/entity-types.d.ts +1 -0
  236. package/dist/lib/types/entity-types.d.ts.map +1 -0
  237. package/dist/lib/types/index.d.ts +1 -0
  238. package/dist/lib/types/index.d.ts.map +1 -0
  239. package/dist/lib/types/stage-types.d.ts +1 -0
  240. package/dist/lib/types/stage-types.d.ts.map +1 -0
  241. package/dist/lib/ui/Debug.d.ts +1 -0
  242. package/dist/lib/ui/Debug.d.ts.map +1 -0
  243. package/dist/lib/ui/console/Console.d.ts +1 -0
  244. package/dist/lib/ui/console/Console.d.ts.map +1 -0
  245. package/dist/lib/ui/debug-panel/AccordionMenu.d.ts +1 -0
  246. package/dist/lib/ui/debug-panel/AccordionMenu.d.ts.map +1 -0
  247. package/dist/lib/ui/debug-panel/Menu.d.ts +1 -0
  248. package/dist/lib/ui/debug-panel/Menu.d.ts.map +1 -0
  249. package/dist/lib/ui/debug-panel/sections/EntitiesSection.d.ts +1 -0
  250. package/dist/lib/ui/debug-panel/sections/EntitiesSection.d.ts.map +1 -0
  251. package/dist/lib/ui/debug-panel/sections/GameSection.d.ts +1 -0
  252. package/dist/lib/ui/debug-panel/sections/GameSection.d.ts.map +1 -0
  253. package/dist/lib/ui/debug-panel/sections/StagesSection.d.ts +1 -0
  254. package/dist/lib/ui/debug-panel/sections/StagesSection.d.ts.map +1 -0
  255. package/dist/lib/ui/debug-panel/sections/all.d.ts +1 -0
  256. package/dist/lib/ui/debug-panel/sections/all.d.ts.map +1 -0
  257. package/dist/lib/ui/toolbar/Toolbar.d.ts +1 -0
  258. package/dist/lib/ui/toolbar/Toolbar.d.ts.map +1 -0
  259. package/dist/main.js +10 -10
  260. package/dist/tests/unit/collision/collision.spec.d.ts +2 -0
  261. package/dist/tests/unit/collision/collision.spec.d.ts.map +1 -0
  262. package/dist/tests/unit/core/game.spec.d.ts +2 -0
  263. package/dist/tests/unit/core/game.spec.d.ts.map +1 -0
  264. package/dist/tests/unit/core/stage.spec.d.ts +2 -0
  265. package/dist/tests/unit/core/stage.spec.d.ts.map +1 -0
  266. package/dist/tests/unit/core/vessel.spec.d.ts +2 -0
  267. package/dist/tests/unit/core/vessel.spec.d.ts.map +1 -0
  268. package/dist/tests/unit/stage/stage-blueprint.spec.d.ts +2 -0
  269. package/dist/tests/unit/stage/stage-blueprint.spec.d.ts.map +1 -0
  270. package/package.json +11 -9
  271. package/dist/actions.d.ts +0 -4
  272. package/dist/behaviors.d.ts +0 -3
  273. package/dist/camera.d.ts +0 -3
  274. package/dist/core.d.ts +0 -5
  275. package/dist/entities.d.ts +0 -8
  276. package/dist/main.d.ts +0 -31
  277. package/dist/stage.d.ts +0 -6
  278. package/dist/tests/collision/collision.spec.d.ts +0 -1
  279. package/dist/tests/core/game.spec.d.ts +0 -1
  280. package/dist/tests/core/stage.spec.d.ts +0 -1
  281. package/dist/tests/core/vessel.spec.d.ts +0 -1
  282. package/dist/tests/stage/stage-blueprint.spec.d.ts +0 -1
@@ -1,23 +1,23 @@
1
- import { createWorld as c, addEntity as f, addComponent as u, removeEntity as p } from "bitecs";
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 h } from "../collision/world.js";
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 w, resetStageVariables as b } from "./stage-state.js";
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 l } from "../game/game-state.js";
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 { ZylemCamera as B } from "../camera/zylem-camera.js";
14
- import { Perspectives as O } from "../camera/perspective.js";
15
- import { CameraWrapper as P } from "../camera/camera.js";
16
- import { StageDebugDelegate as R } from "./stage-debug-delegate.js";
17
- import { GameEntity as W } from "../entities/entity.js";
18
- const k = "Stage";
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 = k;
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 P);
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), w(this.state.variables ?? {});
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 h.loadPhysics(this.gravity ?? new o(0, 0, 0));
106
- this.world = new h(s), this.scene.setup();
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 B(O.ThirdPerson, i);
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 R(this));
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: l() });
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, b();
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 = f(this.ecs);
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
- u(this.ecs, s.component, t.eid);
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: l(),
174
+ globals: h(),
174
175
  camera: this.scene.zylemCamera
175
176
  }), this.addEntityToStage(t);
176
177
  }
177
178
  buildEntityState(e) {
178
- return e instanceof W ? { ...e.buildInfo() } : {
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
- k as STAGE_TYPE,
267
+ W as STAGE_TYPE,
267
268
  Y as ZylemStage
268
269
  };
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=test-system.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-system.d.ts","sourceRoot":"","sources":["../../../src/lib/systems/test-system.ts"],"names":[],"mappings":""}
@@ -22,3 +22,4 @@ export declare const scale: import("bitecs").ComponentType<{
22
22
  z: "f32";
23
23
  }>;
24
24
  export default function createTransformSystem(stage: StageSystem): import("bitecs").System<[], import("bitecs").IWorld>;
25
+ //# sourceMappingURL=transformable.system.d.ts.map
@@ -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"}
@@ -36,3 +36,4 @@ export interface CollisionEntityInterface extends GameEntityInterface {
36
36
  onEnter?: (other: GameEntityInterface) => void;
37
37
  onExit?: (other: GameEntityInterface) => void;
38
38
  }
39
+ //# sourceMappingURL=entity-types.d.ts.map
@@ -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"}
@@ -1,2 +1,3 @@
1
1
  export * from './entity-types';
2
2
  export * from './stage-types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -32,3 +32,4 @@ export interface StageInterface {
32
32
  children: any[];
33
33
  state: StageStateInterface;
34
34
  }
35
+ //# sourceMappingURL=stage-types.d.ts.map
@@ -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"}
@@ -1 +1,2 @@
1
1
  import './Debug.css';
2
+ //# sourceMappingURL=Debug.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Debug.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/Debug.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC"}
@@ -4,3 +4,4 @@ import './Console.css';
4
4
  * Console component for debug UI. Displays console messages and allows user input.
5
5
  */
6
6
  export declare const Console: Component;
7
+ //# sourceMappingURL=Console.d.ts.map
@@ -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"}
@@ -4,3 +4,4 @@ import './AccordionMenu.css';
4
4
  * Accordion menu for debug UI with multiple panels.
5
5
  */
6
6
  export declare const AccordionMenu: Component;
7
+ //# sourceMappingURL=AccordionMenu.d.ts.map
@@ -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"}
@@ -3,3 +3,4 @@ import './Menu.css';
3
3
  export declare const Menu: Component<{
4
4
  onClose?: () => void;
5
5
  }>;
6
+ //# sourceMappingURL=Menu.d.ts.map
@@ -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"}
@@ -9,3 +9,4 @@ interface EntityRowProps {
9
9
  export declare const EntityRow: Component<EntityRowProps>;
10
10
  export declare const EntitiesSection: Component;
11
11
  export {};
12
+ //# sourceMappingURL=EntitiesSection.d.ts.map
@@ -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"}
@@ -1,2 +1,3 @@
1
1
  import type { Component } from 'solid-js';
2
2
  export declare const GameSection: Component;
3
+ //# sourceMappingURL=GameSection.d.ts.map
@@ -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"}
@@ -1,2 +1,3 @@
1
1
  import { Component } from 'solid-js';
2
2
  export declare const StagesSection: Component;
3
+ //# sourceMappingURL=StagesSection.d.ts.map
@@ -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"}
@@ -1,3 +1,4 @@
1
1
  export * from './EntitiesSection';
2
2
  export * from './GameSection';
3
3
  export * from './StagesSection';
4
+ //# sourceMappingURL=all.d.ts.map
@@ -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"}
@@ -3,3 +3,4 @@ import './Toolbar.css';
3
3
  export declare const Toolbar: Component<{
4
4
  onClose?: () => void;
5
5
  }>;
6
+ //# sourceMappingURL=Toolbar.d.ts.map
@@ -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 { game as m } from "./lib/game/game.js";
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 b } from "./lib/camera/camera.js";
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 S } from "./lib/actions/capabilities/moveable.js";
17
- import { makeRotatable as j } from "./lib/actions/capabilities/rotatable.js";
18
- import { makeTransformable as F } from "./lib/actions/capabilities/transformable.js";
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
- b as camera,
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
- S as makeMoveable,
44
- j as makeRotatable,
45
- F as makeTransformable,
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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=collision.spec.d.ts.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=game.spec.d.ts.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=stage.spec.d.ts.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=vessel.spec.d.ts.map
@@ -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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=stage-blueprint.spec.d.ts.map
@@ -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.17",
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 && typedoc",
75
- "build:watch": "tsc && vite build --watch && typedoc",
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 && typedoc",
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
- "bitecs": "^0.3.40"
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.14.0+sha512.ad27a79641b49c3e481a16a805baa71817a04bbe06a38d17e60e2eaee83f6a146c6a688125f5792e48dd5ba30e7da52a5cda4c3992b9ccf333f9ce223af84748"
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';
@@ -1,3 +0,0 @@
1
- export { boundary2d } from './lib/actions/behaviors/boundaries/boundary';
2
- export { ricochet2DInBounds } from './lib/actions/behaviors/ricochet/ricochet-2d-in-bounds';
3
- export { ricochet2DCollision } from './lib/actions/behaviors/ricochet/ricochet-2d-collision';
package/dist/camera.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export { camera } from './lib/camera/camera';
2
- export type { PerspectiveType } from './lib/camera/perspective';
3
- export { Perspectives } from './lib/camera/perspective';
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';
@@ -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 {};