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,17 @@
1
+ import { Entity } from '../../EntityComponentSystem/Entity';
2
+ import { Action } from '../Action';
3
+ export declare class Blink implements Action {
4
+ private _graphics;
5
+ private _timeVisible;
6
+ private _timeNotVisible;
7
+ private _elapsedTime;
8
+ private _totalTime;
9
+ private _duration;
10
+ private _stopped;
11
+ private _started;
12
+ constructor(entity: Entity, timeVisible: number, timeNotVisible: number, numBlinks?: number);
13
+ update(delta: number): void;
14
+ isComplete(): boolean;
15
+ stop(): void;
16
+ reset(): void;
17
+ }
@@ -0,0 +1,10 @@
1
+ import { Action } from '../Action';
2
+ export declare class CallMethod implements Action {
3
+ private _method;
4
+ private _hasBeenCalled;
5
+ constructor(method: () => any);
6
+ update(_delta: number): void;
7
+ isComplete(): boolean;
8
+ reset(): void;
9
+ stop(): void;
10
+ }
@@ -0,0 +1,12 @@
1
+ import { Action } from '../Action';
2
+ export declare class Delay implements Action {
3
+ private _elapsedTime;
4
+ private _delay;
5
+ private _started;
6
+ private _stopped;
7
+ constructor(delay: number);
8
+ update(delta: number): void;
9
+ isComplete(): boolean;
10
+ stop(): void;
11
+ reset(): void;
12
+ }
@@ -0,0 +1,11 @@
1
+ import { Entity } from '../../EntityComponentSystem/Entity';
2
+ import { Action } from '../Action';
3
+ export declare class Die implements Action {
4
+ private _entity;
5
+ private _stopped;
6
+ constructor(entity: Entity);
7
+ update(_delta: number): void;
8
+ isComplete(): boolean;
9
+ stop(): void;
10
+ reset(): void;
11
+ }
@@ -0,0 +1,21 @@
1
+ import { Entity } from '../../EntityComponentSystem/Entity';
2
+ import { Actor } from '../../Actor';
3
+ import { Action } from '../Action';
4
+ export declare class EaseTo implements Action {
5
+ easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number;
6
+ private _tx;
7
+ private _motion;
8
+ private _currentLerpTime;
9
+ private _lerpDuration;
10
+ private _lerpStart;
11
+ private _lerpEnd;
12
+ private _initialized;
13
+ private _stopped;
14
+ private _distance;
15
+ constructor(entity: Entity, x: number, y: number, duration: number, easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number);
16
+ private _initialize;
17
+ update(delta: number): void;
18
+ isComplete(actor: Actor): boolean;
19
+ reset(): void;
20
+ stop(): void;
21
+ }
@@ -0,0 +1,17 @@
1
+ import { Entity } from '../../EntityComponentSystem/Entity';
2
+ import { Action } from '../Action';
3
+ export declare class Fade implements Action {
4
+ private _graphics;
5
+ x: number;
6
+ y: number;
7
+ private _endOpacity;
8
+ private _speed;
9
+ private _multiplier;
10
+ private _started;
11
+ private _stopped;
12
+ constructor(entity: Entity, endOpacity: number, speed: number);
13
+ update(delta: number): void;
14
+ isComplete(): boolean;
15
+ stop(): void;
16
+ reset(): void;
17
+ }
@@ -0,0 +1,23 @@
1
+ import { Entity } from '../../EntityComponentSystem/Entity';
2
+ import { Action } from '../Action';
3
+ export declare class Follow implements Action {
4
+ private _tx;
5
+ private _motion;
6
+ private _followTx;
7
+ private _followMotion;
8
+ x: number;
9
+ y: number;
10
+ private _current;
11
+ private _end;
12
+ private _dir;
13
+ private _speed;
14
+ private _maximumDistance;
15
+ private _distanceBetween;
16
+ private _started;
17
+ private _stopped;
18
+ constructor(entity: Entity, entityToFollow: Entity, followDistance?: number);
19
+ update(_delta: number): void;
20
+ stop(): void;
21
+ isComplete(): boolean;
22
+ reset(): void;
23
+ }
@@ -0,0 +1,23 @@
1
+ import { Entity } from '../../EntityComponentSystem/Entity';
2
+ import { Action } from '../Action';
3
+ export declare class Meet implements Action {
4
+ private _tx;
5
+ private _motion;
6
+ private _meetTx;
7
+ private _meetMotion;
8
+ x: number;
9
+ y: number;
10
+ private _current;
11
+ private _end;
12
+ private _dir;
13
+ private _speed;
14
+ private _distanceBetween;
15
+ private _started;
16
+ private _stopped;
17
+ private _speedWasSpecified;
18
+ constructor(actor: Entity, actorToMeet: Entity, speed?: number);
19
+ update(_delta: number): void;
20
+ isComplete(): boolean;
21
+ stop(): void;
22
+ reset(): void;
23
+ }
@@ -0,0 +1,22 @@
1
+ import { Entity } from '../../EntityComponentSystem/Entity';
2
+ import { Action } from '../Action';
3
+ export declare class MoveBy implements Action {
4
+ private _tx;
5
+ private _motion;
6
+ private _entity;
7
+ x: number;
8
+ y: number;
9
+ private _distance;
10
+ private _speed;
11
+ private _start;
12
+ private _offset;
13
+ private _end;
14
+ private _dir;
15
+ private _started;
16
+ private _stopped;
17
+ constructor(entity: Entity, offsetX: number, offsetY: number, speed: number);
18
+ update(_delta: number): void;
19
+ isComplete(entity: Entity): boolean;
20
+ stop(): void;
21
+ reset(): void;
22
+ }
@@ -0,0 +1,21 @@
1
+ import { Entity } from '../../EntityComponentSystem/Entity';
2
+ import { Action } from '../Action';
3
+ export declare class MoveTo implements Action {
4
+ entity: Entity;
5
+ private _tx;
6
+ private _motion;
7
+ x: number;
8
+ y: number;
9
+ private _start;
10
+ private _end;
11
+ private _dir;
12
+ private _speed;
13
+ private _distance;
14
+ private _started;
15
+ private _stopped;
16
+ constructor(entity: Entity, destx: number, desty: number, speed: number);
17
+ update(_delta: number): void;
18
+ isComplete(entity: Entity): boolean;
19
+ stop(): void;
20
+ reset(): void;
21
+ }
@@ -0,0 +1,16 @@
1
+ import { Entity } from '../../EntityComponentSystem/Entity';
2
+ import { Action } from '../Action';
3
+ import { ActionContext } from '../ActionContext';
4
+ export declare class Repeat implements Action {
5
+ private _actionQueue;
6
+ private _repeat;
7
+ private _originalRepeat;
8
+ private _stopped;
9
+ private _repeatContext;
10
+ private _repeatBuilder;
11
+ constructor(entity: Entity, repeatBuilder: (repeatContext: ActionContext) => any, repeat: number);
12
+ update(delta: number): void;
13
+ isComplete(): boolean;
14
+ stop(): void;
15
+ reset(): void;
16
+ }
@@ -0,0 +1,20 @@
1
+ import { Entity } from '../../EntityComponentSystem/Entity';
2
+ import { Action } from '../Action';
3
+ import { ActionContext } from '../ActionContext';
4
+ /**
5
+ * RepeatForever Action implementation, it is recommended you use the fluent action
6
+ * context API.
7
+ *
8
+ *
9
+ */
10
+ export declare class RepeatForever implements Action {
11
+ private _actionQueue;
12
+ private _stopped;
13
+ private _repeatContext;
14
+ private _repeatBuilder;
15
+ constructor(entity: Entity, repeatBuilder: (repeatContext: ActionContext) => any);
16
+ update(delta: number): void;
17
+ isComplete(): boolean;
18
+ stop(): void;
19
+ reset(): void;
20
+ }
@@ -0,0 +1,27 @@
1
+ import { Action } from '../Action';
2
+ import { RotationType } from '../RotationType';
3
+ import { Entity } from '../../EntityComponentSystem/Entity';
4
+ export declare class RotateBy implements Action {
5
+ private _tx;
6
+ private _motion;
7
+ x: number;
8
+ y: number;
9
+ private _start;
10
+ private _end;
11
+ private _speed;
12
+ private _offset;
13
+ private _rotationType;
14
+ private _direction;
15
+ private _distance;
16
+ private _shortDistance;
17
+ private _longDistance;
18
+ private _shortestPathIsPositive;
19
+ private _currentNonCannonAngle;
20
+ private _started;
21
+ private _stopped;
22
+ constructor(entity: Entity, angleRadiansOffset: number, speed: number, rotationType?: RotationType);
23
+ update(_delta: number): void;
24
+ isComplete(): boolean;
25
+ stop(): void;
26
+ reset(): void;
27
+ }
@@ -0,0 +1,26 @@
1
+ import { Action } from '../Action';
2
+ import { RotationType } from '../RotationType';
3
+ import { Entity } from '../../EntityComponentSystem/Entity';
4
+ export declare class RotateTo implements Action {
5
+ private _tx;
6
+ private _motion;
7
+ x: number;
8
+ y: number;
9
+ private _start;
10
+ private _end;
11
+ private _speed;
12
+ private _rotationType;
13
+ private _direction;
14
+ private _distance;
15
+ private _shortDistance;
16
+ private _longDistance;
17
+ private _shortestPathIsPositive;
18
+ private _currentNonCannonAngle;
19
+ private _started;
20
+ private _stopped;
21
+ constructor(entity: Entity, angleRadians: number, speed: number, rotationType?: RotationType);
22
+ update(_delta: number): void;
23
+ isComplete(): boolean;
24
+ stop(): void;
25
+ reset(): void;
26
+ }
@@ -0,0 +1,24 @@
1
+ import { Entity } from '../../EntityComponentSystem/Entity';
2
+ import { Action } from '../Action';
3
+ export declare class ScaleBy implements Action {
4
+ private _tx;
5
+ private _motion;
6
+ x: number;
7
+ y: number;
8
+ private _startScale;
9
+ private _endScale;
10
+ private _offset;
11
+ private _distanceX;
12
+ private _distanceY;
13
+ private _directionX;
14
+ private _directionY;
15
+ private _started;
16
+ private _stopped;
17
+ private _speedX;
18
+ private _speedY;
19
+ constructor(entity: Entity, scaleOffsetX: number, scaleOffsetY: number, speed: number);
20
+ update(_delta: number): void;
21
+ isComplete(): boolean;
22
+ stop(): void;
23
+ reset(): void;
24
+ }
@@ -0,0 +1,23 @@
1
+ import { Action } from '../Action';
2
+ import { Entity } from '../../EntityComponentSystem/Entity';
3
+ export declare class ScaleTo implements Action {
4
+ private _tx;
5
+ private _motion;
6
+ x: number;
7
+ y: number;
8
+ private _startX;
9
+ private _startY;
10
+ private _endX;
11
+ private _endY;
12
+ private _speedX;
13
+ private _speedY;
14
+ private _distanceX;
15
+ private _distanceY;
16
+ private _started;
17
+ private _stopped;
18
+ constructor(entity: Entity, scaleX: number, scaleY: number, speedX: number, speedY: number);
19
+ update(_delta: number): void;
20
+ isComplete(): boolean;
21
+ stop(): void;
22
+ reset(): void;
23
+ }
@@ -0,0 +1,10 @@
1
+ import { Entity } from '../EntityComponentSystem/Entity';
2
+ /**
3
+ * Used for implementing actions for the [[ActionContext|Action API]].
4
+ */
5
+ export interface Action {
6
+ update(delta: number): void;
7
+ isComplete(entity: Entity): boolean;
8
+ reset(): void;
9
+ stop(): void;
10
+ }
@@ -0,0 +1,219 @@
1
+ import { RotationType } from './RotationType';
2
+ import { EasingFunction } from '../Util/EasingFunctions';
3
+ import { ActionQueue } from './ActionQueue';
4
+ import { Vector } from '../Math/vector';
5
+ import { Entity } from '../EntityComponentSystem/Entity';
6
+ /**
7
+ * The fluent Action API allows you to perform "actions" on
8
+ * [[Actor|Actors]] such as following, moving, rotating, and
9
+ * more. You can implement your own actions by implementing
10
+ * the [[Action]] interface.
11
+ */
12
+ export declare class ActionContext {
13
+ private _entity;
14
+ private _queue;
15
+ constructor(entity: Entity);
16
+ getQueue(): ActionQueue;
17
+ update(elapsedMs: number): void;
18
+ /**
19
+ * Clears all queued actions from the Actor
20
+ */
21
+ clearActions(): void;
22
+ /**
23
+ * This method will move an actor to the specified `x` and `y` position over the
24
+ * specified duration using a given [[EasingFunctions]] and return back the actor. This
25
+ * method is part of the actor 'Action' fluent API allowing action chaining.
26
+ * @param pos The x,y vector location to move the actor to
27
+ * @param duration The time it should take the actor to move to the new location in milliseconds
28
+ * @param easingFcn Use [[EasingFunctions]] or a custom function to use to calculate position, Default is [[EasingFunctions.Linear]]
29
+ */
30
+ easeTo(pos: Vector, duration: number, easingFcn?: EasingFunction): ActionContext;
31
+ /**
32
+ * This method will move an actor to the specified `x` and `y` position over the
33
+ * specified duration using a given [[EasingFunctions]] and return back the actor. This
34
+ * method is part of the actor 'Action' fluent API allowing action chaining.
35
+ * @param x The x location to move the actor to
36
+ * @param y The y location to move the actor to
37
+ * @param duration The time it should take the actor to move to the new location in milliseconds
38
+ * @param easingFcn Use [[EasingFunctions]] or a custom function to use to calculate position, Default is [[EasingFunctions.Linear]]
39
+ */
40
+ easeTo(x: number, y: number, duration: number, easingFcn?: EasingFunction): ActionContext;
41
+ /**
42
+ * This method will move an actor to the specified x and y position at the
43
+ * speed specified (in pixels per second) and return back the actor. This
44
+ * method is part of the actor 'Action' fluent API allowing action chaining.
45
+ * @param pos The x,y vector location to move the actor to
46
+ * @param speed The speed in pixels per second to move
47
+ */
48
+ moveTo(pos: Vector, speed: number): ActionContext;
49
+ /**
50
+ * This method will move an actor to the specified x and y position at the
51
+ * speed specified (in pixels per second) and return back the actor. This
52
+ * method is part of the actor 'Action' fluent API allowing action chaining.
53
+ * @param x The x location to move the actor to
54
+ * @param y The y location to move the actor to
55
+ * @param speed The speed in pixels per second to move
56
+ */
57
+ moveTo(x: number, y: number, speed: number): ActionContext;
58
+ /**
59
+ * This method will move an actor by the specified x offset and y offset from its current position, at a certain speed.
60
+ * This method is part of the actor 'Action' fluent API allowing action chaining.
61
+ * @param xOffset The x offset to apply to this actor
62
+ * @param yOffset The y location to move the actor to
63
+ * @param speed The speed in pixels per second the actor should move
64
+ */
65
+ moveBy(offset: Vector, speed: number): ActionContext;
66
+ moveBy(xOffset: number, yOffset: number, speed: number): ActionContext;
67
+ /**
68
+ * This method will rotate an actor to the specified angle at the speed
69
+ * specified (in radians per second) and return back the actor. This
70
+ * method is part of the actor 'Action' fluent API allowing action chaining.
71
+ * @param angleRadians The angle to rotate to in radians
72
+ * @param speed The angular velocity of the rotation specified in radians per second
73
+ * @param rotationType The [[RotationType]] to use for this rotation
74
+ */
75
+ rotateTo(angleRadians: number, speed: number, rotationType?: RotationType): ActionContext;
76
+ /**
77
+ * This method will rotate an actor by the specified angle offset, from it's current rotation given a certain speed
78
+ * in radians/sec and return back the actor. This method is part
79
+ * of the actor 'Action' fluent API allowing action chaining.
80
+ * @param angleRadiansOffset The angle to rotate to in radians relative to the current rotation
81
+ * @param speed The speed in radians/sec the actor should rotate at
82
+ * @param rotationType The [[RotationType]] to use for this rotation, default is shortest path
83
+ */
84
+ rotateBy(angleRadiansOffset: number, speed: number, rotationType?: RotationType): ActionContext;
85
+ /**
86
+ * This method will scale an actor to the specified size at the speed
87
+ * specified (in magnitude increase per second) and return back the
88
+ * actor. This method is part of the actor 'Action' fluent API allowing
89
+ * action chaining.
90
+ * @param size The scale to adjust the actor to over time
91
+ * @param speed The speed of scaling specified in magnitude increase per second
92
+ */
93
+ scaleTo(size: Vector, speed: Vector): ActionContext;
94
+ /**
95
+ * This method will scale an actor to the specified size at the speed
96
+ * specified (in magnitude increase per second) and return back the
97
+ * actor. This method is part of the actor 'Action' fluent API allowing
98
+ * action chaining.
99
+ * @param sizeX The scaling factor to apply on X axis
100
+ * @param sizeY The scaling factor to apply on Y axis
101
+ * @param speedX The speed of scaling specified in magnitude increase per second on X axis
102
+ * @param speedY The speed of scaling specified in magnitude increase per second on Y axis
103
+ */
104
+ scaleTo(sizeX: number, sizeY: number, speedX: number, speedY: number): ActionContext;
105
+ /**
106
+ * This method will scale an actor by an amount relative to the current scale at a certain speed in scale units/sec
107
+ * and return back the actor. This method is part of the
108
+ * actor 'Action' fluent API allowing action chaining.
109
+ * @param offset The scaling factor to apply to the actor
110
+ * @param speed The speed to scale at in scale units/sec
111
+ */
112
+ scaleBy(offset: Vector, speed: number): ActionContext;
113
+ /**
114
+ * This method will scale an actor by an amount relative to the current scale at a certain speed in scale units/sec
115
+ * and return back the actor. This method is part of the
116
+ * actor 'Action' fluent API allowing action chaining.
117
+ * @param sizeOffsetX The scaling factor to apply on X axis
118
+ * @param sizeOffsetY The scaling factor to apply on Y axis
119
+ * @param speed The speed to scale at in scale units/sec
120
+ */
121
+ scaleBy(sizeOffsetX: number, sizeOffsetY: number, speed: number): ActionContext;
122
+ /**
123
+ * This method will cause an actor to blink (become visible and not
124
+ * visible). Optionally, you may specify the number of blinks. Specify the amount of time
125
+ * the actor should be visible per blink, and the amount of time not visible.
126
+ * This method is part of the actor 'Action' fluent API allowing action chaining.
127
+ * @param timeVisible The amount of time to stay visible per blink in milliseconds
128
+ * @param timeNotVisible The amount of time to stay not visible per blink in milliseconds
129
+ * @param numBlinks The number of times to blink
130
+ */
131
+ blink(timeVisible: number, timeNotVisible: number, numBlinks?: number): ActionContext;
132
+ /**
133
+ * This method will cause an actor's opacity to change from its current value
134
+ * to the provided value by a specified time (in milliseconds). This method is
135
+ * part of the actor 'Action' fluent API allowing action chaining.
136
+ * @param opacity The ending opacity
137
+ * @param time The time it should take to fade the actor (in milliseconds)
138
+ */
139
+ fade(opacity: number, time: number): ActionContext;
140
+ /**
141
+ * This method will delay the next action from executing for a certain
142
+ * amount of time (in milliseconds). This method is part of the actor
143
+ * 'Action' fluent API allowing action chaining.
144
+ * @param time The amount of time to delay the next action in the queue from executing in milliseconds
145
+ */
146
+ delay(time: number): ActionContext;
147
+ /**
148
+ * This method will add an action to the queue that will remove the actor from the
149
+ * scene once it has completed its previous Any actions on the
150
+ * action queue after this action will not be executed.
151
+ */
152
+ die(): ActionContext;
153
+ /**
154
+ * This method allows you to call an arbitrary method as the next action in the
155
+ * action queue. This is useful if you want to execute code in after a specific
156
+ * action, i.e An actor arrives at a destination after traversing a path
157
+ */
158
+ callMethod(method: () => any): ActionContext;
159
+ /**
160
+ * This method will cause the actor to repeat all of the actions built in
161
+ * the `repeatBuilder` callback. If the number of repeats
162
+ * is not specified it will repeat forever. This method is part of
163
+ * the actor 'Action' fluent API allowing action chaining
164
+ *
165
+ * ```typescript
166
+ * // Move up in a zig-zag by repeated moveBy's
167
+ * actor.actions.repeat(repeatCtx => {
168
+ * repeatCtx.moveBy(10, 0, 10);
169
+ * repeatCtx.moveBy(0, 10, 10);
170
+ * }, 5);
171
+ * ```
172
+ *
173
+ * @param repeatBuilder The builder to specify the repeatable list of actions
174
+ * @param times The number of times to repeat all the previous actions in the action queue. If nothing is specified the actions
175
+ * will repeat forever
176
+ */
177
+ repeat(repeatBuilder: (repeatContext: ActionContext) => any, times?: number): ActionContext;
178
+ /**
179
+ * This method will cause the actor to repeat all of the actions built in
180
+ * the `repeatBuilder` callback. If the number of repeats
181
+ * is not specified it will repeat forever. This method is part of
182
+ * the actor 'Action' fluent API allowing action chaining
183
+ *
184
+ * ```typescript
185
+ * // Move up in a zig-zag by repeated moveBy's
186
+ * actor.actions.repeat(repeatCtx => {
187
+ * repeatCtx.moveBy(10, 0, 10);
188
+ * repeatCtx.moveBy(0, 10, 10);
189
+ * }, 5);
190
+ * ```
191
+ *
192
+ * @param repeatBuilder The builder to specify the repeatable list of actions
193
+ */
194
+ repeatForever(repeatBuilder: (repeatContext: ActionContext) => any): ActionContext;
195
+ /**
196
+ * This method will cause the entity to follow another at a specified distance
197
+ * @param entity The entity to follow
198
+ * @param followDistance The distance to maintain when following, if not specified the actor will follow at the current distance.
199
+ */
200
+ follow(entity: Entity, followDistance?: number): ActionContext;
201
+ /**
202
+ * This method will cause the entity to move towards another until they
203
+ * collide "meet" at a specified speed.
204
+ * @param entity The entity to meet
205
+ * @param speed The speed in pixels per second to move, if not specified it will match the speed of the other actor
206
+ */
207
+ meet(entity: Entity, speed?: number): ActionContext;
208
+ /**
209
+ * Returns a promise that resolves when the current action queue up to now
210
+ * is finished.
211
+ * @deprecated Use `toPromise()` will be removed in v0.26.0
212
+ */
213
+ asPromise(): Promise<void>;
214
+ /**
215
+ * Returns a promise that resolves when the current action queue up to now
216
+ * is finished.
217
+ */
218
+ toPromise(): Promise<void>;
219
+ }
@@ -0,0 +1,56 @@
1
+ import { Entity } from '../EntityComponentSystem/Entity';
2
+ import { Action } from './Action';
3
+ /**
4
+ * Action Queues represent an ordered sequence of actions
5
+ *
6
+ * Action queues are part of the [[ActionContext|Action API]] and
7
+ * store the list of actions to be executed for an [[Actor]].
8
+ *
9
+ * Actors implement [[Actor.actions]] which can be manipulated by
10
+ * advanced users to adjust the actions currently being executed in the
11
+ * queue.
12
+ */
13
+ export declare class ActionQueue {
14
+ private _entity;
15
+ private _actions;
16
+ private _currentAction;
17
+ private _completedActions;
18
+ constructor(entity: Entity);
19
+ /**
20
+ * Add an action to the sequence
21
+ * @param action
22
+ */
23
+ add(action: Action): void;
24
+ /**
25
+ * Remove an action by reference from the sequence
26
+ * @param action
27
+ */
28
+ remove(action: Action): void;
29
+ /**
30
+ * Removes all actions from this sequence
31
+ */
32
+ clearActions(): void;
33
+ /**
34
+ *
35
+ * @returns The total list of actions in this sequence complete or not
36
+ */
37
+ getActions(): Action[];
38
+ /**
39
+ *
40
+ * @returns `true` if there are more actions to process in the sequence
41
+ */
42
+ hasNext(): boolean;
43
+ /**
44
+ * @returns `true` if the current sequence of actions is done
45
+ */
46
+ isComplete(): boolean;
47
+ /**
48
+ * Resets the sequence of actions, this is used to restart a sequence from the beginning
49
+ */
50
+ reset(): void;
51
+ /**
52
+ * Update the queue which updates actions and handles completing actions
53
+ * @param elapsedMs
54
+ */
55
+ update(elapsedMs: number): void;
56
+ }
@@ -0,0 +1,4 @@
1
+ import { ActionContext } from './ActionContext';
2
+ export interface Actionable {
3
+ actions: ActionContext;
4
+ }