excalibur 0.25.0 → 0.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (604) hide show
  1. package/.nvmrc +1 -1
  2. package/CHANGELOG.md +49 -9
  3. package/LICENSE.md +1 -1
  4. package/README.md +8 -12
  5. package/build/dist/Actions/Action/Blink.d.ts +3 -3
  6. package/build/dist/Actions/Action/Delay.d.ts +1 -5
  7. package/build/dist/Actions/Action/Die.d.ts +3 -5
  8. package/build/dist/Actions/Action/EaseTo.d.ts +4 -2
  9. package/build/dist/Actions/Action/Fade.d.ts +3 -3
  10. package/build/dist/Actions/Action/Follow.d.ts +6 -4
  11. package/build/dist/Actions/Action/Meet.d.ts +6 -4
  12. package/build/dist/Actions/Action/MoveBy.d.ts +6 -4
  13. package/build/dist/Actions/Action/MoveTo.d.ts +6 -4
  14. package/build/dist/Actions/Action/Repeat.d.ts +2 -2
  15. package/build/dist/Actions/Action/RepeatForever.d.ts +2 -2
  16. package/build/dist/Actions/Action/RotateBy.d.ts +4 -3
  17. package/build/dist/Actions/Action/RotateTo.d.ts +4 -3
  18. package/build/dist/Actions/Action/ScaleBy.d.ts +4 -3
  19. package/build/dist/Actions/Action/ScaleTo.d.ts +4 -3
  20. package/build/dist/Actions/Action.d.ts +2 -2
  21. package/build/dist/Actions/ActionContext.d.ts +16 -10
  22. package/build/dist/Actions/ActionQueue.d.ts +3 -3
  23. package/build/dist/Actions/ActionsComponent.d.ts +236 -0
  24. package/build/dist/Actions/ActionsSystem.d.ts +9 -0
  25. package/build/dist/Actions/Index.d.ts +2 -0
  26. package/build/dist/Actor.d.ts +10 -8
  27. package/build/dist/Engine.d.ts +6 -1
  28. package/build/dist/EntityComponentSystem/EntityManager.d.ts +1 -0
  29. package/build/dist/Graphics/Animation.d.ts +64 -0
  30. package/build/dist/Graphics/Context/ExcaliburGraphicsContext.d.ts +1 -1
  31. package/build/dist/Graphics/Context/ExcaliburGraphicsContextWebGL.d.ts +6 -0
  32. package/build/dist/Graphics/GraphicsComponent.d.ts +2 -0
  33. package/build/dist/Loader.css +1 -0
  34. package/build/dist/Loader.d.ts +1 -0
  35. package/build/dist/Screen.d.ts +3 -0
  36. package/build/dist/excalibur.js +14369 -13942
  37. package/build/dist/excalibur.js.map +1 -1
  38. package/build/dist/excalibur.min.js +1 -1
  39. package/build/dist/excalibur.min.js.LICENSE.txt +1 -1
  40. package/build/dist/excalibur.min.js.map +1 -1
  41. package/build/esm/Actions/Action/Blink.d.ts +17 -0
  42. package/build/esm/Actions/Action/CallMethod.d.ts +10 -0
  43. package/build/esm/Actions/Action/Delay.d.ts +12 -0
  44. package/build/esm/Actions/Action/Die.d.ts +11 -0
  45. package/build/esm/Actions/Action/EaseTo.d.ts +21 -0
  46. package/build/esm/Actions/Action/Fade.d.ts +17 -0
  47. package/build/esm/Actions/Action/Follow.d.ts +23 -0
  48. package/build/esm/Actions/Action/Meet.d.ts +23 -0
  49. package/build/esm/Actions/Action/MoveBy.d.ts +22 -0
  50. package/build/esm/Actions/Action/MoveTo.d.ts +21 -0
  51. package/build/esm/Actions/Action/Repeat.d.ts +16 -0
  52. package/build/esm/Actions/Action/RepeatForever.d.ts +20 -0
  53. package/build/esm/Actions/Action/RotateBy.d.ts +27 -0
  54. package/build/esm/Actions/Action/RotateTo.d.ts +26 -0
  55. package/build/esm/Actions/Action/ScaleBy.d.ts +24 -0
  56. package/build/esm/Actions/Action/ScaleTo.d.ts +23 -0
  57. package/build/esm/Actions/Action.d.ts +10 -0
  58. package/build/esm/Actions/ActionContext.d.ts +219 -0
  59. package/build/esm/Actions/ActionQueue.d.ts +56 -0
  60. package/build/esm/Actions/Actionable.d.ts +4 -0
  61. package/build/esm/Actions/ActionsComponent.d.ts +236 -0
  62. package/build/esm/Actions/ActionsSystem.d.ts +9 -0
  63. package/build/{dist/Actions/Index.js → esm/Actions/Index.d.ts} +2 -1
  64. package/build/{dist/Actions/RotationType.js → esm/Actions/RotationType.d.ts} +6 -8
  65. package/build/esm/Actor.d.ts +727 -0
  66. package/build/esm/Camera.d.ts +360 -0
  67. package/build/{dist/Class.js → esm/Class.d.ts} +12 -17
  68. package/build/esm/Collision/BodyComponent.d.ts +208 -0
  69. package/build/esm/Collision/BoundingBox.d.ts +109 -0
  70. package/build/esm/Collision/ColliderComponent.d.ts +98 -0
  71. package/build/esm/Collision/Colliders/CircleCollider.d.ts +92 -0
  72. package/build/esm/Collision/Colliders/ClosestLineJumpTable.d.ts +23 -0
  73. package/build/esm/Collision/Colliders/Collider.d.ts +94 -0
  74. package/build/esm/Collision/Colliders/CollisionJumpTable.d.ts +14 -0
  75. package/build/esm/Collision/Colliders/CompositeCollider.d.ts +38 -0
  76. package/build/esm/Collision/Colliders/EdgeCollider.d.ts +112 -0
  77. package/build/esm/Collision/Colliders/PolygonCollider.d.ts +138 -0
  78. package/build/esm/Collision/Colliders/SeparatingAxis.d.ts +46 -0
  79. package/build/esm/Collision/Colliders/Shape.d.ts +54 -0
  80. package/build/esm/Collision/CollisionSystem.d.ts +26 -0
  81. package/build/{dist/Collision/CollisionType.js → esm/Collision/CollisionType.d.ts} +6 -8
  82. package/build/esm/Collision/Detection/CollisionContact.d.ts +53 -0
  83. package/build/esm/Collision/Detection/CollisionProcessor.d.ts +28 -0
  84. package/build/esm/Collision/Detection/DynamicTree.d.ts +85 -0
  85. package/build/esm/Collision/Detection/DynamicTreeCollisionProcessor.d.ts +40 -0
  86. package/build/esm/Collision/Detection/Pair.d.ts +31 -0
  87. package/build/{dist/Collision/Group/CollisionGroup.js → esm/Collision/Group/CollisionGroup.d.ts} +17 -36
  88. package/build/esm/Collision/Group/CollisionGroupManager.d.ts +30 -0
  89. package/build/{dist/Collision/Index.js → esm/Collision/Index.d.ts} +0 -1
  90. package/build/esm/Collision/Integrator.d.ts +6 -0
  91. package/build/esm/Collision/MotionSystem.d.ts +11 -0
  92. package/build/esm/Collision/Physics.d.ts +133 -0
  93. package/build/esm/Collision/Side.d.ts +21 -0
  94. package/build/esm/Collision/Solver/ArcadeSolver.d.ts +15 -0
  95. package/build/esm/Collision/Solver/ContactConstraintPoint.d.ts +43 -0
  96. package/build/esm/Collision/Solver/RealisticSolver.d.ts +21 -0
  97. package/build/esm/Collision/Solver/Solver.d.ts +50 -0
  98. package/build/esm/Color.d.ts +244 -0
  99. package/build/esm/Configurable.d.ts +9 -0
  100. package/build/esm/Debug/Debug.d.ts +327 -0
  101. package/build/esm/Debug/DebugFlags.d.ts +11 -0
  102. package/build/esm/Debug/DebugSystem.d.ts +29 -0
  103. package/build/{dist/Debug/index.js → esm/Debug/index.d.ts} +0 -1
  104. package/build/esm/Deprecated.d.ts +0 -0
  105. package/build/esm/Drawing/Animation.d.ts +196 -0
  106. package/build/esm/Drawing/CanvasDrawComponent.d.ts +10 -0
  107. package/build/esm/Drawing/CanvasDrawingSystem.d.ts +23 -0
  108. package/build/esm/Drawing/Index.d.ts +9 -0
  109. package/build/esm/Drawing/Polygon.d.ts +74 -0
  110. package/build/esm/Drawing/Sprite.d.ts +159 -0
  111. package/build/esm/Drawing/SpriteEffects.d.ts +120 -0
  112. package/build/esm/Drawing/SpriteSheet.d.ts +184 -0
  113. package/build/esm/Drawing/Texture.d.ts +44 -0
  114. package/build/esm/Engine.d.ts +586 -0
  115. package/build/esm/EntityComponentSystem/Component.d.ts +69 -0
  116. package/build/esm/EntityComponentSystem/Components/MotionComponent.d.ts +55 -0
  117. package/build/esm/EntityComponentSystem/Components/TransformComponent.d.ts +103 -0
  118. package/build/esm/EntityComponentSystem/Entity.d.ts +247 -0
  119. package/build/esm/EntityComponentSystem/EntityManager.d.ts +35 -0
  120. package/build/esm/EntityComponentSystem/Query.d.ts +51 -0
  121. package/build/esm/EntityComponentSystem/QueryManager.d.ts +48 -0
  122. package/build/esm/EntityComponentSystem/System.d.ts +107 -0
  123. package/build/esm/EntityComponentSystem/SystemManager.d.ts +45 -0
  124. package/build/esm/EntityComponentSystem/Util.d.ts +1 -0
  125. package/build/esm/EntityComponentSystem/World.d.ts +45 -0
  126. package/build/{dist/EntityComponentSystem/index.js → esm/EntityComponentSystem/index.d.ts} +0 -1
  127. package/build/esm/EventDispatcher.d.ts +51 -0
  128. package/build/esm/Events/MediaEvents.d.ts +47 -0
  129. package/build/esm/Events.d.ts +475 -0
  130. package/build/esm/Flags.d.ts +62 -0
  131. package/build/esm/Graphics/Animation.d.ts +189 -0
  132. package/build/esm/Graphics/Canvas.d.ts +24 -0
  133. package/build/esm/Graphics/Circle.d.ts +15 -0
  134. package/build/esm/Graphics/Context/ExcaliburGraphicsContext.d.ts +155 -0
  135. package/build/esm/Graphics/Context/ExcaliburGraphicsContext2DCanvas.d.ts +87 -0
  136. package/build/esm/Graphics/Context/ExcaliburGraphicsContextWebGL.d.ts +111 -0
  137. package/build/esm/Graphics/Context/batch.d.ts +11 -0
  138. package/build/esm/Graphics/Context/debug-text.d.ts +24 -0
  139. package/build/esm/Graphics/Context/draw-image-command.d.ts +47 -0
  140. package/build/esm/Graphics/Context/image-renderer.d.ts +39 -0
  141. package/build/esm/Graphics/Context/line-renderer.d.ts +22 -0
  142. package/build/esm/Graphics/Context/point-renderer.d.ts +22 -0
  143. package/build/esm/Graphics/Context/renderer.d.ts +66 -0
  144. package/build/esm/Graphics/Context/shader.d.ts +81 -0
  145. package/build/esm/Graphics/Context/state-stack.d.ts +10 -0
  146. package/build/esm/Graphics/Context/texture-loader.d.ts +33 -0
  147. package/build/esm/Graphics/Context/transform-stack.d.ts +12 -0
  148. package/build/esm/Graphics/Context/webgl-util.d.ts +12 -0
  149. package/build/esm/Graphics/Font.d.ts +57 -0
  150. package/build/{dist/Graphics/FontCommon.js → esm/Graphics/FontCommon.d.ts} +54 -37
  151. package/build/esm/Graphics/Graphic.d.ts +129 -0
  152. package/build/esm/Graphics/GraphicsComponent.d.ts +224 -0
  153. package/build/esm/Graphics/GraphicsDiagnostics.d.ts +5 -0
  154. package/build/esm/Graphics/GraphicsGroup.d.ts +24 -0
  155. package/build/esm/Graphics/GraphicsSystem.d.ts +35 -0
  156. package/build/esm/Graphics/ImageSource.d.ts +53 -0
  157. package/build/esm/Graphics/Polygon.d.ts +17 -0
  158. package/build/esm/Graphics/Raster.d.ts +105 -0
  159. package/build/esm/Graphics/Rectangle.d.ts +13 -0
  160. package/build/esm/Graphics/Sprite.d.ts +59 -0
  161. package/build/esm/Graphics/SpriteFont.d.ts +53 -0
  162. package/build/esm/Graphics/SpriteSheet.d.ts +137 -0
  163. package/build/esm/Graphics/Text.d.ts +29 -0
  164. package/build/{dist/Graphics/index.js → esm/Graphics/index.d.ts} +0 -4
  165. package/build/esm/Id.d.ts +8 -0
  166. package/build/esm/Input/CapturePointerConfig.d.ts +13 -0
  167. package/build/esm/Input/EngineInput.d.ts +8 -0
  168. package/build/esm/Input/Gamepad.d.ts +227 -0
  169. package/build/{dist/Input/Index.js → esm/Input/Index.d.ts} +0 -1
  170. package/build/esm/Input/Keyboard.d.ts +187 -0
  171. package/build/esm/Input/Pointer.d.ts +134 -0
  172. package/build/esm/Input/PointerEvents.d.ts +170 -0
  173. package/build/esm/Input/Pointers.d.ts +78 -0
  174. package/build/esm/Interfaces/Audio.d.ts +29 -0
  175. package/build/esm/Interfaces/AudioImplementation.d.ts +25 -0
  176. package/build/esm/Interfaces/Clonable.d.ts +3 -0
  177. package/build/esm/Interfaces/Drawable.d.ts +97 -0
  178. package/build/esm/Interfaces/Evented.d.ts +31 -0
  179. package/build/{dist/Interfaces/Index.js → esm/Interfaces/Index.d.ts} +0 -1
  180. package/build/esm/Interfaces/LifecycleEvents.d.ts +167 -0
  181. package/build/esm/Interfaces/Loadable.d.ts +18 -0
  182. package/build/esm/Interfaces/PointerEventHandlers.d.ts +40 -0
  183. package/build/esm/Interfaces/Trait.d.ts +9 -0
  184. package/build/esm/Label.d.ts +146 -0
  185. package/build/esm/Loader.d.ts +174 -0
  186. package/build/{dist/Math/Index.js → esm/Math/Index.d.ts} +0 -1
  187. package/build/esm/Math/Random.d.ts +125 -0
  188. package/build/esm/Math/global-coordinates.d.ts +10 -0
  189. package/build/esm/Math/line.d.ts +95 -0
  190. package/build/esm/Math/matrix.d.ts +110 -0
  191. package/build/esm/Math/projection.d.ts +10 -0
  192. package/build/esm/Math/ray.d.ts +25 -0
  193. package/build/esm/Math/vector-view.d.ts +18 -0
  194. package/build/esm/Math/vector.d.ts +201 -0
  195. package/build/esm/Particles.d.ts +244 -0
  196. package/build/esm/Polyfill.d.ts +6 -0
  197. package/build/esm/PostProcessing/ColorBlindCorrector.d.ts +28 -0
  198. package/build/{dist/PostProcessing/Index.js → esm/PostProcessing/Index.d.ts} +0 -1
  199. package/build/esm/PostProcessing/PostProcessor.d.ts +6 -0
  200. package/build/esm/Promises.d.ts +87 -0
  201. package/build/esm/Resources/Gif.d.ts +117 -0
  202. package/build/{dist/Resources/Index.js → esm/Resources/Index.d.ts} +0 -1
  203. package/build/esm/Resources/Resource.d.ts +31 -0
  204. package/build/esm/Resources/Sound/AudioContext.d.ts +7 -0
  205. package/build/{dist/Resources/Sound/Index.js → esm/Resources/Sound/Index.d.ts} +0 -1
  206. package/build/esm/Resources/Sound/Sound.d.ts +79 -0
  207. package/build/esm/Resources/Sound/WebAudioInstance.d.ts +45 -0
  208. package/build/esm/Scene.d.ts +301 -0
  209. package/build/esm/Screen.d.ts +285 -0
  210. package/build/esm/ScreenElement.d.ts +13 -0
  211. package/build/esm/TileMap.d.ts +222 -0
  212. package/build/esm/Timer.d.ts +93 -0
  213. package/build/esm/Traits/CapturePointer.d.ts +10 -0
  214. package/build/{dist/Traits/Index.js → esm/Traits/Index.d.ts} +0 -1
  215. package/build/esm/Traits/OffscreenCulling.d.ts +11 -0
  216. package/build/esm/Trigger.d.ts +48 -0
  217. package/build/esm/Util/Actors.d.ts +12 -0
  218. package/build/esm/Util/Browser.d.ts +28 -0
  219. package/build/esm/Util/CullingBox.d.ts +23 -0
  220. package/build/esm/Util/Decorators.d.ts +15 -0
  221. package/build/esm/Util/Detector.d.ts +40 -0
  222. package/build/esm/Util/DrawUtil.d.ts +69 -0
  223. package/build/esm/Util/EasingFunctions.d.ts +59 -0
  224. package/build/{dist/Util/Index.js → esm/Util/Index.d.ts} +0 -1
  225. package/build/esm/Util/Log.d.ts +109 -0
  226. package/build/esm/Util/Observable.d.ts +55 -0
  227. package/build/esm/Util/Pool.d.ts +44 -0
  228. package/build/esm/Util/SortedList.d.ts +52 -0
  229. package/build/esm/Util/Sound.d.ts +4 -0
  230. package/build/esm/Util/Util.d.ts +196 -0
  231. package/build/esm/Util/Watch.d.ts +8 -0
  232. package/build/esm/Util/WebAudio.d.ts +15 -0
  233. package/build/esm/excalibur.d.ts +2 -0
  234. package/build/esm/excalibur.js +28874 -0
  235. package/build/esm/excalibur.js.map +1 -0
  236. package/build/esm/excalibur.min.js +3 -0
  237. package/build/esm/excalibur.min.js.LICENSE.txt +7 -0
  238. package/build/esm/excalibur.min.js.map +1 -0
  239. package/build/{dist/index.js → esm/index.d.ts} +4 -18
  240. package/package.json +31 -25
  241. package/wallaby.js +2 -0
  242. package/build/dist/Actions/Action/Blink.js +0 -45
  243. package/build/dist/Actions/Action/Blink.js.map +0 -1
  244. package/build/dist/Actions/Action/CallMethod.js +0 -21
  245. package/build/dist/Actions/Action/CallMethod.js.map +0 -1
  246. package/build/dist/Actions/Action/Delay.js +0 -28
  247. package/build/dist/Actions/Action/Delay.js.map +0 -1
  248. package/build/dist/Actions/Action/Die.js +0 -21
  249. package/build/dist/Actions/Action/Die.js.map +0 -1
  250. package/build/dist/Actions/Action/EaseTo.js +0 -66
  251. package/build/dist/Actions/Action/EaseTo.js.map +0 -1
  252. package/build/dist/Actions/Action/Fade.js +0 -42
  253. package/build/dist/Actions/Action/Fade.js.map +0 -1
  254. package/build/dist/Actions/Action/Follow.js +0 -51
  255. package/build/dist/Actions/Action/Follow.js.map +0 -1
  256. package/build/dist/Actions/Action/Meet.js +0 -48
  257. package/build/dist/Actions/Action/Meet.js.map +0 -1
  258. package/build/dist/Actions/Action/MoveBy.js +0 -42
  259. package/build/dist/Actions/Action/MoveBy.js.map +0 -1
  260. package/build/dist/Actions/Action/MoveTo.js +0 -35
  261. package/build/dist/Actions/Action/MoveTo.js.map +0 -1
  262. package/build/dist/Actions/Action/Repeat.js +0 -31
  263. package/build/dist/Actions/Action/Repeat.js.map +0 -1
  264. package/build/dist/Actions/Action/RepeatForever.js +0 -37
  265. package/build/dist/Actions/Action/RepeatForever.js.map +0 -1
  266. package/build/dist/Actions/Action/RotateBy.js +0 -88
  267. package/build/dist/Actions/Action/RotateBy.js.map +0 -1
  268. package/build/dist/Actions/Action/RotateTo.js +0 -87
  269. package/build/dist/Actions/Action/RotateTo.js.map +0 -1
  270. package/build/dist/Actions/Action/ScaleBy.js +0 -47
  271. package/build/dist/Actions/Action/ScaleBy.js.map +0 -1
  272. package/build/dist/Actions/Action/ScaleTo.js +0 -58
  273. package/build/dist/Actions/Action/ScaleTo.js.map +0 -1
  274. package/build/dist/Actions/Action.js +0 -2
  275. package/build/dist/Actions/Action.js.map +0 -1
  276. package/build/dist/Actions/ActionContext.js +0 -297
  277. package/build/dist/Actions/ActionContext.js.map +0 -1
  278. package/build/dist/Actions/ActionQueue.js +0 -87
  279. package/build/dist/Actions/ActionQueue.js.map +0 -1
  280. package/build/dist/Actions/Actionable.js +0 -2
  281. package/build/dist/Actions/Actionable.js.map +0 -1
  282. package/build/dist/Actions/Index.js.map +0 -1
  283. package/build/dist/Actions/RotationType.js.map +0 -1
  284. package/build/dist/Actor.js +0 -856
  285. package/build/dist/Actor.js.map +0 -1
  286. package/build/dist/Camera.js +0 -627
  287. package/build/dist/Camera.js.map +0 -1
  288. package/build/dist/Class.js.map +0 -1
  289. package/build/dist/Collision/BodyComponent.js +0 -347
  290. package/build/dist/Collision/BodyComponent.js.map +0 -1
  291. package/build/dist/Collision/BoundingBox.js +0 -355
  292. package/build/dist/Collision/BoundingBox.js.map +0 -1
  293. package/build/dist/Collision/ColliderComponent.js +0 -201
  294. package/build/dist/Collision/ColliderComponent.js.map +0 -1
  295. package/build/dist/Collision/Colliders/CircleCollider.js +0 -215
  296. package/build/dist/Collision/Colliders/CircleCollider.js.map +0 -1
  297. package/build/dist/Collision/Colliders/ClosestLineJumpTable.js +0 -211
  298. package/build/dist/Collision/Colliders/ClosestLineJumpTable.js.map +0 -1
  299. package/build/dist/Collision/Colliders/Collider.js +0 -26
  300. package/build/dist/Collision/Colliders/Collider.js.map +0 -1
  301. package/build/dist/Collision/Colliders/CollisionJumpTable.js +0 -301
  302. package/build/dist/Collision/Colliders/CollisionJumpTable.js.map +0 -1
  303. package/build/dist/Collision/Colliders/CompositeCollider.js +0 -232
  304. package/build/dist/Collision/Colliders/CompositeCollider.js.map +0 -1
  305. package/build/dist/Collision/Colliders/EdgeCollider.js +0 -253
  306. package/build/dist/Collision/Colliders/EdgeCollider.js.map +0 -1
  307. package/build/dist/Collision/Colliders/PolygonCollider.js +0 -389
  308. package/build/dist/Collision/Colliders/PolygonCollider.js.map +0 -1
  309. package/build/dist/Collision/Colliders/SeparatingAxis.js +0 -67
  310. package/build/dist/Collision/Colliders/SeparatingAxis.js.map +0 -1
  311. package/build/dist/Collision/Colliders/Shape.js +0 -102
  312. package/build/dist/Collision/Colliders/Shape.js.map +0 -1
  313. package/build/dist/Collision/CollisionSystem.js +0 -116
  314. package/build/dist/Collision/CollisionSystem.js.map +0 -1
  315. package/build/dist/Collision/CollisionType.js.map +0 -1
  316. package/build/dist/Collision/Detection/CollisionContact.js +0 -46
  317. package/build/dist/Collision/Detection/CollisionContact.js.map +0 -1
  318. package/build/dist/Collision/Detection/CollisionProcessor.js +0 -2
  319. package/build/dist/Collision/Detection/CollisionProcessor.js.map +0 -1
  320. package/build/dist/Collision/Detection/DynamicTree.js +0 -442
  321. package/build/dist/Collision/Detection/DynamicTree.js.map +0 -1
  322. package/build/dist/Collision/Detection/DynamicTreeCollisionProcessor.js +0 -228
  323. package/build/dist/Collision/Detection/DynamicTreeCollisionProcessor.js.map +0 -1
  324. package/build/dist/Collision/Detection/Pair.js +0 -74
  325. package/build/dist/Collision/Detection/Pair.js.map +0 -1
  326. package/build/dist/Collision/Group/CollisionGroup.js.map +0 -1
  327. package/build/dist/Collision/Group/CollisionGroupManager.js +0 -52
  328. package/build/dist/Collision/Group/CollisionGroupManager.js.map +0 -1
  329. package/build/dist/Collision/Index.js.map +0 -1
  330. package/build/dist/Collision/Integrator.js +0 -11
  331. package/build/dist/Collision/Integrator.js.map +0 -1
  332. package/build/dist/Collision/MotionSystem.js +0 -38
  333. package/build/dist/Collision/MotionSystem.js.map +0 -1
  334. package/build/dist/Collision/Physics.js +0 -163
  335. package/build/dist/Collision/Physics.js.map +0 -1
  336. package/build/dist/Collision/Side.js +0 -51
  337. package/build/dist/Collision/Side.js.map +0 -1
  338. package/build/dist/Collision/Solver/ArcadeSolver.js +0 -96
  339. package/build/dist/Collision/Solver/ArcadeSolver.js.map +0 -1
  340. package/build/dist/Collision/Solver/ContactConstraintPoint.js +0 -83
  341. package/build/dist/Collision/Solver/ContactConstraintPoint.js.map +0 -1
  342. package/build/dist/Collision/Solver/RealisticSolver.js +0 -248
  343. package/build/dist/Collision/Solver/RealisticSolver.js.map +0 -1
  344. package/build/dist/Collision/Solver/Solver.js +0 -37
  345. package/build/dist/Collision/Solver/Solver.js.map +0 -1
  346. package/build/dist/Color.js +0 -461
  347. package/build/dist/Color.js.map +0 -1
  348. package/build/dist/Configurable.js +0 -32
  349. package/build/dist/Configurable.js.map +0 -1
  350. package/build/dist/Debug/Debug.js +0 -339
  351. package/build/dist/Debug/Debug.js.map +0 -1
  352. package/build/dist/Debug/DebugFlags.js +0 -13
  353. package/build/dist/Debug/DebugFlags.js.map +0 -1
  354. package/build/dist/Debug/DebugSystem.js +0 -242
  355. package/build/dist/Debug/DebugSystem.js.map +0 -1
  356. package/build/dist/Debug/index.js.map +0 -1
  357. package/build/dist/Deprecated.js +0 -2
  358. package/build/dist/Deprecated.js.map +0 -1
  359. package/build/dist/Drawing/Animation.js +0 -285
  360. package/build/dist/Drawing/Animation.js.map +0 -1
  361. package/build/dist/Drawing/CanvasDrawComponent.js +0 -16
  362. package/build/dist/Drawing/CanvasDrawComponent.js.map +0 -1
  363. package/build/dist/Drawing/CanvasDrawingSystem.js +0 -95
  364. package/build/dist/Drawing/CanvasDrawingSystem.js.map +0 -1
  365. package/build/dist/Drawing/Index.js +0 -10
  366. package/build/dist/Drawing/Index.js.map +0 -1
  367. package/build/dist/Drawing/Polygon.js +0 -129
  368. package/build/dist/Drawing/Polygon.js.map +0 -1
  369. package/build/dist/Drawing/Sprite.js +0 -356
  370. package/build/dist/Drawing/Sprite.js.map +0 -1
  371. package/build/dist/Drawing/SpriteEffects.js +0 -246
  372. package/build/dist/Drawing/SpriteEffects.js.map +0 -1
  373. package/build/dist/Drawing/SpriteSheet.js +0 -413
  374. package/build/dist/Drawing/SpriteSheet.js.map +0 -1
  375. package/build/dist/Drawing/Texture.js +0 -80
  376. package/build/dist/Drawing/Texture.js.map +0 -1
  377. package/build/dist/Engine.js +0 -871
  378. package/build/dist/Engine.js.map +0 -1
  379. package/build/dist/EntityComponentSystem/Component.js +0 -65
  380. package/build/dist/EntityComponentSystem/Component.js.map +0 -1
  381. package/build/dist/EntityComponentSystem/Components/MotionComponent.js +0 -33
  382. package/build/dist/EntityComponentSystem/Components/MotionComponent.js.map +0 -1
  383. package/build/dist/EntityComponentSystem/Components/TransformComponent.js +0 -249
  384. package/build/dist/EntityComponentSystem/Components/TransformComponent.js.map +0 -1
  385. package/build/dist/EntityComponentSystem/Entity.js +0 -452
  386. package/build/dist/EntityComponentSystem/Entity.js.map +0 -1
  387. package/build/dist/EntityComponentSystem/EntityManager.js +0 -121
  388. package/build/dist/EntityComponentSystem/EntityManager.js.map +0 -1
  389. package/build/dist/EntityComponentSystem/Query.js +0 -91
  390. package/build/dist/EntityComponentSystem/Query.js.map +0 -1
  391. package/build/dist/EntityComponentSystem/QueryManager.js +0 -90
  392. package/build/dist/EntityComponentSystem/QueryManager.js.map +0 -1
  393. package/build/dist/EntityComponentSystem/System.js +0 -76
  394. package/build/dist/EntityComponentSystem/System.js.map +0 -1
  395. package/build/dist/EntityComponentSystem/SystemManager.js +0 -96
  396. package/build/dist/EntityComponentSystem/SystemManager.js.map +0 -1
  397. package/build/dist/EntityComponentSystem/Util.js +0 -5
  398. package/build/dist/EntityComponentSystem/Util.js.map +0 -1
  399. package/build/dist/EntityComponentSystem/World.js +0 -55
  400. package/build/dist/EntityComponentSystem/World.js.map +0 -1
  401. package/build/dist/EntityComponentSystem/index.js.map +0 -1
  402. package/build/dist/EventDispatcher.js +0 -133
  403. package/build/dist/EventDispatcher.js.map +0 -1
  404. package/build/dist/Events/MediaEvents.js +0 -75
  405. package/build/dist/Events/MediaEvents.js.map +0 -1
  406. package/build/dist/Events.js +0 -497
  407. package/build/dist/Events.js.map +0 -1
  408. package/build/dist/Flags.js +0 -90
  409. package/build/dist/Flags.js.map +0 -1
  410. package/build/dist/Graphics/Animation.js +0 -230
  411. package/build/dist/Graphics/Animation.js.map +0 -1
  412. package/build/dist/Graphics/Canvas.js +0 -34
  413. package/build/dist/Graphics/Canvas.js.map +0 -1
  414. package/build/dist/Graphics/Circle.js +0 -39
  415. package/build/dist/Graphics/Circle.js.map +0 -1
  416. package/build/dist/Graphics/Context/ExcaliburGraphicsContext.js +0 -2
  417. package/build/dist/Graphics/Context/ExcaliburGraphicsContext.js.map +0 -1
  418. package/build/dist/Graphics/Context/ExcaliburGraphicsContext2DCanvas.js +0 -177
  419. package/build/dist/Graphics/Context/ExcaliburGraphicsContext2DCanvas.js.map +0 -1
  420. package/build/dist/Graphics/Context/ExcaliburGraphicsContextWebGL.js +0 -188
  421. package/build/dist/Graphics/Context/ExcaliburGraphicsContextWebGL.js.map +0 -1
  422. package/build/dist/Graphics/Context/batch.js +0 -24
  423. package/build/dist/Graphics/Context/batch.js.map +0 -1
  424. package/build/dist/Graphics/Context/debug-text.js +0 -47
  425. package/build/dist/Graphics/Context/debug-text.js.map +0 -1
  426. package/build/dist/Graphics/Context/draw-image-command.js +0 -179
  427. package/build/dist/Graphics/Context/draw-image-command.js.map +0 -1
  428. package/build/dist/Graphics/Context/image-renderer.js +0 -295
  429. package/build/dist/Graphics/Context/image-renderer.js.map +0 -1
  430. package/build/dist/Graphics/Context/line-renderer.js +0 -70
  431. package/build/dist/Graphics/Context/line-renderer.js.map +0 -1
  432. package/build/dist/Graphics/Context/point-renderer.js +0 -67
  433. package/build/dist/Graphics/Context/point-renderer.js.map +0 -1
  434. package/build/dist/Graphics/Context/renderer.js +0 -75
  435. package/build/dist/Graphics/Context/renderer.js.map +0 -1
  436. package/build/dist/Graphics/Context/shader.js +0 -189
  437. package/build/dist/Graphics/Context/shader.js.map +0 -1
  438. package/build/dist/Graphics/Context/state-stack.js +0 -27
  439. package/build/dist/Graphics/Context/state-stack.js.map +0 -1
  440. package/build/dist/Graphics/Context/texture-loader.js +0 -84
  441. package/build/dist/Graphics/Context/texture-loader.js.map +0 -1
  442. package/build/dist/Graphics/Context/transform-stack.js +0 -30
  443. package/build/dist/Graphics/Context/transform-stack.js.map +0 -1
  444. package/build/dist/Graphics/Context/webgl-util.js +0 -26
  445. package/build/dist/Graphics/Context/webgl-util.js.map +0 -1
  446. package/build/dist/Graphics/Font.js +0 -209
  447. package/build/dist/Graphics/Font.js.map +0 -1
  448. package/build/dist/Graphics/FontCommon.js.map +0 -1
  449. package/build/dist/Graphics/Graphic.js +0 -147
  450. package/build/dist/Graphics/Graphic.js.map +0 -1
  451. package/build/dist/Graphics/GraphicsComponent.js +0 -276
  452. package/build/dist/Graphics/GraphicsComponent.js.map +0 -1
  453. package/build/dist/Graphics/GraphicsDiagnostics.js +0 -9
  454. package/build/dist/Graphics/GraphicsDiagnostics.js.map +0 -1
  455. package/build/dist/Graphics/GraphicsGroup.js +0 -66
  456. package/build/dist/Graphics/GraphicsGroup.js.map +0 -1
  457. package/build/dist/Graphics/GraphicsSystem.js +0 -161
  458. package/build/dist/Graphics/GraphicsSystem.js.map +0 -1
  459. package/build/dist/Graphics/ImageSource.js +0 -117
  460. package/build/dist/Graphics/ImageSource.js.map +0 -1
  461. package/build/dist/Graphics/Polygon.js +0 -51
  462. package/build/dist/Graphics/Polygon.js.map +0 -1
  463. package/build/dist/Graphics/Raster.js +0 -209
  464. package/build/dist/Graphics/Raster.js.map +0 -1
  465. package/build/dist/Graphics/Rectangle.js +0 -24
  466. package/build/dist/Graphics/Rectangle.js.map +0 -1
  467. package/build/dist/Graphics/Sprite.js +0 -81
  468. package/build/dist/Graphics/Sprite.js.map +0 -1
  469. package/build/dist/Graphics/SpriteFont.js +0 -116
  470. package/build/dist/Graphics/SpriteFont.js.map +0 -1
  471. package/build/dist/Graphics/SpriteSheet.js +0 -116
  472. package/build/dist/Graphics/SpriteSheet.js.map +0 -1
  473. package/build/dist/Graphics/Text.js +0 -82
  474. package/build/dist/Graphics/Text.js.map +0 -1
  475. package/build/dist/Graphics/index.js.map +0 -1
  476. package/build/dist/Id.js +0 -8
  477. package/build/dist/Id.js.map +0 -1
  478. package/build/dist/Input/CapturePointerConfig.js +0 -5
  479. package/build/dist/Input/CapturePointerConfig.js.map +0 -1
  480. package/build/dist/Input/EngineInput.js +0 -2
  481. package/build/dist/Input/EngineInput.js.map +0 -1
  482. package/build/dist/Input/Gamepad.js +0 -358
  483. package/build/dist/Input/Gamepad.js.map +0 -1
  484. package/build/dist/Input/Index.js.map +0 -1
  485. package/build/dist/Input/Keyboard.js +0 -267
  486. package/build/dist/Input/Keyboard.js.map +0 -1
  487. package/build/dist/Input/Pointer.js +0 -205
  488. package/build/dist/Input/Pointer.js.map +0 -1
  489. package/build/dist/Input/PointerEvents.js +0 -309
  490. package/build/dist/Input/PointerEvents.js.map +0 -1
  491. package/build/dist/Input/Pointers.js +0 -405
  492. package/build/dist/Input/Pointers.js.map +0 -1
  493. package/build/dist/Interfaces/Audio.js +0 -2
  494. package/build/dist/Interfaces/Audio.js.map +0 -1
  495. package/build/dist/Interfaces/AudioImplementation.js +0 -11
  496. package/build/dist/Interfaces/AudioImplementation.js.map +0 -1
  497. package/build/dist/Interfaces/Clonable.js +0 -2
  498. package/build/dist/Interfaces/Clonable.js.map +0 -1
  499. package/build/dist/Interfaces/Drawable.js +0 -2
  500. package/build/dist/Interfaces/Drawable.js.map +0 -1
  501. package/build/dist/Interfaces/Evented.js +0 -2
  502. package/build/dist/Interfaces/Evented.js.map +0 -1
  503. package/build/dist/Interfaces/Index.js.map +0 -1
  504. package/build/dist/Interfaces/LifecycleEvents.js +0 -51
  505. package/build/dist/Interfaces/LifecycleEvents.js.map +0 -1
  506. package/build/dist/Interfaces/Loadable.js +0 -2
  507. package/build/dist/Interfaces/Loadable.js.map +0 -1
  508. package/build/dist/Interfaces/PointerEventHandlers.js +0 -2
  509. package/build/dist/Interfaces/PointerEventHandlers.js.map +0 -1
  510. package/build/dist/Interfaces/Trait.js +0 -2
  511. package/build/dist/Interfaces/Trait.js.map +0 -1
  512. package/build/dist/Label.js +0 -262
  513. package/build/dist/Label.js.map +0 -1
  514. package/build/dist/Loader.js +0 -344
  515. package/build/dist/Loader.js.map +0 -1
  516. package/build/dist/Math/Index.js.map +0 -1
  517. package/build/dist/Math/Random.js +0 -239
  518. package/build/dist/Math/Random.js.map +0 -1
  519. package/build/dist/Math/global-coordinates.js +0 -30
  520. package/build/dist/Math/global-coordinates.js.map +0 -1
  521. package/build/dist/Math/line.js +0 -194
  522. package/build/dist/Math/line.js.map +0 -1
  523. package/build/dist/Math/matrix.js +0 -425
  524. package/build/dist/Math/matrix.js.map +0 -1
  525. package/build/dist/Math/projection.js +0 -24
  526. package/build/dist/Math/projection.js.map +0 -1
  527. package/build/dist/Math/ray.js +0 -52
  528. package/build/dist/Math/ray.js.map +0 -1
  529. package/build/dist/Math/vector-view.js +0 -25
  530. package/build/dist/Math/vector-view.js.map +0 -1
  531. package/build/dist/Math/vector.js +0 -326
  532. package/build/dist/Math/vector.js.map +0 -1
  533. package/build/dist/Particles.js +0 -436
  534. package/build/dist/Particles.js.map +0 -1
  535. package/build/dist/Polyfill.js +0 -56
  536. package/build/dist/Polyfill.js.map +0 -1
  537. package/build/dist/PostProcessing/ColorBlindCorrector.js +0 -193
  538. package/build/dist/PostProcessing/ColorBlindCorrector.js.map +0 -1
  539. package/build/dist/PostProcessing/Index.js.map +0 -1
  540. package/build/dist/PostProcessing/PostProcessor.js +0 -2
  541. package/build/dist/PostProcessing/PostProcessor.js.map +0 -1
  542. package/build/dist/Promises.js +0 -205
  543. package/build/dist/Promises.js.map +0 -1
  544. package/build/dist/Resources/Gif.js +0 -490
  545. package/build/dist/Resources/Gif.js.map +0 -1
  546. package/build/dist/Resources/Index.js.map +0 -1
  547. package/build/dist/Resources/Resource.js +0 -74
  548. package/build/dist/Resources/Resource.js.map +0 -1
  549. package/build/dist/Resources/Sound/AudioContext.js +0 -16
  550. package/build/dist/Resources/Sound/AudioContext.js.map +0 -1
  551. package/build/dist/Resources/Sound/Index.js.map +0 -1
  552. package/build/dist/Resources/Sound/Sound.js +0 -257
  553. package/build/dist/Resources/Sound/Sound.js.map +0 -1
  554. package/build/dist/Resources/Sound/WebAudioInstance.js +0 -160
  555. package/build/dist/Resources/Sound/WebAudioInstance.js.map +0 -1
  556. package/build/dist/Scene.js +0 -443
  557. package/build/dist/Scene.js.map +0 -1
  558. package/build/dist/Screen.js +0 -611
  559. package/build/dist/Screen.js.map +0 -1
  560. package/build/dist/ScreenElement.js +0 -33
  561. package/build/dist/ScreenElement.js.map +0 -1
  562. package/build/dist/TileMap.js +0 -465
  563. package/build/dist/TileMap.js.map +0 -1
  564. package/build/dist/Timer.js +0 -198
  565. package/build/dist/Timer.js.map +0 -1
  566. package/build/dist/Traits/CapturePointer.js +0 -16
  567. package/build/dist/Traits/CapturePointer.js.map +0 -1
  568. package/build/dist/Traits/Index.js.map +0 -1
  569. package/build/dist/Traits/OffscreenCulling.js +0 -35
  570. package/build/dist/Traits/OffscreenCulling.js.map +0 -1
  571. package/build/dist/Trigger.js +0 -107
  572. package/build/dist/Trigger.js.map +0 -1
  573. package/build/dist/Util/Actors.js +0 -19
  574. package/build/dist/Util/Actors.js.map +0 -1
  575. package/build/dist/Util/Browser.js +0 -66
  576. package/build/dist/Util/Browser.js.map +0 -1
  577. package/build/dist/Util/CullingBox.js +0 -104
  578. package/build/dist/Util/CullingBox.js.map +0 -1
  579. package/build/dist/Util/Decorators.js +0 -78
  580. package/build/dist/Util/Decorators.js.map +0 -1
  581. package/build/dist/Util/Detector.js +0 -167
  582. package/build/dist/Util/Detector.js.map +0 -1
  583. package/build/dist/Util/DrawUtil.js +0 -115
  584. package/build/dist/Util/DrawUtil.js.map +0 -1
  585. package/build/dist/Util/EasingFunctions.js +0 -118
  586. package/build/dist/Util/EasingFunctions.js.map +0 -1
  587. package/build/dist/Util/Index.js.map +0 -1
  588. package/build/dist/Util/Log.js +0 -195
  589. package/build/dist/Util/Log.js.map +0 -1
  590. package/build/dist/Util/Observable.js +0 -60
  591. package/build/dist/Util/Observable.js.map +0 -1
  592. package/build/dist/Util/Pool.js +0 -72
  593. package/build/dist/Util/Pool.js.map +0 -1
  594. package/build/dist/Util/SortedList.js +0 -261
  595. package/build/dist/Util/SortedList.js.map +0 -1
  596. package/build/dist/Util/Sound.js +0 -22
  597. package/build/dist/Util/Sound.js.map +0 -1
  598. package/build/dist/Util/Util.js +0 -401
  599. package/build/dist/Util/Util.js.map +0 -1
  600. package/build/dist/Util/Watch.js +0 -67
  601. package/build/dist/Util/Watch.js.map +0 -1
  602. package/build/dist/Util/WebAudio.js +0 -62
  603. package/build/dist/Util/WebAudio.js.map +0 -1
  604. package/build/dist/index.js.map +0 -1
@@ -0,0 +1,236 @@
1
+ import { ActionContext } from './ActionContext';
2
+ import { Component } from '../EntityComponentSystem/Component';
3
+ import { Entity } from '../EntityComponentSystem/Entity';
4
+ import { Actor } from '../Actor';
5
+ import { MotionComponent } from '../EntityComponentSystem/Components/MotionComponent';
6
+ import { TransformComponent } from '../EntityComponentSystem/Components/TransformComponent';
7
+ import { Vector } from '../Math/vector';
8
+ import { EasingFunction } from '../Util/EasingFunctions';
9
+ import { ActionQueue } from './ActionQueue';
10
+ import { RotationType } from './RotationType';
11
+ export interface ActionContextMethods extends Pick<ActionContext, keyof ActionContext> {
12
+ }
13
+ export declare class ActionsComponent extends Component<'ex.actions'> implements ActionContextMethods {
14
+ readonly type = "ex.actions";
15
+ dependencies: (typeof TransformComponent | typeof MotionComponent)[];
16
+ private _ctx;
17
+ onAdd(entity: Entity): void;
18
+ onRemove(): void;
19
+ /**
20
+ * Returns the internal action queue
21
+ * @returns action queu
22
+ */
23
+ getQueue(): ActionQueue;
24
+ /**
25
+ * Updates the internal action context, performing action and moving through the internal queue
26
+ * @param elapsedMs
27
+ */
28
+ update(elapsedMs: number): void;
29
+ /**
30
+ * Clears all queued actions from the Actor
31
+ */
32
+ clearActions(): void;
33
+ /**
34
+ * This method will move an actor to the specified `x` and `y` position over the
35
+ * specified duration using a given [[EasingFunctions]] and return back the actor. This
36
+ * method is part of the actor 'Action' fluent API allowing action chaining.
37
+ * @param pos The x,y vector location to move the actor to
38
+ * @param duration The time it should take the actor to move to the new location in milliseconds
39
+ * @param easingFcn Use [[EasingFunctions]] or a custom function to use to calculate position, Default is [[EasingFunctions.Linear]]
40
+ */
41
+ easeTo(pos: Vector, duration: number, easingFcn?: EasingFunction): ActionContext;
42
+ /**
43
+ * This method will move an actor to the specified `x` and `y` position over the
44
+ * specified duration using a given [[EasingFunctions]] and return back the actor. This
45
+ * method is part of the actor 'Action' fluent API allowing action chaining.
46
+ * @param x The x location to move the actor to
47
+ * @param y The y location to move the actor to
48
+ * @param duration The time it should take the actor to move to the new location in milliseconds
49
+ * @param easingFcn Use [[EasingFunctions]] or a custom function to use to calculate position, Default is [[EasingFunctions.Linear]]
50
+ */
51
+ easeTo(x: number, y: number, duration: number, easingFcn?: EasingFunction): ActionContext;
52
+ /**
53
+ * This method will move an actor to the specified x and y position at the
54
+ * speed specified (in pixels per second) and return back the actor. This
55
+ * method is part of the actor 'Action' fluent API allowing action chaining.
56
+ * @param pos The x,y vector location to move the actor to
57
+ * @param speed The speed in pixels per second to move
58
+ */
59
+ moveTo(pos: Vector, speed: number): ActionContext;
60
+ /**
61
+ * This method will move an actor to the specified x and y position at the
62
+ * speed specified (in pixels per second) and return back the actor. This
63
+ * method is part of the actor 'Action' fluent API allowing action chaining.
64
+ * @param x The x location to move the actor to
65
+ * @param y The y location to move the actor to
66
+ * @param speed The speed in pixels per second to move
67
+ */
68
+ moveTo(x: number, y: number, speed: number): ActionContext;
69
+ /**
70
+ * This method will move an actor by the specified x offset and y offset from its current position, at a certain speed.
71
+ * This method is part of the actor 'Action' fluent API allowing action chaining.
72
+ * @param offset The (x, y) offset to apply to this actor
73
+ * @param speed The speed in pixels per second the actor should move
74
+ */
75
+ moveBy(offset: Vector, speed: number): ActionContext;
76
+ /**
77
+ * This method will move an actor by the specified x offset and y offset from its current position, at a certain speed.
78
+ * This method is part of the actor 'Action' fluent API allowing action chaining.
79
+ * @param xOffset The x offset to apply to this actor
80
+ * @param yOffset The y location to move the actor to
81
+ * @param speed The speed in pixels per second the actor should move
82
+ */
83
+ moveBy(xOffset: number, yOffset: number, speed: number): ActionContext;
84
+ /**
85
+ * This method will rotate an actor to the specified angle at the speed
86
+ * specified (in radians per second) and return back the actor. This
87
+ * method is part of the actor 'Action' fluent API allowing action chaining.
88
+ * @param angleRadians The angle to rotate to in radians
89
+ * @param speed The angular velocity of the rotation specified in radians per second
90
+ * @param rotationType The [[RotationType]] to use for this rotation
91
+ */
92
+ rotateTo(angleRadians: number, speed: number, rotationType?: RotationType): ActionContext;
93
+ /**
94
+ * This method will rotate an actor by the specified angle offset, from it's current rotation given a certain speed
95
+ * in radians/sec and return back the actor. This method is part
96
+ * of the actor 'Action' fluent API allowing action chaining.
97
+ * @param angleRadiansOffset The angle to rotate to in radians relative to the current rotation
98
+ * @param speed The speed in radians/sec the actor should rotate at
99
+ * @param rotationType The [[RotationType]] to use for this rotation, default is shortest path
100
+ */
101
+ rotateBy(angleRadiansOffset: number, speed: number, rotationType?: RotationType): ActionContext;
102
+ /**
103
+ * This method will scale an actor to the specified size at the speed
104
+ * specified (in magnitude increase per second) and return back the
105
+ * actor. This method is part of the actor 'Action' fluent API allowing
106
+ * action chaining.
107
+ * @param size The scale to adjust the actor to over time
108
+ * @param speed The speed of scaling specified in magnitude increase per second
109
+ */
110
+ scaleTo(size: Vector, speed: Vector): ActionContext;
111
+ /**
112
+ * This method will scale an actor to the specified size at the speed
113
+ * specified (in magnitude increase per second) and return back the
114
+ * actor. This method is part of the actor 'Action' fluent API allowing
115
+ * action chaining.
116
+ * @param sizeX The scaling factor to apply on X axis
117
+ * @param sizeY The scaling factor to apply on Y axis
118
+ * @param speedX The speed of scaling specified in magnitude increase per second on X axis
119
+ * @param speedY The speed of scaling specified in magnitude increase per second on Y axis
120
+ */
121
+ scaleTo(sizeX: number, sizeY: number, speedX: number, speedY: number): ActionContext;
122
+ /**
123
+ * This method will scale an actor by an amount relative to the current scale at a certain speed in scale units/sec
124
+ * and return back the actor. This method is part of the
125
+ * actor 'Action' fluent API allowing action chaining.
126
+ * @param offset The scaling factor to apply to the actor
127
+ * @param speed The speed to scale at in scale units/sec
128
+ */
129
+ scaleBy(offset: Vector, speed: number): ActionContext;
130
+ /**
131
+ * This method will scale an actor by an amount relative to the current scale at a certain speed in scale units/sec
132
+ * and return back the actor. This method is part of the
133
+ * actor 'Action' fluent API allowing action chaining.
134
+ * @param sizeOffsetX The scaling factor to apply on X axis
135
+ * @param sizeOffsetY The scaling factor to apply on Y axis
136
+ * @param speed The speed to scale at in scale units/sec
137
+ */
138
+ scaleBy(sizeOffsetX: number, sizeOffsetY: number, speed: number): ActionContext;
139
+ /**
140
+ * This method will cause an actor to blink (become visible and not
141
+ * visible). Optionally, you may specify the number of blinks. Specify the amount of time
142
+ * the actor should be visible per blink, and the amount of time not visible.
143
+ * This method is part of the actor 'Action' fluent API allowing action chaining.
144
+ * @param timeVisible The amount of time to stay visible per blink in milliseconds
145
+ * @param timeNotVisible The amount of time to stay not visible per blink in milliseconds
146
+ * @param numBlinks The number of times to blink
147
+ */
148
+ blink(timeVisible: number, timeNotVisible: number, numBlinks?: number): ActionContext;
149
+ /**
150
+ * This method will cause an actor's opacity to change from its current value
151
+ * to the provided value by a specified time (in milliseconds). This method is
152
+ * part of the actor 'Action' fluent API allowing action chaining.
153
+ * @param opacity The ending opacity
154
+ * @param time The time it should take to fade the actor (in milliseconds)
155
+ */
156
+ fade(opacity: number, time: number): ActionContext;
157
+ /**
158
+ * This method will delay the next action from executing for a certain
159
+ * amount of time (in milliseconds). This method is part of the actor
160
+ * 'Action' fluent API allowing action chaining.
161
+ * @param time The amount of time to delay the next action in the queue from executing in milliseconds
162
+ */
163
+ delay(time: number): ActionContext;
164
+ /**
165
+ * This method will add an action to the queue that will remove the actor from the
166
+ * scene once it has completed its previous Any actions on the
167
+ * action queue after this action will not be executed.
168
+ */
169
+ die(): ActionContext;
170
+ /**
171
+ * This method allows you to call an arbitrary method as the next action in the
172
+ * action queue. This is useful if you want to execute code in after a specific
173
+ * action, i.e An actor arrives at a destination after traversing a path
174
+ */
175
+ callMethod(method: () => any): ActionContext;
176
+ /**
177
+ * This method will cause the actor to repeat all of the actions built in
178
+ * the `repeatBuilder` callback. If the number of repeats
179
+ * is not specified it will repeat forever. This method is part of
180
+ * the actor 'Action' fluent API allowing action chaining
181
+ *
182
+ * ```typescript
183
+ * // Move up in a zig-zag by repeated moveBy's
184
+ * actor.actions.repeat(repeatCtx => {
185
+ * repeatCtx.moveBy(10, 0, 10);
186
+ * repeatCtx.moveBy(0, 10, 10);
187
+ * }, 5);
188
+ * ```
189
+ *
190
+ * @param repeatBuilder The builder to specify the repeatable list of actions
191
+ * @param times The number of times to repeat all the previous actions in the action queue. If nothing is specified the actions
192
+ * will repeat forever
193
+ */
194
+ repeat(repeatBuilder: (repeatContext: ActionContext) => any, times?: number): ActionContext;
195
+ /**
196
+ * This method will cause the actor to repeat all of the actions built in
197
+ * the `repeatBuilder` callback. If the number of repeats
198
+ * is not specified it will repeat forever. This method is part of
199
+ * the actor 'Action' fluent API allowing action chaining
200
+ *
201
+ * ```typescript
202
+ * // Move up in a zig-zag by repeated moveBy's
203
+ * actor.actions.repeat(repeatCtx => {
204
+ * repeatCtx.moveBy(10, 0, 10);
205
+ * repeatCtx.moveBy(0, 10, 10);
206
+ * }, 5);
207
+ * ```
208
+ *
209
+ * @param repeatBuilder The builder to specify the repeatable list of actions
210
+ */
211
+ repeatForever(repeatBuilder: (repeatContext: ActionContext) => any): ActionContext;
212
+ /**
213
+ * This method will cause the entity to follow another at a specified distance
214
+ * @param entity The entity to follow
215
+ * @param followDistance The distance to maintain when following, if not specified the actor will follow at the current distance.
216
+ */
217
+ follow(entity: Actor, followDistance?: number): ActionContext;
218
+ /**
219
+ * This method will cause the entity to move towards another until they
220
+ * collide "meet" at a specified speed.
221
+ * @param entity The entity to meet
222
+ * @param speed The speed in pixels per second to move, if not specified it will match the speed of the other actor
223
+ */
224
+ meet(entity: Actor, speed?: number): ActionContext;
225
+ /**
226
+ * Returns a promise that resolves when the current action queue up to now
227
+ * is finished.
228
+ * @deprecated Use `toPromise()` will be removed in v0.26.0
229
+ */
230
+ asPromise(): Promise<void>;
231
+ /**
232
+ * Returns a promise that resolves when the current action queue up to now
233
+ * is finished.
234
+ */
235
+ toPromise(): Promise<void>;
236
+ }
@@ -0,0 +1,9 @@
1
+ import { Entity } from '../EntityComponentSystem';
2
+ import { System, SystemType } from '../EntityComponentSystem/System';
3
+ import { ActionsComponent } from './ActionsComponent';
4
+ export declare class ActionsSystem extends System<ActionsComponent> {
5
+ readonly types: readonly ["ex.actions"];
6
+ systemType: SystemType;
7
+ priority: number;
8
+ update(entities: Entity[], delta: number): void;
9
+ }
@@ -17,3 +17,5 @@ export * from './Action/RotateBy';
17
17
  export * from './Action/RotateTo';
18
18
  export * from './Action/ScaleBy';
19
19
  export * from './Action/ScaleTo';
20
+ export * from './ActionsComponent';
21
+ export * from './ActionsSystem';
@@ -9,11 +9,9 @@ import { Drawable } from './Interfaces/Drawable';
9
9
  import { CanInitialize, CanUpdate, CanDraw, CanBeKilled } from './Interfaces/LifecycleEvents';
10
10
  import { Scene } from './Scene';
11
11
  import { Logger } from './Util/Log';
12
- import { ActionContext } from './Actions/ActionContext';
13
12
  import { Vector } from './Math/vector';
14
13
  import { BodyComponent } from './Collision/BodyComponent';
15
14
  import { Eventable } from './Interfaces/Evented';
16
- import { Actionable } from './Actions/Actionable';
17
15
  import * as Events from './Events';
18
16
  import { PointerEvents } from './Interfaces/PointerEventHandlers';
19
17
  import { CollisionType } from './Collision/CollisionType';
@@ -24,6 +22,7 @@ import { GraphicsComponent } from './Graphics/GraphicsComponent';
24
22
  import { ColliderComponent } from './Collision/ColliderComponent';
25
23
  import { Collider, CollisionGroup } from './Collision/Index';
26
24
  import { CapturePointerConfig } from './Input/CapturePointerConfig';
25
+ import { ActionsComponent } from './Actions/ActionsComponent';
27
26
  /**
28
27
  * Type guard for checking if something is an Actor
29
28
  * @param x
@@ -117,7 +116,7 @@ export interface ActorArgs {
117
116
  * or interact with the current scene, must be an actor. An `Actor` **must**
118
117
  * be part of a [[Scene]] for it to be drawn to the screen.
119
118
  */
120
- export declare class Actor extends Entity implements Actionable, Eventable, PointerEvents, CanInitialize, CanUpdate, CanDraw, CanBeKilled {
119
+ export declare class Actor extends Entity implements Eventable, PointerEvents, CanInitialize, CanUpdate, CanDraw, CanBeKilled {
121
120
  /**
122
121
  * Set defaults for all Actors
123
122
  */
@@ -142,9 +141,16 @@ export declare class Actor extends Entity implements Actionable, Eventable, Poin
142
141
  */
143
142
  get graphics(): GraphicsComponent;
144
143
  /**
145
- * Access to the Actor's build in [[ColliderComponent]]
144
+ * Access to the Actor's built in [[ColliderComponent]]
146
145
  */
147
146
  get collider(): ColliderComponent;
147
+ /**
148
+ * Useful for quickly scripting actor behavior, like moving to a place, patroling back and forth, blinking, etc.
149
+ *
150
+ * Access to the Actor's built in [[ActionsComponent]] which forwards to the
151
+ * [[ActionContext|Action context]] of the actor.
152
+ */
153
+ get actions(): ActionsComponent;
148
154
  /**
149
155
  * Gets the position vector of the actor in pixels
150
156
  */
@@ -244,10 +250,6 @@ export declare class Actor extends Entity implements Actionable, Eventable, Poin
244
250
  */
245
251
  get opacity(): number;
246
252
  set opacity(opacity: number);
247
- /**
248
- * [[ActionContext|Action context]] of the actor. Useful for scripting actor behavior.
249
- */
250
- actions: ActionContext;
251
253
  /**
252
254
  * Convenience reference to the global logger
253
255
  */
@@ -550,13 +550,18 @@ export declare class Engine extends Class implements CanInitialize, CanUpdate, C
550
550
  * Toggle Excalibur debugging functionality.
551
551
  */
552
552
  toggleDebug(): boolean;
553
+ private _loadingComplete;
554
+ /**
555
+ * Returns true when loading is totally complete and the player has clicked start
556
+ */
557
+ get loadingComplete(): boolean;
553
558
  /**
554
559
  * Starts the internal game loop for Excalibur after loading
555
560
  * any provided assets.
556
561
  * @param loader Optional [[Loader]] to use to load resources. The default loader is [[Loader]], override to provide your own
557
562
  * custom loader.
558
563
  */
559
- start(loader?: Loader): Promise<any>;
564
+ start(loader?: Loader): Promise<void>;
560
565
  static createMainLoop(game: Engine, raf: (func: Function) => number, nowFn: () => number): () => void;
561
566
  /**
562
567
  * Stops Excalibur's main loop, useful for pausing the game.
@@ -13,6 +13,7 @@ export declare class EntityManager<ContextType = any> implements Observer<Remove
13
13
  * @param _context
14
14
  */
15
15
  updateEntities(_context: ContextType, elapsed: number): void;
16
+ findEntitiesForRemoval(): void;
16
17
  /**
17
18
  * EntityManager observes changes on entities
18
19
  * @param message
@@ -11,6 +11,16 @@ export interface HasTick {
11
11
  */
12
12
  tick(elapsedMilliseconds: number, idempotencyToken?: number): void;
13
13
  }
14
+ export declare enum AnimationDirection {
15
+ /**
16
+ * Animation is playing forwards
17
+ */
18
+ Forward = "forward",
19
+ /**
20
+ * Animation is play backwards
21
+ */
22
+ Backward = "backward"
23
+ }
14
24
  export declare enum AnimationStrategy {
15
25
  /**
16
26
  * Animation ends without displaying anything
@@ -50,10 +60,18 @@ export interface AnimationOptions {
50
60
  * List of frames in the order you wish to play them
51
61
  */
52
62
  frames: Frame[];
63
+ /**
64
+ * Optionally reverse the direction of play
65
+ */
66
+ reverse?: boolean;
53
67
  /**
54
68
  * Optionally specify a default frame duration in ms (Default is 1000)
55
69
  */
56
70
  frameDuration?: number;
71
+ /**
72
+ * Optionally specify a total duration of the animation in ms to calculate each frame's duration
73
+ */
74
+ totalDuration?: number;
57
75
  /**
58
76
  * Optionally specify the [[AnimationStrategy]] for the Animation
59
77
  */
@@ -110,15 +128,61 @@ export declare class Animation extends Graphic implements HasTick {
110
128
  * @returns LegacyDrawing.Animation
111
129
  */
112
130
  static toLegacyAnimation(engine: Engine, animation: Animation): LegacyDrawing.Animation;
131
+ /**
132
+ * Returns the current Frame of the animation
133
+ */
113
134
  get currentFrame(): Frame | null;
135
+ /**
136
+ * Returns the current frame index of the animation
137
+ */
138
+ get currentFrameIndex(): number;
139
+ /**
140
+ * Returns `true` if the animation is playing
141
+ */
114
142
  get isPlaying(): boolean;
143
+ private _reversed;
144
+ /**
145
+ * Reverses the play direction of the Animation, this preserves the current frame
146
+ */
147
+ reverse(): void;
148
+ /**
149
+ * Returns the current play direction of the animation
150
+ */
151
+ get direction(): AnimationDirection;
152
+ /**
153
+ * Plays or resumes the animation from the current frame
154
+ */
115
155
  play(): void;
156
+ /**
157
+ * Pauses the animation on the current frame
158
+ */
116
159
  pause(): void;
160
+ /**
161
+ * Reset the animation back to the beginning, including if the animation were done
162
+ */
117
163
  reset(): void;
164
+ /**
165
+ * Returns `true` if the animation can end
166
+ */
118
167
  get canFinish(): boolean;
168
+ /**
169
+ * Returns `true` if the animation is done, for looping type animations
170
+ * `ex.AnimationStrategy.PingPong` and `ex.AnimationStrategy.Loop` this will always return `false`
171
+ *
172
+ * See the `ex.Animation.canFinish()` method to know if an animation type can end
173
+ */
119
174
  get done(): boolean;
175
+ /**
176
+ * Jump the animation immediately to a specific frame if it exists
177
+ * @param frameNumber
178
+ */
120
179
  goToFrame(frameNumber: number): void;
121
180
  private _nextFrame;
181
+ /**
182
+ * Called internally by Excalibur to update the state of the animation potential update the current frame
183
+ * @param elapsedMilliseconds Milliseconds elapsed
184
+ * @param idempotencyToken Prevents double ticking in a frame by passing a unique token to the frame
185
+ */
122
186
  tick(elapsedMilliseconds: number, idempotencyToken?: number): void;
123
187
  private _updateDimensions;
124
188
  protected _drawImage(ctx: ExcaliburGraphicsContext, x: number, y: number): void;
@@ -75,7 +75,7 @@ export interface ExcaliburGraphicsContext {
75
75
  */
76
76
  resetTransform(): void;
77
77
  /**
78
- * Update the context with the curren tviewport dimensions (used in resizing)
78
+ * Update the context with the current viewport dimensions (used in resizing)
79
79
  */
80
80
  updateViewport(): void;
81
81
  /**
@@ -7,6 +7,7 @@ import { StateStack } from './state-stack';
7
7
  import { LineRenderer } from './line-renderer';
8
8
  import { ImageRenderer } from './image-renderer';
9
9
  import { PointRenderer } from './point-renderer';
10
+ import { ScreenDimension } from '../../Screen';
10
11
  declare class ExcaliburGraphicsContextWebGLDebug implements DebugDraw {
11
12
  private _webglCtx;
12
13
  private _debugText;
@@ -79,6 +80,11 @@ export declare class ExcaliburGraphicsContextWebGL implements ExcaliburGraphicsC
79
80
  set opacity(value: number);
80
81
  get width(): number;
81
82
  get height(): number;
83
+ /**
84
+ * Checks the underlying webgl implementation if the requested internal resolution is supported
85
+ * @param dim
86
+ */
87
+ checkIfResolutionSupported(dim: ScreenDimension): boolean;
82
88
  constructor(options: ExcaliburGraphicsContextOptions);
83
89
  private _init;
84
90
  resetTransform(): void;
@@ -110,6 +110,7 @@ export declare class GraphicsLayer {
110
110
  */
111
111
  get offset(): Vector;
112
112
  set offset(value: Vector);
113
+ get currentKeys(): string;
113
114
  }
114
115
  export declare class GraphicsLayers {
115
116
  private _component;
@@ -127,6 +128,7 @@ export declare class GraphicsLayers {
127
128
  * Retrieve all layers
128
129
  */
129
130
  get(): readonly GraphicsLayer[];
131
+ currentKeys(): string[];
130
132
  has(name: string): boolean;
131
133
  private _maybeAddLayer;
132
134
  private _getLayer;
@@ -16,6 +16,7 @@ button#excalibur-play {
16
16
  color: #ffffff;
17
17
  font-family: sans-serif;
18
18
  font-size: 2rem;
19
+ white-space: nowrap;
19
20
  line-height: 1;
20
21
  cursor: pointer;
21
22
  text-align: center;
@@ -164,6 +164,7 @@ export declare class Loader extends Class implements Loadable<Loadable<any>[]> {
164
164
  * Returns the progess of the loader as a number between [0, 1] inclusive.
165
165
  */
166
166
  get progress(): number;
167
+ private _positionPlayButton;
167
168
  /**
168
169
  * Loader draw function. Draws the default Excalibur loading screen.
169
170
  * Override `logo`, `logoWidth`, `logoHeight` and `backgroundColor` properties
@@ -174,7 +174,10 @@ export declare class Screen {
174
174
  get scaledHeight(): number;
175
175
  setCurrentCamera(camera: Camera): void;
176
176
  pushResolutionAndViewport(): void;
177
+ peekViewport(): ScreenDimension;
178
+ peekResolution(): ScreenDimension;
177
179
  popResolutionAndViewport(): void;
180
+ private _alreadyWarned;
178
181
  applyResolutionAndViewport(): void;
179
182
  get antialiasing(): boolean;
180
183
  set antialiasing(isSmooth: boolean);