excalibur 0.28.1 → 0.28.3

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 (486) hide show
  1. package/.nvmrc +1 -1
  2. package/CHANGELOG.md +117 -6
  3. package/build/dist/Actions/Action/ActionSequence.d.ts +19 -19
  4. package/build/dist/Actions/Action/Blink.d.ts +17 -17
  5. package/build/dist/Actions/Action/CallMethod.d.ts +10 -10
  6. package/build/dist/Actions/Action/Delay.d.ts +12 -12
  7. package/build/dist/Actions/Action/Die.d.ts +11 -11
  8. package/build/dist/Actions/Action/EaseBy.d.ts +20 -20
  9. package/build/dist/Actions/Action/EaseTo.d.ts +19 -19
  10. package/build/dist/Actions/Action/Fade.d.ts +18 -18
  11. package/build/dist/Actions/Action/Follow.d.ts +23 -23
  12. package/build/dist/Actions/Action/Meet.d.ts +23 -23
  13. package/build/dist/Actions/Action/MoveBy.d.ts +22 -22
  14. package/build/dist/Actions/Action/MoveTo.d.ts +21 -21
  15. package/build/dist/Actions/Action/ParallelActions.d.ts +13 -13
  16. package/build/dist/Actions/Action/Repeat.d.ts +16 -16
  17. package/build/dist/Actions/Action/RepeatForever.d.ts +20 -20
  18. package/build/dist/Actions/Action/RotateBy.d.ts +27 -27
  19. package/build/dist/Actions/Action/RotateTo.d.ts +26 -26
  20. package/build/dist/Actions/Action/ScaleBy.d.ts +24 -24
  21. package/build/dist/Actions/Action/ScaleTo.d.ts +23 -23
  22. package/build/dist/Actions/Action.d.ts +10 -10
  23. package/build/dist/Actions/ActionContext.d.ts +229 -231
  24. package/build/dist/Actions/ActionQueue.d.ts +56 -56
  25. package/build/dist/Actions/Actionable.d.ts +4 -4
  26. package/build/dist/Actions/ActionsComponent.d.ts +232 -234
  27. package/build/dist/Actions/ActionsSystem.d.ts +11 -11
  28. package/build/dist/Actions/Index.d.ts +25 -25
  29. package/build/dist/Actions/RotationType.d.ts +25 -25
  30. package/build/dist/Actor.d.ts +472 -475
  31. package/build/dist/Camera.d.ts +367 -371
  32. package/build/dist/Collision/BodyComponent.d.ts +211 -211
  33. package/build/dist/Collision/BodyComponent.js +374 -0
  34. package/build/dist/Collision/BodyComponent.js.map +1 -0
  35. package/build/dist/Collision/BoundingBox.d.ts +134 -128
  36. package/build/dist/Collision/ColliderComponent.d.ts +96 -96
  37. package/build/dist/Collision/Colliders/CircleCollider.d.ts +96 -96
  38. package/build/dist/Collision/Colliders/ClosestLineJumpTable.d.ts +23 -23
  39. package/build/dist/Collision/Colliders/Collider.d.ts +89 -89
  40. package/build/dist/Collision/Colliders/CollisionJumpTable.d.ts +14 -14
  41. package/build/dist/Collision/Colliders/CompositeCollider.d.ts +36 -36
  42. package/build/dist/Collision/Colliders/CompositeCollider.js +222 -0
  43. package/build/dist/Collision/Colliders/CompositeCollider.js.map +1 -0
  44. package/build/dist/Collision/Colliders/EdgeCollider.d.ts +110 -110
  45. package/build/dist/Collision/Colliders/PolygonCollider.d.ts +169 -169
  46. package/build/dist/Collision/Colliders/SeparatingAxis.d.ts +46 -46
  47. package/build/dist/Collision/Colliders/Shape.d.ts +52 -53
  48. package/build/dist/Collision/CollisionSystem.d.ts +28 -28
  49. package/build/dist/Collision/CollisionSystem.js +127 -0
  50. package/build/dist/Collision/CollisionSystem.js.map +1 -0
  51. package/build/dist/Collision/CollisionType.d.ts +31 -31
  52. package/build/dist/Collision/Detection/CollisionContact.d.ts +53 -53
  53. package/build/dist/Collision/Detection/CollisionProcessor.d.ts +28 -28
  54. package/build/dist/Collision/Detection/DynamicTree.d.ts +85 -85
  55. package/build/dist/Collision/Detection/DynamicTreeCollisionProcessor.d.ts +81 -77
  56. package/build/dist/Collision/Detection/DynamicTreeCollisionProcessor.js +244 -0
  57. package/build/dist/Collision/Detection/DynamicTreeCollisionProcessor.js.map +1 -0
  58. package/build/dist/Collision/Detection/Pair.d.ts +35 -35
  59. package/build/dist/Collision/Detection/QuadTree.d.ts +53 -0
  60. package/build/dist/Collision/Group/CollisionGroup.d.ts +97 -95
  61. package/build/dist/Collision/Group/CollisionGroup.js +128 -0
  62. package/build/dist/Collision/Group/CollisionGroup.js.map +1 -0
  63. package/build/dist/Collision/Group/CollisionGroupManager.d.ts +30 -30
  64. package/build/dist/Collision/Group/CollisionGroupManager.js +56 -0
  65. package/build/dist/Collision/Group/CollisionGroupManager.js.map +1 -0
  66. package/build/dist/Collision/Index.d.ts +30 -29
  67. package/build/dist/Collision/Index.js +31 -0
  68. package/build/dist/Collision/Index.js.map +1 -0
  69. package/build/dist/Collision/Integrator.d.ts +12 -12
  70. package/build/dist/Collision/MotionSystem.d.ts +10 -10
  71. package/build/dist/Collision/Physics.d.ts +133 -133
  72. package/build/dist/Collision/PhysicsWorld.d.ts +7 -7
  73. package/build/dist/Collision/Side.d.ts +21 -21
  74. package/build/dist/Collision/Solver/ArcadeSolver.d.ts +18 -18
  75. package/build/dist/Collision/Solver/ContactConstraintPoint.d.ts +47 -47
  76. package/build/dist/Collision/Solver/RealisticSolver.d.ts +22 -22
  77. package/build/dist/Collision/Solver/Solver.d.ts +25 -25
  78. package/build/dist/Color.d.ts +220 -233
  79. package/build/dist/Configurable.d.ts +9 -9
  80. package/build/dist/Debug/Debug.d.ts +343 -345
  81. package/build/dist/Debug/DebugFlags.d.ts +24 -24
  82. package/build/dist/Debug/DebugSystem.d.ts +29 -29
  83. package/build/dist/Debug/index.d.ts +3 -3
  84. package/build/dist/Engine.d.ts +691 -688
  85. package/build/dist/EntityComponentSystem/Component.d.ts +69 -69
  86. package/build/dist/EntityComponentSystem/Components/MotionComponent.d.ts +55 -55
  87. package/build/dist/EntityComponentSystem/Components/TransformComponent.d.ts +44 -44
  88. package/build/dist/EntityComponentSystem/Entity.d.ts +277 -278
  89. package/build/dist/EntityComponentSystem/EntityManager.d.ts +35 -35
  90. package/build/dist/EntityComponentSystem/Query.d.ts +50 -51
  91. package/build/dist/EntityComponentSystem/QueryManager.d.ts +48 -48
  92. package/build/dist/EntityComponentSystem/System.d.ts +107 -107
  93. package/build/dist/EntityComponentSystem/SystemManager.d.ts +50 -50
  94. package/build/dist/EntityComponentSystem/Util.d.ts +1 -1
  95. package/build/dist/EntityComponentSystem/World.d.ts +45 -45
  96. package/build/dist/EntityComponentSystem/index.d.ts +10 -10
  97. package/build/dist/EventDispatcher.d.ts +50 -52
  98. package/build/dist/EventEmitter.d.ts +32 -32
  99. package/build/dist/Events/ExEvent.d.ts +6 -6
  100. package/build/dist/Events/MediaEvents.d.ts +47 -47
  101. package/build/dist/Events/PointerEvents.d.ts +37 -37
  102. package/build/dist/Events.d.ts +456 -456
  103. package/build/dist/Flags.d.ts +45 -46
  104. package/build/dist/Graphics/Animation.d.ts +245 -247
  105. package/build/dist/Graphics/Canvas.d.ts +24 -24
  106. package/build/dist/Graphics/Circle.d.ts +17 -17
  107. package/build/dist/Graphics/Context/ExcaliburGraphicsContext.d.ts +233 -233
  108. package/build/dist/Graphics/Context/ExcaliburGraphicsContext2DCanvas.d.ts +112 -112
  109. package/build/dist/Graphics/Context/ExcaliburGraphicsContextWebGL.d.ts +132 -132
  110. package/build/dist/Graphics/Context/circle-renderer/circle-renderer.d.ts +22 -22
  111. package/build/dist/Graphics/Context/debug-font.png +0 -0
  112. package/build/dist/Graphics/Context/debug-text.d.ts +24 -24
  113. package/build/dist/Graphics/Context/draw-call.d.ts +10 -10
  114. package/build/dist/Graphics/Context/image-renderer/image-renderer.d.ts +27 -27
  115. package/build/dist/Graphics/Context/line-renderer/line-renderer.d.ts +21 -21
  116. package/build/dist/Graphics/Context/material-renderer/material-renderer.d.ts +18 -18
  117. package/build/dist/Graphics/Context/material-renderer/material-renderer.js +147 -0
  118. package/build/dist/Graphics/Context/material-renderer/material-renderer.js.map +1 -0
  119. package/build/dist/Graphics/Context/material.d.ts +69 -69
  120. package/build/dist/Graphics/Context/point-renderer/point-renderer.d.ts +21 -21
  121. package/build/dist/Graphics/Context/quad-index-buffer.d.ts +37 -37
  122. package/build/dist/Graphics/Context/rectangle-renderer/rectangle-renderer.d.ts +24 -24
  123. package/build/dist/Graphics/Context/render-source.d.ts +7 -7
  124. package/build/dist/Graphics/Context/render-target.d.ts +26 -26
  125. package/build/dist/Graphics/Context/renderer.d.ts +35 -36
  126. package/build/dist/Graphics/Context/screen-pass-painter/screen-pass-painter.d.ts +13 -13
  127. package/build/dist/Graphics/Context/shader.d.ts +241 -257
  128. package/build/dist/Graphics/Context/shader.js +353 -0
  129. package/build/dist/Graphics/Context/shader.js.map +1 -0
  130. package/build/dist/Graphics/Context/state-stack.d.ts +11 -11
  131. package/build/dist/Graphics/Context/texture-loader.d.ts +40 -40
  132. package/build/dist/Graphics/Context/transform-stack.d.ts +12 -12
  133. package/build/dist/Graphics/Context/vertex-buffer.d.ts +53 -53
  134. package/build/dist/Graphics/Context/vertex-layout.d.ts +57 -58
  135. package/build/dist/Graphics/Context/vertex-layout.js +109 -0
  136. package/build/dist/Graphics/Context/vertex-layout.js.map +1 -0
  137. package/build/dist/Graphics/Context/webgl-util.d.ts +21 -22
  138. package/build/dist/Graphics/DebugGraphicsComponent.d.ts +14 -14
  139. package/build/dist/Graphics/Filtering.d.ts +15 -15
  140. package/build/dist/Graphics/Font.d.ts +71 -71
  141. package/build/dist/Graphics/FontCache.d.ts +18 -18
  142. package/build/dist/Graphics/FontCommon.d.ts +164 -164
  143. package/build/dist/Graphics/FontTextInstance.d.ts +39 -39
  144. package/build/dist/Graphics/Graphic.d.ts +149 -149
  145. package/build/dist/Graphics/GraphicsComponent.d.ts +238 -238
  146. package/build/dist/Graphics/GraphicsDiagnostics.d.ts +5 -5
  147. package/build/dist/Graphics/GraphicsGroup.d.ts +24 -24
  148. package/build/dist/Graphics/GraphicsSystem.d.ts +28 -28
  149. package/build/dist/Graphics/ImageSource.d.ts +58 -58
  150. package/build/dist/Graphics/Line.d.ts +23 -19
  151. package/build/dist/Graphics/OffscreenSystem.d.ts +16 -16
  152. package/build/dist/Graphics/ParallaxComponent.d.ts +7 -7
  153. package/build/dist/Graphics/Polygon.d.ts +19 -19
  154. package/build/dist/Graphics/PostProcessor/ColorBlindnessMode.d.ts +5 -5
  155. package/build/dist/Graphics/PostProcessor/ColorBlindnessPostProcessor.d.ts +17 -17
  156. package/build/dist/Graphics/PostProcessor/PostProcessor.d.ts +30 -30
  157. package/build/dist/Graphics/PostProcessor/ScreenShader.d.ts +16 -16
  158. package/build/dist/Graphics/Raster.d.ts +146 -146
  159. package/build/dist/Graphics/Rectangle.d.ts +13 -13
  160. package/build/dist/Graphics/Sprite.d.ts +53 -53
  161. package/build/dist/Graphics/SpriteFont.d.ts +59 -59
  162. package/build/dist/Graphics/SpriteSheet.d.ts +141 -142
  163. package/build/dist/Graphics/Text.d.ts +51 -51
  164. package/build/dist/Graphics/index.d.ts +39 -39
  165. package/build/dist/Id.d.ts +8 -8
  166. package/build/dist/Input/CapturePointerConfig.d.ts +13 -13
  167. package/build/dist/Input/EngineInput.d.ts +8 -8
  168. package/build/dist/Input/Gamepad.d.ts +272 -276
  169. package/build/dist/Input/Index.d.ts +138 -138
  170. package/build/dist/Input/InputMapper.d.ts +42 -42
  171. package/build/dist/Input/Keyboard.d.ts +246 -246
  172. package/build/dist/Input/NativePointerButton.d.ts +10 -10
  173. package/build/dist/Input/PointerAbstraction.d.ts +30 -30
  174. package/build/dist/Input/PointerButton.d.ts +10 -10
  175. package/build/dist/Input/PointerComponent.d.ts +24 -24
  176. package/build/dist/Input/PointerEvent.d.ts +18 -18
  177. package/build/dist/Input/PointerEventReceiver.d.ts +134 -134
  178. package/build/dist/Input/PointerScope.d.ts +14 -14
  179. package/build/dist/Input/PointerSystem.d.ts +48 -48
  180. package/build/dist/Input/PointerType.d.ts +9 -9
  181. package/build/dist/Input/WheelDeltaMode.d.ts +5 -5
  182. package/build/dist/Input/WheelEvent.d.ts +18 -18
  183. package/build/dist/Interfaces/Audio.d.ts +55 -51
  184. package/build/dist/Interfaces/AudioImplementation.d.ts +25 -25
  185. package/build/dist/Interfaces/Clonable.d.ts +3 -3
  186. package/build/dist/Interfaces/Evented.d.ts +29 -31
  187. package/build/dist/Interfaces/Index.d.ts +7 -7
  188. package/build/dist/Interfaces/LifecycleEvents.d.ts +174 -174
  189. package/build/dist/Interfaces/Loadable.d.ts +18 -18
  190. package/build/dist/Interfaces/PointerEventHandlers.d.ts +41 -41
  191. package/build/dist/Label.d.ts +66 -66
  192. package/build/dist/Loader.d.ts +190 -188
  193. package/build/dist/Math/Index.d.ts +12 -12
  194. package/build/dist/Math/Random.d.ts +125 -125
  195. package/build/dist/Math/affine-matrix.d.ts +102 -102
  196. package/build/dist/Math/coord-plane.d.ts +15 -15
  197. package/build/dist/Math/global-coordinates.d.ts +10 -10
  198. package/build/dist/Math/line-segment.d.ts +98 -99
  199. package/build/dist/Math/matrix.d.ts +132 -132
  200. package/build/dist/Math/projection.d.ts +10 -10
  201. package/build/dist/Math/ray.d.ts +25 -25
  202. package/build/dist/Math/transform.d.ts +36 -36
  203. package/build/dist/Math/util.d.ts +45 -45
  204. package/build/dist/Math/vector-view.d.ts +18 -18
  205. package/build/dist/Math/vector.d.ts +202 -205
  206. package/build/dist/Math/watch-vector.d.ts +13 -13
  207. package/build/dist/Particles.d.ts +268 -268
  208. package/build/dist/Polyfill.d.ts +6 -6
  209. package/build/dist/Resources/Gif.d.ts +103 -103
  210. package/build/dist/Resources/Index.d.ts +3 -3
  211. package/build/dist/Resources/Resource.d.ts +45 -45
  212. package/build/dist/Resources/Sound/AudioContext.d.ts +7 -7
  213. package/build/dist/Resources/Sound/Index.d.ts +3 -3
  214. package/build/dist/Resources/Sound/Sound.d.ts +138 -137
  215. package/build/dist/Resources/Sound/WebAudioInstance.d.ts +48 -48
  216. package/build/dist/Scene.d.ts +343 -346
  217. package/build/dist/Screen.d.ts +364 -300
  218. package/build/dist/ScreenElement.d.ts +17 -17
  219. package/build/dist/TileMap/IsometricEntityComponent.d.ts +15 -15
  220. package/build/dist/TileMap/IsometricEntitySystem.d.ts +10 -10
  221. package/build/dist/TileMap/IsometricMap.d.ts +186 -186
  222. package/build/dist/TileMap/TileMap.d.ts +264 -259
  223. package/build/dist/TileMap/index.d.ts +4 -4
  224. package/build/dist/Timer.d.ts +96 -96
  225. package/build/dist/Trigger.d.ts +87 -58
  226. package/build/dist/Util/Browser.d.ts +28 -28
  227. package/build/dist/Util/Clock.d.ts +117 -118
  228. package/build/dist/Util/Decorators.d.ts +15 -15
  229. package/build/dist/Util/Detector.d.ts +40 -40
  230. package/build/dist/Util/DrawUtil.d.ts +67 -69
  231. package/build/dist/Util/EasingFunctions.d.ts +58 -58
  232. package/build/dist/Util/Fps.d.ts +40 -40
  233. package/build/dist/Util/Future.d.ts +13 -13
  234. package/build/dist/Util/IFrame.d.ts +4 -4
  235. package/build/dist/Util/Index.d.ts +6 -6
  236. package/build/dist/Util/Log.d.ts +109 -109
  237. package/build/dist/Util/Observable.d.ts +55 -55
  238. package/build/dist/Util/Pool.d.ts +38 -38
  239. package/build/dist/Util/Semaphore.d.ts +15 -15
  240. package/build/dist/Util/Sound.d.ts +4 -4
  241. package/build/dist/Util/StateMachine.d.ts +40 -40
  242. package/build/dist/Util/Toaster.d.ts +19 -19
  243. package/build/dist/Util/Util.d.ts +33 -33
  244. package/build/dist/Util/Watch.d.ts +8 -8
  245. package/build/dist/Util/WebAudio.d.ts +15 -15
  246. package/build/dist/excalibur.js +29121 -28841
  247. package/build/dist/excalibur.js.map +1 -1
  248. package/build/dist/excalibur.min.js +1 -1
  249. package/build/dist/excalibur.min.js.LICENSE.txt +1 -1
  250. package/build/dist/excalibur.min.js.map +1 -1
  251. package/build/dist/index.d.ts +70 -70
  252. package/build/esm/Actions/Action/ActionSequence.d.ts +19 -19
  253. package/build/esm/Actions/Action/Blink.d.ts +17 -17
  254. package/build/esm/Actions/Action/CallMethod.d.ts +10 -10
  255. package/build/esm/Actions/Action/Delay.d.ts +12 -12
  256. package/build/esm/Actions/Action/Die.d.ts +11 -11
  257. package/build/esm/Actions/Action/EaseBy.d.ts +20 -20
  258. package/build/esm/Actions/Action/EaseTo.d.ts +19 -19
  259. package/build/esm/Actions/Action/Fade.d.ts +18 -18
  260. package/build/esm/Actions/Action/Follow.d.ts +23 -23
  261. package/build/esm/Actions/Action/Meet.d.ts +23 -23
  262. package/build/esm/Actions/Action/MoveBy.d.ts +22 -22
  263. package/build/esm/Actions/Action/MoveTo.d.ts +21 -21
  264. package/build/esm/Actions/Action/ParallelActions.d.ts +13 -13
  265. package/build/esm/Actions/Action/Repeat.d.ts +16 -16
  266. package/build/esm/Actions/Action/RepeatForever.d.ts +20 -20
  267. package/build/esm/Actions/Action/RotateBy.d.ts +27 -27
  268. package/build/esm/Actions/Action/RotateTo.d.ts +26 -26
  269. package/build/esm/Actions/Action/ScaleBy.d.ts +24 -24
  270. package/build/esm/Actions/Action/ScaleTo.d.ts +23 -23
  271. package/build/esm/Actions/Action.d.ts +10 -10
  272. package/build/esm/Actions/ActionContext.d.ts +229 -231
  273. package/build/esm/Actions/ActionQueue.d.ts +56 -56
  274. package/build/esm/Actions/Actionable.d.ts +4 -4
  275. package/build/esm/Actions/ActionsComponent.d.ts +232 -234
  276. package/build/esm/Actions/ActionsSystem.d.ts +11 -11
  277. package/build/esm/Actions/Index.d.ts +25 -25
  278. package/build/esm/Actions/RotationType.d.ts +25 -25
  279. package/build/esm/Actor.d.ts +472 -475
  280. package/build/esm/Camera.d.ts +367 -371
  281. package/build/esm/Collision/BodyComponent.d.ts +211 -211
  282. package/build/esm/Collision/BoundingBox.d.ts +134 -128
  283. package/build/esm/Collision/ColliderComponent.d.ts +96 -96
  284. package/build/esm/Collision/Colliders/CircleCollider.d.ts +96 -96
  285. package/build/esm/Collision/Colliders/ClosestLineJumpTable.d.ts +23 -23
  286. package/build/esm/Collision/Colliders/Collider.d.ts +89 -89
  287. package/build/esm/Collision/Colliders/CollisionJumpTable.d.ts +14 -14
  288. package/build/esm/Collision/Colliders/CompositeCollider.d.ts +36 -36
  289. package/build/esm/Collision/Colliders/EdgeCollider.d.ts +110 -110
  290. package/build/esm/Collision/Colliders/PolygonCollider.d.ts +169 -169
  291. package/build/esm/Collision/Colliders/SeparatingAxis.d.ts +46 -46
  292. package/build/esm/Collision/Colliders/Shape.d.ts +52 -53
  293. package/build/esm/Collision/CollisionSystem.d.ts +28 -28
  294. package/build/esm/Collision/CollisionType.d.ts +31 -31
  295. package/build/esm/Collision/Detection/CollisionContact.d.ts +53 -53
  296. package/build/esm/Collision/Detection/CollisionProcessor.d.ts +28 -28
  297. package/build/esm/Collision/Detection/DynamicTree.d.ts +85 -85
  298. package/build/esm/Collision/Detection/DynamicTreeCollisionProcessor.d.ts +81 -77
  299. package/build/esm/Collision/Detection/Pair.d.ts +35 -35
  300. package/build/esm/Collision/Detection/QuadTree.d.ts +53 -0
  301. package/build/esm/Collision/Group/CollisionGroup.d.ts +97 -95
  302. package/build/esm/Collision/Group/CollisionGroupManager.d.ts +30 -30
  303. package/build/esm/Collision/Index.d.ts +30 -29
  304. package/build/esm/Collision/Integrator.d.ts +12 -12
  305. package/build/esm/Collision/MotionSystem.d.ts +10 -10
  306. package/build/esm/Collision/Physics.d.ts +133 -133
  307. package/build/esm/Collision/PhysicsWorld.d.ts +7 -7
  308. package/build/esm/Collision/Side.d.ts +21 -21
  309. package/build/esm/Collision/Solver/ArcadeSolver.d.ts +18 -18
  310. package/build/esm/Collision/Solver/ContactConstraintPoint.d.ts +47 -47
  311. package/build/esm/Collision/Solver/RealisticSolver.d.ts +22 -22
  312. package/build/esm/Collision/Solver/Solver.d.ts +25 -25
  313. package/build/esm/Color.d.ts +220 -233
  314. package/build/esm/Configurable.d.ts +9 -9
  315. package/build/esm/Debug/Debug.d.ts +343 -345
  316. package/build/esm/Debug/DebugFlags.d.ts +24 -24
  317. package/build/esm/Debug/DebugSystem.d.ts +29 -29
  318. package/build/esm/Debug/index.d.ts +3 -3
  319. package/build/esm/Engine.d.ts +691 -688
  320. package/build/esm/EntityComponentSystem/Component.d.ts +69 -69
  321. package/build/esm/EntityComponentSystem/Components/MotionComponent.d.ts +55 -55
  322. package/build/esm/EntityComponentSystem/Components/TransformComponent.d.ts +44 -44
  323. package/build/esm/EntityComponentSystem/Entity.d.ts +277 -278
  324. package/build/esm/EntityComponentSystem/EntityManager.d.ts +35 -35
  325. package/build/esm/EntityComponentSystem/Query.d.ts +50 -51
  326. package/build/esm/EntityComponentSystem/QueryManager.d.ts +48 -48
  327. package/build/esm/EntityComponentSystem/System.d.ts +107 -107
  328. package/build/esm/EntityComponentSystem/SystemManager.d.ts +50 -50
  329. package/build/esm/EntityComponentSystem/Util.d.ts +1 -1
  330. package/build/esm/EntityComponentSystem/World.d.ts +45 -45
  331. package/build/esm/EntityComponentSystem/index.d.ts +10 -10
  332. package/build/esm/EventDispatcher.d.ts +50 -52
  333. package/build/esm/EventEmitter.d.ts +32 -32
  334. package/build/esm/Events/ExEvent.d.ts +6 -6
  335. package/build/esm/Events/MediaEvents.d.ts +47 -47
  336. package/build/esm/Events/PointerEvents.d.ts +37 -37
  337. package/build/esm/Events.d.ts +456 -456
  338. package/build/esm/Flags.d.ts +45 -46
  339. package/build/esm/Graphics/Animation.d.ts +245 -247
  340. package/build/esm/Graphics/Canvas.d.ts +24 -24
  341. package/build/esm/Graphics/Circle.d.ts +17 -17
  342. package/build/esm/Graphics/Context/ExcaliburGraphicsContext.d.ts +233 -233
  343. package/build/esm/Graphics/Context/ExcaliburGraphicsContext2DCanvas.d.ts +112 -112
  344. package/build/esm/Graphics/Context/ExcaliburGraphicsContextWebGL.d.ts +132 -132
  345. package/build/esm/Graphics/Context/circle-renderer/circle-renderer.d.ts +22 -22
  346. package/build/esm/Graphics/Context/debug-text.d.ts +24 -24
  347. package/build/esm/Graphics/Context/draw-call.d.ts +10 -10
  348. package/build/esm/Graphics/Context/image-renderer/image-renderer.d.ts +27 -27
  349. package/build/esm/Graphics/Context/line-renderer/line-renderer.d.ts +21 -21
  350. package/build/esm/Graphics/Context/material-renderer/material-renderer.d.ts +18 -18
  351. package/build/esm/Graphics/Context/material.d.ts +69 -69
  352. package/build/esm/Graphics/Context/point-renderer/point-renderer.d.ts +21 -21
  353. package/build/esm/Graphics/Context/quad-index-buffer.d.ts +37 -37
  354. package/build/esm/Graphics/Context/rectangle-renderer/rectangle-renderer.d.ts +24 -24
  355. package/build/esm/Graphics/Context/render-source.d.ts +7 -7
  356. package/build/esm/Graphics/Context/render-target.d.ts +26 -26
  357. package/build/esm/Graphics/Context/renderer.d.ts +35 -36
  358. package/build/esm/Graphics/Context/screen-pass-painter/screen-pass-painter.d.ts +13 -13
  359. package/build/esm/Graphics/Context/shader.d.ts +241 -257
  360. package/build/esm/Graphics/Context/state-stack.d.ts +11 -11
  361. package/build/esm/Graphics/Context/texture-loader.d.ts +40 -40
  362. package/build/esm/Graphics/Context/transform-stack.d.ts +12 -12
  363. package/build/esm/Graphics/Context/vertex-buffer.d.ts +53 -53
  364. package/build/esm/Graphics/Context/vertex-layout.d.ts +57 -58
  365. package/build/esm/Graphics/Context/webgl-util.d.ts +21 -22
  366. package/build/esm/Graphics/DebugGraphicsComponent.d.ts +14 -14
  367. package/build/esm/Graphics/Filtering.d.ts +15 -15
  368. package/build/esm/Graphics/Font.d.ts +71 -71
  369. package/build/esm/Graphics/FontCache.d.ts +18 -18
  370. package/build/esm/Graphics/FontCommon.d.ts +164 -164
  371. package/build/esm/Graphics/FontTextInstance.d.ts +39 -39
  372. package/build/esm/Graphics/Graphic.d.ts +149 -149
  373. package/build/esm/Graphics/GraphicsComponent.d.ts +238 -238
  374. package/build/esm/Graphics/GraphicsDiagnostics.d.ts +5 -5
  375. package/build/esm/Graphics/GraphicsGroup.d.ts +24 -24
  376. package/build/esm/Graphics/GraphicsSystem.d.ts +28 -28
  377. package/build/esm/Graphics/ImageSource.d.ts +58 -58
  378. package/build/esm/Graphics/Line.d.ts +23 -19
  379. package/build/esm/Graphics/OffscreenSystem.d.ts +16 -16
  380. package/build/esm/Graphics/ParallaxComponent.d.ts +7 -7
  381. package/build/esm/Graphics/Polygon.d.ts +19 -19
  382. package/build/esm/Graphics/PostProcessor/ColorBlindnessMode.d.ts +5 -5
  383. package/build/esm/Graphics/PostProcessor/ColorBlindnessPostProcessor.d.ts +17 -17
  384. package/build/esm/Graphics/PostProcessor/PostProcessor.d.ts +30 -30
  385. package/build/esm/Graphics/PostProcessor/ScreenShader.d.ts +16 -16
  386. package/build/esm/Graphics/Raster.d.ts +146 -146
  387. package/build/esm/Graphics/Rectangle.d.ts +13 -13
  388. package/build/esm/Graphics/Sprite.d.ts +53 -53
  389. package/build/esm/Graphics/SpriteFont.d.ts +59 -59
  390. package/build/esm/Graphics/SpriteSheet.d.ts +141 -142
  391. package/build/esm/Graphics/Text.d.ts +51 -51
  392. package/build/esm/Graphics/index.d.ts +39 -39
  393. package/build/esm/Id.d.ts +8 -8
  394. package/build/esm/Input/CapturePointerConfig.d.ts +13 -13
  395. package/build/esm/Input/EngineInput.d.ts +8 -8
  396. package/build/esm/Input/Gamepad.d.ts +272 -276
  397. package/build/esm/Input/Index.d.ts +138 -138
  398. package/build/esm/Input/InputMapper.d.ts +42 -42
  399. package/build/esm/Input/Keyboard.d.ts +246 -246
  400. package/build/esm/Input/NativePointerButton.d.ts +10 -10
  401. package/build/esm/Input/PointerAbstraction.d.ts +30 -30
  402. package/build/esm/Input/PointerButton.d.ts +10 -10
  403. package/build/esm/Input/PointerComponent.d.ts +24 -24
  404. package/build/esm/Input/PointerEvent.d.ts +18 -18
  405. package/build/esm/Input/PointerEventReceiver.d.ts +134 -134
  406. package/build/esm/Input/PointerScope.d.ts +14 -14
  407. package/build/esm/Input/PointerSystem.d.ts +48 -48
  408. package/build/esm/Input/PointerType.d.ts +9 -9
  409. package/build/esm/Input/WheelDeltaMode.d.ts +5 -5
  410. package/build/esm/Input/WheelEvent.d.ts +18 -18
  411. package/build/esm/Interfaces/Audio.d.ts +55 -51
  412. package/build/esm/Interfaces/AudioImplementation.d.ts +25 -25
  413. package/build/esm/Interfaces/Clonable.d.ts +3 -3
  414. package/build/esm/Interfaces/Evented.d.ts +29 -31
  415. package/build/esm/Interfaces/Index.d.ts +7 -7
  416. package/build/esm/Interfaces/LifecycleEvents.d.ts +174 -174
  417. package/build/esm/Interfaces/Loadable.d.ts +18 -18
  418. package/build/esm/Interfaces/PointerEventHandlers.d.ts +41 -41
  419. package/build/esm/Label.d.ts +66 -66
  420. package/build/esm/Loader.d.ts +190 -188
  421. package/build/esm/Math/Index.d.ts +12 -12
  422. package/build/esm/Math/Random.d.ts +125 -125
  423. package/build/esm/Math/affine-matrix.d.ts +102 -102
  424. package/build/esm/Math/coord-plane.d.ts +15 -15
  425. package/build/esm/Math/global-coordinates.d.ts +10 -10
  426. package/build/esm/Math/line-segment.d.ts +98 -99
  427. package/build/esm/Math/matrix.d.ts +132 -132
  428. package/build/esm/Math/projection.d.ts +10 -10
  429. package/build/esm/Math/ray.d.ts +25 -25
  430. package/build/esm/Math/transform.d.ts +36 -36
  431. package/build/esm/Math/util.d.ts +45 -45
  432. package/build/esm/Math/vector-view.d.ts +18 -18
  433. package/build/esm/Math/vector.d.ts +202 -205
  434. package/build/esm/Math/watch-vector.d.ts +13 -13
  435. package/build/esm/Particles.d.ts +268 -268
  436. package/build/esm/Polyfill.d.ts +6 -6
  437. package/build/esm/Resources/Gif.d.ts +103 -103
  438. package/build/esm/Resources/Index.d.ts +3 -3
  439. package/build/esm/Resources/Resource.d.ts +45 -45
  440. package/build/esm/Resources/Sound/AudioContext.d.ts +7 -7
  441. package/build/esm/Resources/Sound/Index.d.ts +3 -3
  442. package/build/esm/Resources/Sound/Sound.d.ts +138 -137
  443. package/build/esm/Resources/Sound/WebAudioInstance.d.ts +48 -48
  444. package/build/esm/Scene.d.ts +343 -346
  445. package/build/esm/Screen.d.ts +364 -300
  446. package/build/esm/ScreenElement.d.ts +17 -17
  447. package/build/esm/TileMap/IsometricEntityComponent.d.ts +15 -15
  448. package/build/esm/TileMap/IsometricEntitySystem.d.ts +10 -10
  449. package/build/esm/TileMap/IsometricMap.d.ts +186 -186
  450. package/build/esm/TileMap/TileMap.d.ts +264 -259
  451. package/build/esm/TileMap/index.d.ts +4 -4
  452. package/build/esm/Timer.d.ts +96 -96
  453. package/build/esm/Trigger.d.ts +87 -58
  454. package/build/esm/Util/Browser.d.ts +28 -28
  455. package/build/esm/Util/Clock.d.ts +117 -118
  456. package/build/esm/Util/Decorators.d.ts +15 -15
  457. package/build/esm/Util/Detector.d.ts +40 -40
  458. package/build/esm/Util/DrawUtil.d.ts +67 -69
  459. package/build/esm/Util/EasingFunctions.d.ts +58 -58
  460. package/build/esm/Util/Fps.d.ts +40 -40
  461. package/build/esm/Util/Future.d.ts +13 -13
  462. package/build/esm/Util/IFrame.d.ts +4 -4
  463. package/build/esm/Util/Index.d.ts +6 -6
  464. package/build/esm/Util/Log.d.ts +109 -109
  465. package/build/esm/Util/Observable.d.ts +55 -55
  466. package/build/esm/Util/Pool.d.ts +38 -38
  467. package/build/esm/Util/Semaphore.d.ts +15 -15
  468. package/build/esm/Util/Sound.d.ts +4 -4
  469. package/build/esm/Util/StateMachine.d.ts +40 -40
  470. package/build/esm/Util/Toaster.d.ts +19 -19
  471. package/build/esm/Util/Util.d.ts +33 -33
  472. package/build/esm/Util/Watch.d.ts +8 -8
  473. package/build/esm/Util/WebAudio.d.ts +15 -15
  474. package/build/esm/excalibur.js +29122 -28840
  475. package/build/esm/excalibur.js.map +1 -1
  476. package/build/esm/excalibur.min.js +1 -1
  477. package/build/esm/excalibur.min.js.LICENSE.txt +1 -1
  478. package/build/esm/excalibur.min.js.map +1 -1
  479. package/build/esm/index.d.ts +70 -70
  480. package/build/nuget/Excalibur.0.28.3.nupkg +0 -0
  481. package/build/v0.28.3.zip +0 -0
  482. package/excalibur-0.28.3.tgz +0 -0
  483. package/package.json +24 -23
  484. package/build/Excalibur.0.28.0.nupkg +0 -0
  485. package/build/dist-v0.28.0.zip +0 -0
  486. package/docker/Dockerfile +0 -20
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 18.17.0
1
+ 18.19.0
package/CHANGELOG.md CHANGED
@@ -3,11 +3,127 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
-
7
6
  ## [Unreleased]
8
7
 
9
8
  ### Breaking Changes
10
9
 
10
+ -
11
+
12
+ ### Deprecated
13
+
14
+ -
15
+
16
+ ### Added
17
+
18
+ -
19
+
20
+
21
+ ### Fixed
22
+
23
+ -
24
+
25
+ ### Updates
26
+
27
+ -
28
+
29
+ ### Changed
30
+
31
+ -
32
+
33
+ <!--------------------------------- DO NOT EDIT BELOW THIS LINE --------------------------------->
34
+ <!--------------------------------- DO NOT EDIT BELOW THIS LINE --------------------------------->
35
+ <!--------------------------------- DO NOT EDIT BELOW THIS LINE --------------------------------->
36
+
37
+
38
+ ## [v0.28.2]
39
+
40
+ ### Breaking Changes
41
+
42
+ -
43
+
44
+ ### Deprecated
45
+
46
+ -
47
+
48
+ ### Added
49
+
50
+ - Added new feature to collision group raycasting, directly provide a `collisionMask` that you want to search for.
51
+
52
+ ```typescript
53
+ const playerGroup = ex.CollisionGroupManager.create('playerGroup');
54
+ const notPlayersMask = ~playersGroup.category;
55
+ const hits = engine.currentScene.physics.rayCast(
56
+ new ex.Ray(player.pos, playerDir),
57
+ {
58
+ maxDistance: playerSightDistance,
59
+ // Search for all categories that match the mask
60
+ collisionMask: notPlayers,
61
+ searchAllColliders: false
62
+ });
63
+ ```
64
+
65
+
66
+ ### Fixed
67
+
68
+ - Fixed issue where rendering multiple materials at once would crash the renderer
69
+ - Fixed issue where raycasting with more complex collision groups was not working as expected
70
+
71
+ ### Updates
72
+
73
+ -
74
+
75
+ ### Changed
76
+
77
+ -
78
+
79
+ ## [v0.28.2]
80
+
81
+ ### Breaking Changes
82
+
83
+ -
84
+
85
+ ### Deprecated
86
+
87
+ -
88
+
89
+ ### Added
90
+
91
+ - Added `ex.Engine.version` to report the current excalibur version build string
92
+ - Added new `ex.Screen.events`
93
+ - `screen.events.on('resize', (evt) => )` Will emit when the screen is resized
94
+ - `screen.events.on('fullscreen', (evt) => )` Will emit when the screen is changed into browser fullscreen mode
95
+ - `screen.events.on('pixelratio', (evt) => )` Will emit when the screen's pixel ratio changes (moving from a hidpi screen to a non, or vice versa)
96
+
97
+ ### Fixed
98
+
99
+ - Fixed issue where removing handlers by function reference only removed the first registered one
100
+ - Fixed issue where play button was hidden when going fullscreen mode
101
+ - Fixed issue where screen resizing caused artifacts on the loading screen
102
+ - Fixed bug in `useCanvas2DFallback()` where `antialiasing` settings could be lost
103
+ - Fixed bug in `useCanvas2DFallback()` where opacity was not respected in `save
104
+ - Fixed typo in trigger event signature `entertrigger` should have been `enter`
105
+ - Fixed typo in trigger event signature `exittrigger` should have been `exit`
106
+ - Fixed typo in animation event signature `ended` should have been `end`
107
+ - Fixed issue where some excalibur `clear()` implementations modified the collection they were iterating over
108
+ - Fixed async issue where sound could not be stopped if `stop()`/`start()` were called in rapid succession
109
+ - Fixed issue with input mapper where `keyboard.wasPressed(...)` did not fire
110
+ - Fixed issue issue where TileMaps would not properly draw Tiles when setup in screen space coordinates
111
+ - Fixed issue where the ex.Line graphics bounds were incorrect causing erroneous offscreen culling
112
+ - Fixed event type signature on `ex.Engine.input.pointers.primary.on('wheel', ...)` for wheel events
113
+
114
+ ### Updates
115
+
116
+ - Improved performance in TileMaps when drawing tiles using QuadTree data structure
117
+
118
+ ### Changed
119
+
120
+ - Changed the canvas 2d fallback default, no longer is enabled by default. Developers must opt in.
121
+ - Allow entity names to be set after construction! Entities will now default to a name "Entity#1234" followed by an id.
122
+
123
+ ## [v0.28.0]
124
+
125
+ ### Breaking Changes
126
+
11
127
  - Removed `ex.Class` base class type, this was a common base class for many excalibur types that provided old on/off event functionality. This functionality has been preserved on the types that had it before using `ex.EventEmitter`
12
128
 
13
129
  ### Deprecated
@@ -193,11 +309,6 @@ stored `ex.Graphics` causing them to be shared across clones.
193
309
  - Excalibur resources by default no longer add cache busting query string to resources. All built in resources now expose a `bustCache` property to allow setting this before loading, for example `ex.Sound.bustCache`.
194
310
 
195
311
 
196
-
197
- <!--------------------------------- DO NOT EDIT BELOW THIS LINE --------------------------------->
198
- <!--------------------------------- DO NOT EDIT BELOW THIS LINE --------------------------------->
199
- <!--------------------------------- DO NOT EDIT BELOW THIS LINE --------------------------------->
200
-
201
312
  ## [0.27.0] - 2022-07-08
202
313
 
203
314
  ### Breaking Changes
@@ -1,19 +1,19 @@
1
- import { Entity } from '../../EntityComponentSystem';
2
- import { Action } from '../Action';
3
- import { ActionContext } from '../ActionContext';
4
- /**
5
- * Action that can represent a sequence of actions, this can be useful in conjunction with
6
- * [[ParallelActions]] to run multiple sequences in parallel.
7
- */
8
- export declare class ActionSequence implements Action {
9
- private _actionQueue;
10
- private _stopped;
11
- private _sequenceContext;
12
- private _sequenceBuilder;
13
- constructor(entity: Entity, actionBuilder: (actionContext: ActionContext) => any);
14
- update(delta: number): void;
15
- isComplete(): boolean;
16
- stop(): void;
17
- reset(): void;
18
- clone(entity: Entity): ActionSequence;
19
- }
1
+ import { Entity } from '../../EntityComponentSystem';
2
+ import { Action } from '../Action';
3
+ import { ActionContext } from '../ActionContext';
4
+ /**
5
+ * Action that can represent a sequence of actions, this can be useful in conjunction with
6
+ * [[ParallelActions]] to run multiple sequences in parallel.
7
+ */
8
+ export declare class ActionSequence implements Action {
9
+ private _actionQueue;
10
+ private _stopped;
11
+ private _sequenceContext;
12
+ private _sequenceBuilder;
13
+ constructor(entity: Entity, actionBuilder: (actionContext: ActionContext) => any);
14
+ update(delta: number): void;
15
+ isComplete(): boolean;
16
+ stop(): void;
17
+ reset(): void;
18
+ clone(entity: Entity): ActionSequence;
19
+ }
@@ -1,17 +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
- }
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
+ }
@@ -1,10 +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
- }
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
+ }
@@ -1,12 +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
- }
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
+ }
@@ -1,11 +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
- }
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
+ }
@@ -1,20 +1,20 @@
1
- import { Entity } from '../../EntityComponentSystem/Entity';
2
- import { Action } from '../Action';
3
- export declare class EaseBy implements Action {
4
- easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number;
5
- private _tx;
6
- private _motion;
7
- private _currentLerpTime;
8
- private _lerpDuration;
9
- private _lerpStart;
10
- private _lerpEnd;
11
- private _offset;
12
- private _initialized;
13
- private _stopped;
14
- constructor(entity: Entity, offsetX: number, offsetY: number, duration: number, easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number);
15
- private _initialize;
16
- update(delta: number): void;
17
- isComplete(): boolean;
18
- reset(): void;
19
- stop(): void;
20
- }
1
+ import { Entity } from '../../EntityComponentSystem/Entity';
2
+ import { Action } from '../Action';
3
+ export declare class EaseBy implements Action {
4
+ easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number;
5
+ private _tx;
6
+ private _motion;
7
+ private _currentLerpTime;
8
+ private _lerpDuration;
9
+ private _lerpStart;
10
+ private _lerpEnd;
11
+ private _offset;
12
+ private _initialized;
13
+ private _stopped;
14
+ constructor(entity: Entity, offsetX: number, offsetY: number, duration: number, easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number);
15
+ private _initialize;
16
+ update(delta: number): void;
17
+ isComplete(): boolean;
18
+ reset(): void;
19
+ stop(): void;
20
+ }
@@ -1,19 +1,19 @@
1
- import { Entity } from '../../EntityComponentSystem/Entity';
2
- import { Action } from '../Action';
3
- export declare class EaseTo implements Action {
4
- easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number;
5
- private _tx;
6
- private _motion;
7
- private _currentLerpTime;
8
- private _lerpDuration;
9
- private _lerpStart;
10
- private _lerpEnd;
11
- private _initialized;
12
- private _stopped;
13
- constructor(entity: Entity, x: number, y: number, duration: number, easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number);
14
- private _initialize;
15
- update(delta: number): void;
16
- isComplete(): boolean;
17
- reset(): void;
18
- stop(): void;
19
- }
1
+ import { Entity } from '../../EntityComponentSystem/Entity';
2
+ import { Action } from '../Action';
3
+ export declare class EaseTo implements Action {
4
+ easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number;
5
+ private _tx;
6
+ private _motion;
7
+ private _currentLerpTime;
8
+ private _lerpDuration;
9
+ private _lerpStart;
10
+ private _lerpEnd;
11
+ private _initialized;
12
+ private _stopped;
13
+ constructor(entity: Entity, x: number, y: number, duration: number, easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number);
14
+ private _initialize;
15
+ update(delta: number): void;
16
+ isComplete(): boolean;
17
+ reset(): void;
18
+ stop(): void;
19
+ }
@@ -1,18 +1,18 @@
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 _ogspeed;
10
- private _multiplier;
11
- private _started;
12
- private _stopped;
13
- constructor(entity: Entity, endOpacity: number, speed: number);
14
- update(delta: number): void;
15
- isComplete(): boolean;
16
- stop(): void;
17
- reset(): void;
18
- }
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 _ogspeed;
10
+ private _multiplier;
11
+ private _started;
12
+ private _stopped;
13
+ constructor(entity: Entity, endOpacity: number, speed: number);
14
+ update(delta: number): void;
15
+ isComplete(): boolean;
16
+ stop(): void;
17
+ reset(): void;
18
+ }
@@ -1,23 +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
- }
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
+ }
@@ -1,23 +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
- }
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
+ }
@@ -1,22 +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
- }
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
+ }
@@ -1,21 +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
- }
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
+ }
@@ -1,13 +1,13 @@
1
- import { Entity } from '../../EntityComponentSystem';
2
- import { Action } from '../Action';
3
- /**
4
- * Action that can run multiple [[Action]]s or [[ActionSequence]]s at the same time
5
- */
6
- export declare class ParallelActions implements Action {
7
- private _actions;
8
- constructor(parallelActions: Action[]);
9
- update(delta: number): void;
10
- isComplete(entity: Entity): boolean;
11
- reset(): void;
12
- stop(): void;
13
- }
1
+ import { Entity } from '../../EntityComponentSystem';
2
+ import { Action } from '../Action';
3
+ /**
4
+ * Action that can run multiple [[Action]]s or [[ActionSequence]]s at the same time
5
+ */
6
+ export declare class ParallelActions implements Action {
7
+ private _actions;
8
+ constructor(parallelActions: Action[]);
9
+ update(delta: number): void;
10
+ isComplete(entity: Entity): boolean;
11
+ reset(): void;
12
+ stop(): void;
13
+ }
@@ -1,16 +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
- }
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
+ }