excalibur 0.32.0 → 0.33.0-alpha.100

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 (304) hide show
  1. package/.git-blame-ignore-revs +2 -1
  2. package/.nvmrc +1 -1
  3. package/CHANGELOG.md +23 -3
  4. package/build/dist/{Actions/Action/ActionSequence.d.ts → actions/action/action-sequence.d.ts} +3 -3
  5. package/build/dist/{Actions/Action/Blink.d.ts → actions/action/blink.d.ts} +2 -2
  6. package/build/dist/{Actions/Action/CallMethod.d.ts → actions/action/call-method.d.ts} +1 -1
  7. package/build/dist/{Actions/Action/CurveBy.d.ts → actions/action/curve-by.d.ts} +3 -3
  8. package/build/dist/{Actions/Action/CurveTo.d.ts → actions/action/curve-to.d.ts} +3 -3
  9. package/build/dist/{Actions/Action/Delay.d.ts → actions/action/delay.d.ts} +1 -1
  10. package/build/dist/{Actions/Action/Die.d.ts → actions/action/die.d.ts} +2 -2
  11. package/build/dist/{Actions/Action/EaseBy.d.ts → actions/action/ease-by.d.ts} +2 -2
  12. package/build/dist/{Actions/Action/EaseTo.d.ts → actions/action/ease-to.d.ts} +2 -2
  13. package/build/dist/{Actions/Action/Fade.d.ts → actions/action/fade.d.ts} +2 -2
  14. package/build/dist/{Actions/Action/Flash.d.ts → actions/action/flash.d.ts} +3 -3
  15. package/build/dist/{Actions/Action/Follow.d.ts → actions/action/follow.d.ts} +2 -2
  16. package/build/dist/{Actions/Action/Meet.d.ts → actions/action/meet.d.ts} +2 -2
  17. package/build/dist/{Actions/Action/MoveBy.d.ts → actions/action/move-by.d.ts} +5 -5
  18. package/build/dist/{Actions/Action/MoveTo.d.ts → actions/action/move-to.d.ts} +5 -5
  19. package/build/dist/{Actions/Action/ParallelActions.d.ts → actions/action/parallel-actions.d.ts} +2 -2
  20. package/build/dist/{Actions/Action/RepeatForever.d.ts → actions/action/repeat-forever.d.ts} +3 -3
  21. package/build/dist/{Actions/Action/Repeat.d.ts → actions/action/repeat.d.ts} +3 -3
  22. package/build/dist/{Actions/Action/RotateBy.d.ts → actions/action/rotate-by.d.ts} +3 -3
  23. package/build/dist/{Actions/Action/RotateTo.d.ts → actions/action/rotate-to.d.ts} +3 -3
  24. package/build/dist/{Actions/Action/ScaleBy.d.ts → actions/action/scale-by.d.ts} +3 -3
  25. package/build/dist/{Actions/Action/ScaleTo.d.ts → actions/action/scale-to.d.ts} +3 -3
  26. package/build/dist/{Actions/ActionContext.d.ts → actions/action-context.d.ts} +15 -15
  27. package/build/dist/{Actions/ActionQueue.d.ts → actions/action-queue.d.ts} +2 -2
  28. package/build/dist/{Actions/Action.d.ts → actions/action.d.ts} +1 -1
  29. package/build/dist/{Actions/Actionable.d.ts → actions/actionable.d.ts} +1 -1
  30. package/build/dist/{Actions/ActionsComponent.d.ts → actions/actions-component.d.ts} +14 -14
  31. package/build/dist/actions/actions-system.d.ts +13 -0
  32. package/build/dist/actions/index.d.ts +27 -0
  33. package/build/dist/{Actor.d.ts → actor.d.ts} +40 -27
  34. package/build/dist/{Camera.d.ts → camera.d.ts} +12 -12
  35. package/build/dist/{Collision/BodyComponent.d.ts → collision/body-component.d.ts} +40 -13
  36. package/build/dist/{Collision/BoundingBox.d.ts → collision/bounding-box.d.ts} +5 -5
  37. package/build/dist/{Collision/ColliderComponent.d.ts → collision/collider-component.d.ts} +73 -12
  38. package/build/dist/{Collision/Colliders/CircleCollider.d.ts → collision/colliders/circle-collider.d.ts} +11 -11
  39. package/build/dist/{Collision/Colliders/ClosestLineJumpTable.d.ts → collision/colliders/closest-line-jump-table.d.ts} +4 -4
  40. package/build/dist/{Collision/Colliders/Collider.d.ts → collision/colliders/collider.d.ts} +15 -15
  41. package/build/dist/{Collision/Colliders/CollisionJumpTable.d.ts → collision/colliders/collision-jump-table.d.ts} +5 -5
  42. package/build/dist/{Collision/Colliders/CompositeCollider.d.ts → collision/colliders/composite-collider.d.ts} +14 -13
  43. package/build/dist/{Collision/Colliders/EdgeCollider.d.ts → collision/colliders/edge-collider.d.ts} +11 -11
  44. package/build/dist/{Collision/Colliders/PolygonCollider.d.ts → collision/colliders/polygon-collider.d.ts} +11 -11
  45. package/build/dist/{Collision/Colliders/SeparatingAxis.d.ts → collision/colliders/separating-axis.d.ts} +6 -6
  46. package/build/dist/{Collision/Colliders/Shape.d.ts → collision/colliders/shape.d.ts} +5 -5
  47. package/build/dist/{Collision/CollisionSystem.d.ts → collision/collision-system.d.ts} +11 -10
  48. package/build/dist/{Collision/Detection/CollisionContact.d.ts → collision/detection/collision-contact.d.ts} +4 -4
  49. package/build/dist/{Collision/Detection/CollisionProcessor.d.ts → collision/detection/collision-processor.d.ts} +10 -10
  50. package/build/dist/{Collision/Detection/DynamicTreeCollisionProcessor.d.ts → collision/detection/dynamic-tree-collision-processor.d.ts} +13 -13
  51. package/build/dist/{Collision/Detection/DynamicTree.d.ts → collision/detection/dynamic-tree.d.ts} +5 -5
  52. package/build/dist/{Collision/Detection/Pair.d.ts → collision/detection/pair.d.ts} +3 -3
  53. package/build/dist/{Collision/Detection/QuadTree.d.ts → collision/detection/quad-tree.d.ts} +2 -2
  54. package/build/dist/{Collision/Detection/RayCastHit.d.ts → collision/detection/ray-cast-hit.d.ts} +3 -3
  55. package/build/dist/{Collision/Detection/RayCastOptions.d.ts → collision/detection/ray-cast-options.d.ts} +2 -2
  56. package/build/dist/{Collision/Detection/SparseHashGridCollisionProcessor.d.ts → collision/detection/sparse-hash-grid-collision-processor.d.ts} +16 -16
  57. package/build/dist/{Collision/Detection/SparseHashGrid.d.ts → collision/detection/sparse-hash-grid.d.ts} +3 -3
  58. package/build/dist/{Collision/Group/CollisionGroupManager.d.ts → collision/group/collision-group-manager.d.ts} +1 -1
  59. package/build/dist/collision/index.d.ts +38 -0
  60. package/build/dist/{Collision/Integrator.d.ts → collision/integrator.d.ts} +3 -3
  61. package/build/dist/{Collision/Island.d.ts → collision/island.d.ts} +2 -2
  62. package/build/dist/collision/motion-system.d.ts +18 -0
  63. package/build/dist/{Collision/PhysicsConfig.d.ts → collision/physics-config.d.ts} +5 -5
  64. package/build/dist/{Collision/PhysicsWorld.d.ts → collision/physics-world.d.ts} +11 -11
  65. package/build/dist/{Collision/Side.d.ts → collision/side.d.ts} +1 -1
  66. package/build/dist/{Collision/Solver/ArcadeSolver.d.ts → collision/solver/arcade-solver.d.ts} +4 -4
  67. package/build/dist/{Collision/Solver/ContactConstraintPoint.d.ts → collision/solver/contact-constraint-point.d.ts} +2 -2
  68. package/build/dist/{Collision/Solver/RealisticSolver.d.ts → collision/solver/realistic-solver.d.ts} +5 -5
  69. package/build/dist/{Collision/Solver/Solver.d.ts → collision/solver/solver.d.ts} +1 -1
  70. package/build/dist/{Color.d.ts → color.d.ts} +43 -3
  71. package/build/dist/{Debug/DebugConfig.d.ts → debug/debug-config.d.ts} +5 -5
  72. package/build/dist/{Debug/DebugFlags.d.ts → debug/debug-flags.d.ts} +2 -2
  73. package/build/dist/{Debug/DebugSystem.d.ts → debug/debug-system.d.ts} +4 -4
  74. package/build/dist/debug/index.d.ts +3 -0
  75. package/build/dist/{Director/CrossFade.d.ts → director/cross-fade.d.ts} +5 -5
  76. package/build/dist/{Director/DefaultLoader.d.ts → director/default-loader.d.ts} +5 -5
  77. package/build/dist/{Director/Director.d.ts → director/director.d.ts} +7 -7
  78. package/build/dist/{Director/FadeInOut.d.ts → director/fade-in-out.d.ts} +5 -5
  79. package/build/dist/director/index.d.ts +7 -0
  80. package/build/dist/{Director/Loader.d.ts → director/loader.d.ts} +9 -9
  81. package/build/dist/{Director/Slide.d.ts → director/slide.d.ts} +5 -5
  82. package/build/dist/{Director/Transition.d.ts → director/transition.d.ts} +7 -7
  83. package/build/dist/{Engine.d.ts → engine.d.ts} +31 -31
  84. package/build/dist/{EntityComponentSystem/Component.d.ts → entity-component-system/component.d.ts} +7 -1
  85. package/build/dist/{EntityComponentSystem/Components/MotionComponent.d.ts → entity-component-system/components/motion-component.d.ts} +2 -2
  86. package/build/dist/entity-component-system/components/pause-component.d.ts +9 -0
  87. package/build/dist/{EntityComponentSystem/Components/TagsComponent.d.ts → entity-component-system/components/tags-component.d.ts} +1 -1
  88. package/build/dist/{EntityComponentSystem/Components/TransformComponent.d.ts → entity-component-system/components/transform-component.d.ts} +29 -6
  89. package/build/dist/{EntityComponentSystem/EntityManager.d.ts → entity-component-system/entity-manager.d.ts} +3 -3
  90. package/build/dist/{EntityComponentSystem/Entity.d.ts → entity-component-system/entity.d.ts} +12 -12
  91. package/build/dist/entity-component-system/index.d.ts +14 -0
  92. package/build/dist/{EntityComponentSystem/QueryManager.d.ts → entity-component-system/query-manager.d.ts} +5 -5
  93. package/build/dist/{EntityComponentSystem/Query.d.ts → entity-component-system/query.d.ts} +3 -3
  94. package/build/dist/{EntityComponentSystem/SystemManager.d.ts → entity-component-system/system-manager.d.ts} +4 -4
  95. package/build/dist/{EntityComponentSystem/System.d.ts → entity-component-system/system.d.ts} +2 -2
  96. package/build/dist/{EntityComponentSystem/TagQuery.d.ts → entity-component-system/tag-query.d.ts} +2 -2
  97. package/build/dist/{EntityComponentSystem/World.d.ts → entity-component-system/world.d.ts} +9 -9
  98. package/build/dist/{Events/MediaEvents.d.ts → events/media-events.d.ts} +4 -4
  99. package/build/dist/{Events/PointerEvents.d.ts → events/pointer-events.d.ts} +3 -3
  100. package/build/dist/{Events.d.ts → events.d.ts} +35 -15
  101. package/build/dist/excalibur.development.js +3169 -1961
  102. package/build/dist/excalibur.js +3169 -1961
  103. package/build/dist/excalibur.min.development.js +53 -53
  104. package/build/dist/excalibur.min.js +53 -53
  105. package/build/dist/{Graphics/Animation.d.ts → graphics/animation.d.ts} +5 -5
  106. package/build/dist/{Graphics/Canvas.d.ts → graphics/canvas.d.ts} +3 -3
  107. package/build/dist/{Graphics/Circle.d.ts → graphics/circle.d.ts} +2 -2
  108. package/build/dist/{Graphics/Context → graphics/context}/circle-renderer/circle-renderer.d.ts +3 -3
  109. package/build/dist/{Graphics/Context → graphics/context}/debug-circle-renderer/debug-circle-renderer.d.ts +3 -3
  110. package/build/dist/{Graphics/Context → graphics/context}/debug-line-renderer/debug-line-renderer.d.ts +3 -3
  111. package/build/dist/{Graphics/Context → graphics/context}/debug-point-renderer/debug-point-renderer.d.ts +3 -3
  112. package/build/dist/{Graphics/Context → graphics/context}/debug-text.d.ts +3 -3
  113. package/build/dist/{Graphics/Context → graphics/context}/draw-call.d.ts +2 -2
  114. package/build/dist/{Graphics/Context/ExcaliburGraphicsContext2DCanvas.d.ts → graphics/context/excalibur-graphics-context-2d-canvas.d.ts} +6 -6
  115. package/build/dist/{Graphics/Context/ExcaliburGraphicsContextWebGL.d.ts → graphics/context/excalibur-graphics-context-webgl.d.ts} +8 -8
  116. package/build/dist/{Graphics/Context/ExcaliburGraphicsContext.d.ts → graphics/context/excalibur-graphics-context.d.ts} +6 -6
  117. package/build/dist/{Graphics/Context → graphics/context}/image-renderer/image-renderer.d.ts +2 -2
  118. package/build/dist/{Graphics/Context → graphics/context}/image-renderer-v2/image-renderer-v2.d.ts +2 -2
  119. package/build/dist/{Graphics/Context → graphics/context}/material-renderer/material-renderer.d.ts +2 -2
  120. package/build/dist/{Graphics/Context → graphics/context}/material.d.ts +4 -4
  121. package/build/dist/{Graphics/Context → graphics/context}/particle-renderer/particle-renderer.d.ts +2 -2
  122. package/build/dist/{Graphics/Context → graphics/context}/rectangle-renderer/rectangle-renderer.d.ts +3 -3
  123. package/build/dist/{Graphics/Context → graphics/context}/renderer.d.ts +1 -1
  124. package/build/dist/{Graphics/Context → graphics/context}/screen-pass-painter/screen-pass-painter.d.ts +2 -2
  125. package/build/dist/{Graphics/Context → graphics/context}/shader.d.ts +1 -1
  126. package/build/dist/{Graphics/Context → graphics/context}/state-stack.d.ts +2 -2
  127. package/build/dist/{Graphics/Context → graphics/context}/texture-loader.d.ts +4 -4
  128. package/build/dist/{Graphics/Context → graphics/context}/transform-stack.d.ts +1 -1
  129. package/build/dist/{Graphics/DebugGraphicsComponent.d.ts → graphics/debug-graphics-component.d.ts} +3 -3
  130. package/build/dist/{Graphics/Debug.d.ts → graphics/debug.d.ts} +6 -6
  131. package/build/dist/{Graphics/FontCache.d.ts → graphics/font-cache.d.ts} +4 -4
  132. package/build/dist/{Graphics/FontCommon.d.ts → graphics/font-common.d.ts} +4 -4
  133. package/build/dist/{Graphics/FontTextInstance.d.ts → graphics/font-text-instance.d.ts} +27 -6
  134. package/build/dist/{Graphics/Font.d.ts → graphics/font.d.ts} +11 -10
  135. package/build/dist/{Graphics/Graphic.d.ts → graphics/graphic.d.ts} +5 -5
  136. package/build/dist/{Graphics/GraphicsComponent.d.ts → graphics/graphics-component.d.ts} +60 -8
  137. package/build/dist/{Graphics/GraphicsGroup.d.ts → graphics/graphics-group.d.ts} +6 -6
  138. package/build/dist/{Graphics/GraphicsSystem.d.ts → graphics/graphics-system.d.ts} +5 -5
  139. package/build/dist/{Graphics/ImageSource.d.ts → graphics/image-source.d.ts} +7 -6
  140. package/build/dist/graphics/index.d.ts +47 -0
  141. package/build/dist/{Graphics/Line.d.ts → graphics/line.d.ts} +5 -5
  142. package/build/dist/{Graphics/NineSlice.d.ts → graphics/nine-slice.d.ts} +5 -5
  143. package/build/dist/{Graphics/OffscreenSystem.d.ts → graphics/offscreen-system.d.ts} +5 -5
  144. package/build/dist/{Graphics/ParallaxComponent.d.ts → graphics/parallax-component.d.ts} +2 -2
  145. package/build/dist/{Graphics/Polygon.d.ts → graphics/polygon.d.ts} +3 -3
  146. package/build/dist/{Graphics/PostProcessor/ColorBlindnessPostProcessor.d.ts → graphics/post-processor/color-blindness-post-processor.d.ts} +5 -5
  147. package/build/dist/{Graphics/PostProcessor/PostProcessor.d.ts → graphics/post-processor/post-processor.d.ts} +3 -3
  148. package/build/dist/{Graphics/PostProcessor/ScreenShader.d.ts → graphics/post-processor/screen-shader.d.ts} +3 -3
  149. package/build/dist/{Graphics/Raster.d.ts → graphics/raster.d.ts} +6 -6
  150. package/build/dist/{Graphics/Rectangle.d.ts → graphics/rectangle.d.ts} +2 -2
  151. package/build/dist/{Graphics/SpriteFont.d.ts → graphics/sprite-font.d.ts} +8 -8
  152. package/build/dist/{Graphics/SpriteSheet.d.ts → graphics/sprite-sheet.d.ts} +7 -7
  153. package/build/dist/{Graphics/Sprite.d.ts → graphics/sprite.d.ts} +4 -4
  154. package/build/dist/{Graphics/Text.d.ts → graphics/text.d.ts} +7 -7
  155. package/build/dist/{Graphics/TiledAnimation.d.ts → graphics/tiled-animation.d.ts} +7 -7
  156. package/build/dist/{Graphics/TiledSprite.d.ts → graphics/tiled-sprite.d.ts} +7 -7
  157. package/build/dist/{Graphics/TransformInterpolation.d.ts → graphics/transform-interpolation.d.ts} +1 -1
  158. package/build/dist/index.d.ts +68 -66
  159. package/build/dist/{Input/Gamepad.d.ts → input/gamepad.d.ts} +3 -3
  160. package/build/dist/{Input/InputHost.d.ts → input/input-host.d.ts} +5 -5
  161. package/build/dist/{Input/InputMapper.d.ts → input/input-mapper.d.ts} +3 -3
  162. package/build/dist/{Input/Keyboard.d.ts → input/keyboard.d.ts} +3 -3
  163. package/build/dist/{Input/PointerAbstraction.d.ts → input/pointer-abstraction.d.ts} +5 -5
  164. package/build/dist/{Input/PointerComponent.d.ts → input/pointer-component.d.ts} +2 -2
  165. package/build/dist/{Input/PointerEventReceiver.d.ts → input/pointer-event-receiver.d.ts} +8 -8
  166. package/build/dist/{Input/PointerEvent.d.ts → input/pointer-event.d.ts} +4 -4
  167. package/build/dist/{Input/PointerEventsToObjectDispatcher.d.ts → input/pointer-events-to-object-dispatcher.d.ts} +3 -3
  168. package/build/dist/{Input/PointerSystem.d.ts → input/pointer-system.d.ts} +4 -4
  169. package/build/dist/{Input/WheelEvent.d.ts → input/wheel-event.d.ts} +1 -1
  170. package/build/dist/{Interfaces/AudioImplementation.d.ts → interfaces/audio-implementation.d.ts} +1 -1
  171. package/build/dist/{Interfaces/Evented.d.ts → interfaces/evented.d.ts} +1 -1
  172. package/build/dist/interfaces/index.d.ts +7 -0
  173. package/build/dist/{Interfaces/LifecycleEvents.d.ts → interfaces/lifecycle-events.d.ts} +4 -4
  174. package/build/dist/{Interfaces/PointerEventHandlers.d.ts → interfaces/pointer-event-handlers.d.ts} +3 -3
  175. package/build/dist/{Label.d.ts → label.d.ts} +7 -7
  176. package/build/dist/{Math → math}/global-coordinates.d.ts +1 -1
  177. package/build/dist/{Math → math}/graph.d.ts +12 -0
  178. package/build/dist/{Math → math}/index.d.ts +1 -1
  179. package/build/dist/{Math → math}/util.d.ts +1 -1
  180. package/build/dist/{Math → math}/vector.d.ts +1 -1
  181. package/build/dist/{Particles/GpuParticleEmitter.d.ts → particles/gpu-particle-emitter.d.ts} +10 -10
  182. package/build/dist/{Particles/GpuParticleRenderer.d.ts → particles/gpu-particle-renderer.d.ts} +5 -5
  183. package/build/dist/particles/index.d.ts +5 -0
  184. package/build/dist/{Particles/ParticleEmitter.d.ts → particles/particle-emitter.d.ts} +6 -6
  185. package/build/dist/{Particles/Particles.d.ts → particles/particles.d.ts} +12 -11
  186. package/build/dist/{Resources/Font.d.ts → resources/font.d.ts} +4 -4
  187. package/build/dist/{Resources/Gif.d.ts → resources/gif.d.ts} +5 -5
  188. package/build/dist/resources/index.d.ts +4 -0
  189. package/build/dist/{Resources/Resource.d.ts → resources/resource.d.ts} +3 -3
  190. package/build/dist/resources/sound/index.d.ts +4 -0
  191. package/build/dist/{Resources/Sound/SoundManager.d.ts → resources/sound/sound-manager.d.ts} +1 -1
  192. package/build/dist/{Resources/Sound/Sound.d.ts → resources/sound/sound.d.ts} +9 -8
  193. package/build/dist/{Resources/Sound/WebAudioInstance.d.ts → resources/sound/web-audio-instance.d.ts} +1 -1
  194. package/build/dist/{Scene.d.ts → scene.d.ts} +26 -20
  195. package/build/dist/{ScreenElement.d.ts → screen-element.d.ts} +3 -3
  196. package/build/dist/{Screen.d.ts → screen.d.ts} +6 -6
  197. package/build/dist/tile-map/index.d.ts +4 -0
  198. package/build/dist/{TileMap/IsometricEntityComponent.d.ts → tile-map/isometric-entity-component.d.ts} +2 -2
  199. package/build/dist/tile-map/isometric-entity-system.d.ts +13 -0
  200. package/build/dist/{TileMap/IsometricMap.d.ts → tile-map/isometric-map.d.ts} +13 -13
  201. package/build/dist/{TileMap/TileMap.d.ts → tile-map/tile-map.d.ts} +29 -18
  202. package/build/dist/{Timer.d.ts → timer.d.ts} +1 -1
  203. package/build/dist/{Trigger.d.ts → trigger.d.ts} +6 -6
  204. package/build/dist/{Util/Clock.d.ts → util/clock.d.ts} +1 -1
  205. package/build/dist/{Util/Coroutine.d.ts → util/coroutine.d.ts} +2 -2
  206. package/build/dist/{Util/DrawUtil.d.ts → util/draw-util.d.ts} +2 -2
  207. package/build/dist/{Util/EasingFunctions.d.ts → util/easing-functions.d.ts} +1 -1
  208. package/build/dist/util/index.d.ts +7 -0
  209. package/build/dist/{Util/Log.d.ts → util/log.d.ts} +2 -2
  210. package/build/dist/util/pause-system.d.ts +12 -0
  211. package/build/dist/util/serializer.d.ts +128 -0
  212. package/build/dist/{Util/Sound.d.ts → util/sound.d.ts} +1 -0
  213. package/build/dist/util/string.d.ts +6 -0
  214. package/build/dist/{Util/Util.d.ts → util/util.d.ts} +2 -2
  215. package/build/esm/excalibur.development.js +3169 -1961
  216. package/build/esm/excalibur.js +3169 -1961
  217. package/build/esm/excalibur.min.development.js +5284 -4375
  218. package/build/esm/excalibur.min.js +5284 -4375
  219. package/eslint.config.mjs +2 -1
  220. package/package.json +16 -16
  221. package/playground/package-lock.json +407 -281
  222. package/playground/package.json +4 -4
  223. package/build/dist/Actions/ActionsSystem.d.ts +0 -12
  224. package/build/dist/Actions/index.d.ts +0 -27
  225. package/build/dist/Collision/Index.d.ts +0 -38
  226. package/build/dist/Collision/MotionSystem.d.ts +0 -17
  227. package/build/dist/Debug/index.d.ts +0 -3
  228. package/build/dist/Director/index.d.ts +0 -7
  229. package/build/dist/EntityComponentSystem/index.d.ts +0 -13
  230. package/build/dist/Graphics/index.d.ts +0 -47
  231. package/build/dist/Interfaces/Index.d.ts +0 -7
  232. package/build/dist/Particles/index.d.ts +0 -5
  233. package/build/dist/Resources/Index.d.ts +0 -4
  234. package/build/dist/Resources/Sound/Index.d.ts +0 -4
  235. package/build/dist/TileMap/IsometricEntitySystem.d.ts +0 -12
  236. package/build/dist/TileMap/index.d.ts +0 -4
  237. package/build/dist/Util/Index.d.ts +0 -6
  238. /package/build/dist/{Collision/CollisionType.d.ts → collision/collision-type.d.ts} +0 -0
  239. /package/build/dist/{Collision/Detection/SpatialPartitionStrategy.d.ts → collision/detection/spatial-partition-strategy.d.ts} +0 -0
  240. /package/build/dist/{Collision/Group/CollisionGroup.d.ts → collision/group/collision-group.d.ts} +0 -0
  241. /package/build/dist/{Collision/Solver/ContactBias.d.ts → collision/solver/contact-bias.d.ts} +0 -0
  242. /package/build/dist/{Collision/SolverStrategy.d.ts → collision/solver-strategy.d.ts} +0 -0
  243. /package/build/dist/{Context.d.ts → context.d.ts} +0 -0
  244. /package/build/dist/{Deprecated.d.ts → deprecated.d.ts} +0 -0
  245. /package/build/dist/{EntityComponentSystem/Priority.d.ts → entity-component-system/priority.d.ts} +0 -0
  246. /package/build/dist/{EntityComponentSystem/Types.d.ts → entity-component-system/types.d.ts} +0 -0
  247. /package/build/dist/{EventEmitter.d.ts → event-emitter.d.ts} +0 -0
  248. /package/build/dist/{Events/ExEvent.d.ts → events/ex-event.d.ts} +0 -0
  249. /package/build/dist/{Flags.d.ts → flags.d.ts} +0 -0
  250. /package/build/dist/{GarbageCollector.d.ts → garbage-collector.d.ts} +0 -0
  251. /package/build/dist/{Graphics/Context → graphics/context}/quad-index-buffer.d.ts +0 -0
  252. /package/build/dist/{Graphics/Context → graphics/context}/render-source.d.ts +0 -0
  253. /package/build/dist/{Graphics/Context → graphics/context}/render-target.d.ts +0 -0
  254. /package/build/dist/{Graphics/Context → graphics/context}/uniform-buffer.d.ts +0 -0
  255. /package/build/dist/{Graphics/Context → graphics/context}/vertex-buffer.d.ts +0 -0
  256. /package/build/dist/{Graphics/Context → graphics/context}/vertex-layout.d.ts +0 -0
  257. /package/build/dist/{Graphics/Context → graphics/context}/webgl-util.d.ts +0 -0
  258. /package/build/dist/{Graphics/Filtering.d.ts → graphics/filtering.d.ts} +0 -0
  259. /package/build/dist/{Graphics/GraphicsDiagnostics.d.ts → graphics/graphics-diagnostics.d.ts} +0 -0
  260. /package/build/dist/{Graphics/PostProcessor/ColorBlindnessMode.d.ts → graphics/post-processor/color-blindness-mode.d.ts} +0 -0
  261. /package/build/dist/{Graphics/Wrapping.d.ts → graphics/wrapping.d.ts} +0 -0
  262. /package/build/dist/{Id.d.ts → id.d.ts} +0 -0
  263. /package/build/dist/{Input/CapturePointerConfig.d.ts → input/capture-pointer-config.d.ts} +0 -0
  264. /package/build/dist/{Input/NativePointerButton.d.ts → input/native-pointer-button.d.ts} +0 -0
  265. /package/build/dist/{Input/PointerButton.d.ts → input/pointer-button.d.ts} +0 -0
  266. /package/build/dist/{Input/PointerScope.d.ts → input/pointer-scope.d.ts} +0 -0
  267. /package/build/dist/{Input/PointerType.d.ts → input/pointer-type.d.ts} +0 -0
  268. /package/build/dist/{Input/WheelDeltaMode.d.ts → input/wheel-delta-mode.d.ts} +0 -0
  269. /package/build/dist/{Interfaces/Audio.d.ts → interfaces/audio.d.ts} +0 -0
  270. /package/build/dist/{Interfaces/Clonable.d.ts → interfaces/clonable.d.ts} +0 -0
  271. /package/build/dist/{Interfaces/Loadable.d.ts → interfaces/loadable.d.ts} +0 -0
  272. /package/build/dist/{Math → math}/affine-matrix.d.ts +0 -0
  273. /package/build/dist/{Math → math}/bezier-curve.d.ts +0 -0
  274. /package/build/dist/{Math → math}/coord-plane.d.ts +0 -0
  275. /package/build/dist/{Math → math}/easings.d.ts +0 -0
  276. /package/build/dist/{Math → math}/lerp.d.ts +0 -0
  277. /package/build/dist/{Math → math}/line-segment.d.ts +0 -0
  278. /package/build/dist/{Math → math}/matrix.d.ts +0 -0
  279. /package/build/dist/{Math → math}/projection.d.ts +0 -0
  280. /package/build/dist/{Math/Random.d.ts → math/random.d.ts} +0 -0
  281. /package/build/dist/{Math → math}/ray.d.ts +0 -0
  282. /package/build/dist/{Math → math}/rotation-type.d.ts +0 -0
  283. /package/build/dist/{Math → math}/transform.d.ts +0 -0
  284. /package/build/dist/{Math → math}/vector-view.d.ts +0 -0
  285. /package/build/dist/{Math → math}/watch-vector.d.ts +0 -0
  286. /package/build/dist/{Particles/EmitterType.d.ts → particles/emitter-type.d.ts} +0 -0
  287. /package/build/dist/{Polyfill.d.ts → polyfill.d.ts} +0 -0
  288. /package/build/dist/{Resources/Sound/AudioContext.d.ts → resources/sound/audio-context.d.ts} +0 -0
  289. /package/build/dist/{Util/Assert.d.ts → util/assert.d.ts} +0 -0
  290. /package/build/dist/{Util/Browser.d.ts → util/browser.d.ts} +0 -0
  291. /package/build/dist/{Util/Decorators.d.ts → util/decorators.d.ts} +0 -0
  292. /package/build/dist/{Util/Detector.d.ts → util/detector.d.ts} +0 -0
  293. /package/build/dist/{Util/Fps.d.ts → util/fps.d.ts} +0 -0
  294. /package/build/dist/{Util/Future.d.ts → util/future.d.ts} +0 -0
  295. /package/build/dist/{Util/IFrame.d.ts → util/iframe.d.ts} +0 -0
  296. /package/build/dist/{Util/Observable.d.ts → util/observable.d.ts} +0 -0
  297. /package/build/dist/{Util/Pool.d.ts → util/pool.d.ts} +0 -0
  298. /package/build/dist/{Util/RentalPool.d.ts → util/rental-pool.d.ts} +0 -0
  299. /package/build/dist/{Util/Required.d.ts → util/required.d.ts} +0 -0
  300. /package/build/dist/{Util/Semaphore.d.ts → util/semaphore.d.ts} +0 -0
  301. /package/build/dist/{Util/StateMachine.d.ts → util/state-machine.d.ts} +0 -0
  302. /package/build/dist/{Util/Toaster.d.ts → util/toaster.d.ts} +0 -0
  303. /package/build/dist/{Util/Watch.d.ts → util/watch.d.ts} +0 -0
  304. /package/build/dist/{Util/WebAudio.d.ts → util/web-audio.d.ts} +0 -0
@@ -1,2 +1,3 @@
1
1
  9223608d57af6efe3205baa924c16b8f4788bd5b
2
- 3cf93825d0a90e93651f058bfd200df0c43f47db
2
+ 3cf93825d0a90e93651f058bfd200df0c43f47db
3
+ 11edff9e62a6ecc4b2dadea4eaca2645f5a86dea
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 24.11.0
1
+ 24.13.0
package/CHANGELOG.md CHANGED
@@ -7,7 +7,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
8
  ### Breaking Changes
9
9
 
10
- -
10
+ - Behavior change - TileMap now uses 'separate' as the `compositeStrategy` as a better default. Commonly TileMap is used to build levels, so this default aligns with the common use.
11
+ - Behavior change - Font/Text now render more accurately and faster be using less texture space, this unfortunately is a breaking change becuase text will render slightly different.
11
12
 
12
13
  ### Deprecated
13
14
 
@@ -15,11 +16,30 @@ This project adheres to [Semantic Versioning](http://semver.org/).
15
16
 
16
17
  ### Added
17
18
 
18
- -
19
+ - Added new lerp modes for color which can be chosen by aptional parameter in `Color.lerp` or by calling different methods:
20
+ ```typescript
21
+ Color.lerp(colorA, colorB, t); // 'hsl' by default
22
+ // eqivalent to:
23
+ Color.lerpHSL(colorA, colorB, t);
24
+
25
+ Color.lerp(colorA, colorB, t, 'rgb');
26
+ // eqivalent to:
27
+ Color.lerpRGB(colorA, colorB, t);
28
+
29
+ Color.lerp(colorA, colorB, t, 'lrgb');
30
+ // equivalent to:
31
+ Color.lerpLRGB(colorA, colorB, t);
32
+ ```
33
+ - Added `Color.fromFloatArray([0.0, 0.0, 0.0, 1.0])` and `Color.toFloatArray()`
34
+ - Sound objects can be created from `Blob`s:
35
+ ```typescript
36
+ const sound = await Sound.fromBlob(instanceOfBlob)
37
+ sound.play()
38
+ ```
19
39
 
20
40
  ### Fixed
21
41
 
22
- -
42
+ - Performance: Font/Text now use smaller texture sizes, improving performance on Safari especially when rendering text
23
43
 
24
44
  ### Updates
25
45
 
@@ -1,6 +1,6 @@
1
- import type { Entity } from '../../EntityComponentSystem';
2
- import type { Action } from '../Action';
3
- import { ActionContext } from '../ActionContext';
1
+ import type { Entity } from '../../entity-component-system';
2
+ import type { Action } from '../action';
3
+ import { ActionContext } from '../action-context';
4
4
  /**
5
5
  * Action that can represent a sequence of actions, this can be useful in conjunction with
6
6
  * {@apilink ParallelActions} to run multiple sequences in parallel.
@@ -1,5 +1,5 @@
1
- import type { Entity } from '../../EntityComponentSystem/Entity';
2
- import type { Action } from '../Action';
1
+ import type { Entity } from '../../entity-component-system/entity';
2
+ import type { Action } from '../action';
3
3
  export declare class Blink implements Action {
4
4
  id: number;
5
5
  private _graphics;
@@ -1,4 +1,4 @@
1
- import type { Action } from '../Action';
1
+ import type { Action } from '../action';
2
2
  export declare class CallMethod implements Action {
3
3
  id: number;
4
4
  private _method;
@@ -1,6 +1,6 @@
1
- import type { Entity } from '../../EntityComponentSystem';
2
- import type { Vector } from '../../Math';
3
- import type { Action } from '../Action';
1
+ import type { Entity } from '../../entity-component-system';
2
+ import type { Vector } from '../../math';
3
+ import type { Action } from '../action';
4
4
  export interface CurveByOptions {
5
5
  /**
6
6
  * Bezier Curve relative to the current actor position to move
@@ -1,6 +1,6 @@
1
- import type { Entity } from '../../EntityComponentSystem';
2
- import type { Vector } from '../../Math';
3
- import type { Action } from '../Action';
1
+ import type { Entity } from '../../entity-component-system';
2
+ import type { Vector } from '../../math';
3
+ import type { Action } from '../action';
4
4
  export interface CurveToOptions {
5
5
  /**
6
6
  * Bezier Curve in world coordinates to animate towards
@@ -1,4 +1,4 @@
1
- import type { Action } from '../Action';
1
+ import type { Action } from '../action';
2
2
  export declare class Delay implements Action {
3
3
  id: number;
4
4
  private _elapsedTime;
@@ -1,5 +1,5 @@
1
- import type { Entity } from '../../EntityComponentSystem/Entity';
2
- import type { Action } from '../Action';
1
+ import type { Entity } from '../../entity-component-system/entity';
2
+ import type { Action } from '../action';
3
3
  export declare class Die implements Action {
4
4
  id: number;
5
5
  private _entity;
@@ -1,5 +1,5 @@
1
- import type { Entity } from '../../EntityComponentSystem/Entity';
2
- import type { Action } from '../Action';
1
+ import type { Entity } from '../../entity-component-system/entity';
2
+ import type { Action } from '../action';
3
3
  /**
4
4
  * @deprecated use moveBy({offset: Vector, duration: number, easing: EasingFunction})
5
5
  */
@@ -1,5 +1,5 @@
1
- import type { Entity } from '../../EntityComponentSystem/Entity';
2
- import type { Action } from '../Action';
1
+ import type { Entity } from '../../entity-component-system/entity';
2
+ import type { Action } from '../action';
3
3
  /**
4
4
  * @deprecated use moveTo({pos: Vector, duration: number, easing: EasingFunction})
5
5
  */
@@ -1,5 +1,5 @@
1
- import type { Entity } from '../../EntityComponentSystem/Entity';
2
- import type { Action } from '../Action';
1
+ import type { Entity } from '../../entity-component-system/entity';
2
+ import type { Action } from '../action';
3
3
  export declare class Fade implements Action {
4
4
  id: number;
5
5
  private _graphics;
@@ -1,6 +1,6 @@
1
- import type { Entity } from '../../EntityComponentSystem/Entity';
2
- import type { Action } from '../Action';
3
- import type { Color } from '../../Color';
1
+ import type { Entity } from '../../entity-component-system/entity';
2
+ import type { Action } from '../action';
3
+ import type { Color } from '../../color';
4
4
  export declare class Flash implements Action {
5
5
  id: number;
6
6
  private _graphics;
@@ -1,5 +1,5 @@
1
- import type { Entity } from '../../EntityComponentSystem/Entity';
2
- import type { Action } from '../Action';
1
+ import type { Entity } from '../../entity-component-system/entity';
2
+ import type { Action } from '../action';
3
3
  export declare class Follow implements Action {
4
4
  id: number;
5
5
  private _tx;
@@ -1,5 +1,5 @@
1
- import type { Entity } from '../../EntityComponentSystem/Entity';
2
- import type { Action } from '../Action';
1
+ import type { Entity } from '../../entity-component-system/entity';
2
+ import type { Action } from '../action';
3
3
  export declare class Meet implements Action {
4
4
  id: number;
5
5
  private _tx;
@@ -1,8 +1,8 @@
1
- import type { Entity } from '../../EntityComponentSystem/Entity';
2
- import type { Easing } from '../../Math';
3
- import { Vector } from '../../Math/vector';
4
- import type { EasingFunction } from '../../Util/EasingFunctions';
5
- import type { Action } from '../Action';
1
+ import type { Entity } from '../../entity-component-system/entity';
2
+ import type { Easing } from '../../math';
3
+ import { Vector } from '../../math/vector';
4
+ import type { EasingFunction } from '../../util/easing-functions';
5
+ import type { Action } from '../action';
6
6
  export interface MoveByOptions {
7
7
  offset: Vector;
8
8
  duration: number;
@@ -1,8 +1,8 @@
1
- import type { Entity } from '../../EntityComponentSystem/Entity';
2
- import type { Easing } from '../../Math';
3
- import { Vector } from '../../Math/vector';
4
- import type { EasingFunction } from '../../Util/EasingFunctions';
5
- import type { Action } from '../Action';
1
+ import type { Entity } from '../../entity-component-system/entity';
2
+ import type { Easing } from '../../math';
3
+ import { Vector } from '../../math/vector';
4
+ import type { EasingFunction } from '../../util/easing-functions';
5
+ import type { Action } from '../action';
6
6
  export interface MoveToOptions {
7
7
  pos: Vector;
8
8
  duration: number;
@@ -1,5 +1,5 @@
1
- import type { Entity } from '../../EntityComponentSystem';
2
- import type { Action } from '../Action';
1
+ import type { Entity } from '../../entity-component-system';
2
+ import type { Action } from '../action';
3
3
  /**
4
4
  * Action that can run multiple {@apilink Action}s or {@apilink ActionSequence}s at the same time
5
5
  */
@@ -1,6 +1,6 @@
1
- import type { Entity } from '../../EntityComponentSystem/Entity';
2
- import type { Action } from '../Action';
3
- import { ActionContext } from '../ActionContext';
1
+ import type { Entity } from '../../entity-component-system/entity';
2
+ import type { Action } from '../action';
3
+ import { ActionContext } from '../action-context';
4
4
  /**
5
5
  * RepeatForever Action implementation, it is recommended you use the fluent action
6
6
  * context API.
@@ -1,6 +1,6 @@
1
- import type { Entity } from '../../EntityComponentSystem/Entity';
2
- import type { Action } from '../Action';
3
- import { ActionContext } from '../ActionContext';
1
+ import type { Entity } from '../../entity-component-system/entity';
2
+ import type { Action } from '../action';
3
+ import { ActionContext } from '../action-context';
4
4
  export declare class Repeat implements Action {
5
5
  id: number;
6
6
  private _actionQueue;
@@ -1,6 +1,6 @@
1
- import type { Action } from '../Action';
2
- import type { Entity } from '../../EntityComponentSystem/Entity';
3
- import { RotationType } from '../../Math';
1
+ import type { Action } from '../action';
2
+ import type { Entity } from '../../entity-component-system/entity';
3
+ import { RotationType } from '../../math';
4
4
  export interface RotateByOptions {
5
5
  /**
6
6
  * Angle in radians to offset from the current and rotate
@@ -1,6 +1,6 @@
1
- import type { Action } from '../Action';
2
- import { RotationType } from '../../Math';
3
- import type { Entity } from '../../EntityComponentSystem/Entity';
1
+ import type { Action } from '../action';
2
+ import { RotationType } from '../../math';
3
+ import type { Entity } from '../../entity-component-system/entity';
4
4
  export interface RotateToOptions {
5
5
  /**
6
6
  * Absolute angle to rotate to in radians
@@ -1,6 +1,6 @@
1
- import { Vector } from '../../Math/vector';
2
- import type { Entity } from '../../EntityComponentSystem/Entity';
3
- import type { Action } from '../Action';
1
+ import { Vector } from '../../math/vector';
2
+ import type { Entity } from '../../entity-component-system/entity';
3
+ import type { Action } from '../action';
4
4
  export interface ScaleByOptions {
5
5
  /**
6
6
  * Absolute scale to change to
@@ -1,6 +1,6 @@
1
- import { Vector } from '../../Math/vector';
2
- import type { Action } from '../Action';
3
- import type { Entity } from '../../EntityComponentSystem/Entity';
1
+ import { Vector } from '../../math/vector';
2
+ import type { Action } from '../action';
3
+ import type { Entity } from '../../entity-component-system/entity';
4
4
  export interface ScaleToOptions {
5
5
  /**
6
6
  * Absolute scale to change to
@@ -1,18 +1,18 @@
1
- import type { EasingFunction } from '../Util/EasingFunctions';
2
- import { ActionQueue } from './ActionQueue';
3
- import type { MoveByOptions } from './Action/MoveBy';
4
- import type { MoveToOptions } from './Action/MoveTo';
5
- import type { RotateToOptions } from './Action/RotateTo';
6
- import type { RotateByOptions } from './Action/RotateBy';
7
- import type { ScaleToOptions } from './Action/ScaleTo';
8
- import type { ScaleByOptions } from './Action/ScaleBy';
9
- import type { RotationType } from '../Math';
10
- import { Vector } from '../Math';
11
- import type { Entity } from '../EntityComponentSystem/Entity';
12
- import type { Action } from './Action';
13
- import type { Color } from '../Color';
14
- import type { CurveToOptions } from './Action/CurveTo';
15
- import type { CurveByOptions } from './Action/CurveBy';
1
+ import type { EasingFunction } from '../util/easing-functions';
2
+ import { ActionQueue } from './action-queue';
3
+ import type { MoveByOptions } from './action/move-by';
4
+ import type { MoveToOptions } from './action/move-to';
5
+ import type { RotateToOptions } from './action/rotate-to';
6
+ import type { RotateByOptions } from './action/rotate-by';
7
+ import type { ScaleToOptions } from './action/scale-to';
8
+ import type { ScaleByOptions } from './action/scale-by';
9
+ import type { RotationType } from '../math';
10
+ import { Vector } from '../math';
11
+ import type { Entity } from '../entity-component-system/entity';
12
+ import type { Action } from './action';
13
+ import type { Color } from '../color';
14
+ import type { CurveToOptions } from './action/curve-to';
15
+ import type { CurveByOptions } from './action/curve-by';
16
16
  /**
17
17
  * The fluent Action API allows you to perform "actions" on
18
18
  * {@apilink Actor | `actors`} such as following, moving, rotating, and
@@ -1,5 +1,5 @@
1
- import type { Entity } from '../EntityComponentSystem/Entity';
2
- import type { Action } from './Action';
1
+ import type { Entity } from '../entity-component-system/entity';
2
+ import type { Action } from './action';
3
3
  /**
4
4
  * Action Queues represent an ordered sequence of actions
5
5
  *
@@ -1,4 +1,4 @@
1
- import type { Entity } from '../EntityComponentSystem/Entity';
1
+ import type { Entity } from '../entity-component-system/entity';
2
2
  /**
3
3
  * Used for implementing actions for the {@apilink ActionContext | `Action API`}.
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { ActionContext } from './ActionContext';
1
+ import type { ActionContext } from './action-context';
2
2
  export interface Actionable {
3
3
  actions: ActionContext;
4
4
  }
@@ -1,17 +1,17 @@
1
- import { ActionContext } from './ActionContext';
2
- import { Component } from '../EntityComponentSystem/Component';
3
- import type { Entity } from '../EntityComponentSystem/Entity';
4
- import type { Actor } from '../Actor';
5
- import { MotionComponent } from '../EntityComponentSystem/Components/MotionComponent';
6
- import { TransformComponent } from '../EntityComponentSystem/Components/TransformComponent';
7
- import type { Vector, RotationType } from '../Math';
8
- import type { EasingFunction } from '../Util/EasingFunctions';
9
- import type { ActionQueue } from './ActionQueue';
10
- import type { Action } from './Action';
11
- import type { Color } from '../Color';
12
- import type { CurveToOptions } from './Action/CurveTo';
13
- import type { CurveByOptions } from './Action/CurveBy';
14
- import type { MoveToOptions } from './Action/MoveTo';
1
+ import { ActionContext } from './action-context';
2
+ import { Component } from '../entity-component-system/component';
3
+ import type { Entity } from '../entity-component-system/entity';
4
+ import type { Actor } from '../actor';
5
+ import { MotionComponent } from '../entity-component-system/components/motion-component';
6
+ import { TransformComponent } from '../entity-component-system/components/transform-component';
7
+ import type { Vector, RotationType } from '../math';
8
+ import type { EasingFunction } from '../util/easing-functions';
9
+ import type { ActionQueue } from './action-queue';
10
+ import type { Action } from './action';
11
+ import type { Color } from '../color';
12
+ import type { CurveToOptions } from './action/curve-to';
13
+ import type { CurveByOptions } from './action/curve-by';
14
+ import type { MoveToOptions } from './action/move-to';
15
15
  import type { MoveByOptions, RotateByOptions, RotateToOptions, ScaleByOptions, ScaleToOptions } from './index';
16
16
  export interface ActionContextMethods extends Pick<ActionContext, keyof ActionContext> {
17
17
  }
@@ -0,0 +1,13 @@
1
+ import type { Query, World } from '../entity-component-system';
2
+ import { System, SystemType } from '../entity-component-system//system';
3
+ import { PauseComponent } from '../entity-component-system/components/pause-component';
4
+ import { ActionsComponent } from './actions-component';
5
+ export declare class ActionsSystem extends System {
6
+ world: World;
7
+ static priority: -5;
8
+ systemType: SystemType;
9
+ private _actions;
10
+ query: Query<typeof ActionsComponent | typeof PauseComponent>;
11
+ constructor(world: World);
12
+ update(elapsed: number): void;
13
+ }
@@ -0,0 +1,27 @@
1
+ export * from './action-context';
2
+ export * from './action-queue';
3
+ export type * from './actionable';
4
+ export * from './action';
5
+ export * from './action/action-sequence';
6
+ export * from './action/parallel-actions';
7
+ export * from './action/repeat';
8
+ export * from './action/repeat-forever';
9
+ export * from './action/blink';
10
+ export * from './action/die';
11
+ export * from './action/ease-to';
12
+ export * from './action/ease-by';
13
+ export * from './action/fade';
14
+ export * from './action/follow';
15
+ export * from './action/meet';
16
+ export * from './action/move-by';
17
+ export * from './action/move-to';
18
+ export * from './action/rotate-by';
19
+ export * from './action/rotate-to';
20
+ export * from './action/scale-by';
21
+ export * from './action/scale-to';
22
+ export * from './action/delay';
23
+ export * from './action/flash';
24
+ export * from './action/curve-to';
25
+ export * from './action/curve-by';
26
+ export * from './actions-component';
27
+ export * from './actions-system';
@@ -1,30 +1,31 @@
1
- import type { PostCollisionEvent, PreCollisionEvent, CollisionStartEvent, CollisionEndEvent, EnterViewPortEvent, ExitViewPortEvent, PreDrawEvent, PostDrawEvent, PreDebugDrawEvent, PostDebugDrawEvent, ActionStartEvent, ActionCompleteEvent } from './Events';
2
- import { type KillEvent, PostKillEvent, PreKillEvent } from './Events';
3
- import type { Engine } from './Engine';
4
- import type { Color } from './Color';
5
- import type { CanInitialize, CanUpdate, CanBeKilled } from './Interfaces/LifecycleEvents';
6
- import type { Scene } from './Scene';
7
- import { Logger } from './Util/Log';
8
- import { Vector } from './Math/vector';
9
- import { BodyComponent } from './Collision/BodyComponent';
10
- import type { Eventable } from './Interfaces/Evented';
11
- import type { PointerEvents } from './Interfaces/PointerEventHandlers';
12
- import { CollisionType } from './Collision/CollisionType';
13
- import type { EntityEvents } from './EntityComponentSystem/Entity';
14
- import { Entity } from './EntityComponentSystem/Entity';
15
- import { TransformComponent } from './EntityComponentSystem/Components/TransformComponent';
16
- import { MotionComponent } from './EntityComponentSystem/Components/MotionComponent';
17
- import { GraphicsComponent } from './Graphics/GraphicsComponent';
18
- import { ColliderComponent } from './Collision/ColliderComponent';
19
- import type { Collider, CollisionContact, CollisionGroup, Side } from './Collision/Index';
20
- import type { PointerEvent } from './Input/PointerEvent';
21
- import type { WheelEvent } from './Input/WheelEvent';
22
- import { PointerComponent } from './Input/PointerComponent';
23
- import { ActionsComponent } from './Actions/ActionsComponent';
24
- import { CoordPlane } from './Math/coord-plane';
25
- import type { EventKey, Handler, Subscription } from './EventEmitter';
26
- import { EventEmitter } from './EventEmitter';
27
- import type { Graphic, Material } from './Graphics';
1
+ import type { PostCollisionEvent, PreCollisionEvent, CollisionStartEvent, CollisionEndEvent, EnterViewPortEvent, ExitViewPortEvent, PreDrawEvent, PostDrawEvent, PreDebugDrawEvent, PostDebugDrawEvent, ActionStartEvent, ActionCompleteEvent } from './events';
2
+ import { type KillEvent, PostKillEvent, PreKillEvent } from './events';
3
+ import type { Engine } from './engine';
4
+ import type { Color } from './color';
5
+ import type { CanInitialize, CanUpdate, CanBeKilled } from './interfaces/lifecycle-events';
6
+ import type { Scene } from './scene';
7
+ import { Logger } from './util/log';
8
+ import { Vector } from './math/vector';
9
+ import { BodyComponent } from './collision/body-component';
10
+ import type { Eventable } from './interfaces/evented';
11
+ import type { PointerEvents } from './interfaces/pointer-event-handlers';
12
+ import { CollisionType } from './collision/collision-type';
13
+ import { PauseComponent } from './entity-component-system/components/pause-component';
14
+ import type { EntityEvents } from './entity-component-system/entity';
15
+ import { Entity } from './entity-component-system/entity';
16
+ import { TransformComponent } from './entity-component-system/components/transform-component';
17
+ import { MotionComponent } from './entity-component-system/components/motion-component';
18
+ import { GraphicsComponent } from './graphics/graphics-component';
19
+ import { ColliderComponent } from './collision/collider-component';
20
+ import type { Collider, CollisionContact, CollisionGroup, Side } from './collision/index';
21
+ import type { PointerEvent } from './input/pointer-event';
22
+ import type { WheelEvent } from './input/wheel-event';
23
+ import { PointerComponent } from './input/pointer-component';
24
+ import { ActionsComponent } from './actions/actions-component';
25
+ import { CoordPlane } from './math/coord-plane';
26
+ import type { EventKey, Handler, Subscription } from './event-emitter';
27
+ import { EventEmitter } from './event-emitter';
28
+ import type { Graphic, Material } from './graphics';
28
29
  /**
29
30
  * Type guard for checking if something is an Actor
30
31
  * @param x
@@ -116,6 +117,10 @@ export type ActorArgs = ColliderArgs & {
116
117
  * Optionally supply a {@apilink CollisionGroup}
117
118
  */
118
119
  collisionGroup?: CollisionGroup;
120
+ /**
121
+ * Optionally set if the actor can be paused
122
+ */
123
+ canPause?: boolean;
119
124
  };
120
125
  type ColliderArgs = // custom collider
121
126
  {
@@ -238,6 +243,11 @@ export declare class Actor extends Entity implements Eventable, PointerEvents, C
238
243
  * acceleration, mass, inertia, etc.
239
244
  */
240
245
  body: BodyComponent;
246
+ /**
247
+ * The physics body the is associated with this actor. The body is the container for all physical properties, like position, velocity,
248
+ * acceleration, mass, inertia, etc.
249
+ */
250
+ paused: PauseComponent;
241
251
  /**
242
252
  * Access the Actor's built in {@apilink TransformComponent}
243
253
  */
@@ -336,6 +346,9 @@ export declare class Actor extends Entity implements Eventable, PointerEvents, C
336
346
  set angularVelocity(angularVelocity: number);
337
347
  get scale(): Vector;
338
348
  set scale(scale: Vector);
349
+ get canPause(): boolean;
350
+ set canPause(canPause: boolean);
351
+ get isPaused(): boolean;
339
352
  private _anchor;
340
353
  /**
341
354
  * The anchor to apply all actor related transformations like rotation,
@@ -1,15 +1,15 @@
1
- import type { Engine } from './Engine';
2
- import type { EasingFunction } from './Util/EasingFunctions';
3
- import { Vector } from './Math/vector';
4
- import type { Actor } from './Actor';
5
- import type { CanUpdate, CanInitialize } from './Interfaces/LifecycleEvents';
6
- import { PreUpdateEvent, PostUpdateEvent, InitializeEvent } from './Events';
7
- import { BoundingBox } from './Collision/BoundingBox';
8
- import type { ExcaliburGraphicsContext } from './Graphics/Context/ExcaliburGraphicsContext';
9
- import { AffineMatrix } from './Math/affine-matrix';
10
- import type { EventKey, Handler, Subscription } from './EventEmitter';
11
- import { EventEmitter } from './EventEmitter';
12
- import type { Easing } from './Math';
1
+ import type { Engine } from './engine';
2
+ import type { EasingFunction } from './util/easing-functions';
3
+ import { Vector } from './math/vector';
4
+ import type { Actor } from './actor';
5
+ import type { CanUpdate, CanInitialize } from './interfaces/lifecycle-events';
6
+ import { PreUpdateEvent, PostUpdateEvent, InitializeEvent } from './events';
7
+ import { BoundingBox } from './collision/bounding-box';
8
+ import type { ExcaliburGraphicsContext } from './graphics/context/excalibur-graphics-context';
9
+ import { AffineMatrix } from './math/affine-matrix';
10
+ import type { EventKey, Handler, Subscription } from './event-emitter';
11
+ import { EventEmitter } from './event-emitter';
12
+ import type { Easing } from './math';
13
13
  /**
14
14
  * Interface that describes a custom camera strategy for tracking targets
15
15
  */
@@ -1,22 +1,35 @@
1
- import { Vector } from '../Math/vector';
2
- import { CollisionType } from './CollisionType';
3
- import type { Clonable } from '../Interfaces/Clonable';
4
- import { TransformComponent } from '../EntityComponentSystem/Components/TransformComponent';
5
- import { MotionComponent } from '../EntityComponentSystem/Components/MotionComponent';
6
- import { Component } from '../EntityComponentSystem/Component';
7
- import { CollisionGroup } from './Group/CollisionGroup';
8
- import type { Id } from '../Id';
9
- import { Transform } from '../Math/transform';
10
- import { EventEmitter } from '../EventEmitter';
11
- import type { BodyConfig, PhysicsConfig } from './PhysicsConfig';
12
- import type { Entity } from '../EntityComponentSystem';
13
- import type { Island } from './Island';
1
+ import { Vector } from '../math/vector';
2
+ import { CollisionType } from './collision-type';
3
+ import type { Clonable } from '../interfaces/clonable';
4
+ import { TransformComponent } from '../entity-component-system/components/transform-component';
5
+ import { MotionComponent } from '../entity-component-system/components/motion-component';
6
+ import { Component } from '../entity-component-system/component';
7
+ import { CollisionGroup } from './group/collision-group';
8
+ import type { Id } from '../id';
9
+ import { Transform } from '../math/transform';
10
+ import { EventEmitter } from '../event-emitter';
11
+ import type { BodyConfig, PhysicsConfig } from './physics-config';
12
+ import type { Entity } from '../entity-component-system';
13
+ import type { Island } from './island';
14
14
  export interface BodyComponentOptions {
15
15
  type?: CollisionType;
16
16
  group?: CollisionGroup;
17
17
  useGravity?: boolean;
18
18
  config?: Pick<PhysicsConfig, 'bodies'>['bodies'];
19
19
  }
20
+ export interface BodyComponentData {
21
+ type: string;
22
+ collisionType: string;
23
+ mass: number;
24
+ bounciness: number;
25
+ friction: number;
26
+ useGravity: boolean;
27
+ collisionGroup?: string;
28
+ canSleep: boolean;
29
+ isSleeping: boolean;
30
+ limitDegreeOfFreedom: string[];
31
+ enableFixedUpdateInterpolate: boolean;
32
+ }
20
33
  export declare enum DegreeOfFreedom {
21
34
  Rotation = "rotation",
22
35
  X = "x",
@@ -254,4 +267,18 @@ export declare class BodyComponent extends Component implements Clonable<BodyCom
254
267
  */
255
268
  captureOldTransform(): void;
256
269
  clone(): BodyComponent;
270
+ serialize(): BodyComponentData;
271
+ /**
272
+ * Custom deserialization
273
+ */
274
+ deserialize(data: BodyComponentData): void;
275
+ /**
276
+ * Helper to serialize CollisionGroup
277
+ * This is simplified - you may need more complex handling
278
+ */
279
+ private _serializeCollisionGroup;
280
+ /**
281
+ * Helper to deserialize CollisionGroup
282
+ */
283
+ private _deserializeCollisionGroup;
257
284
  }