excalibur 0.28.1 → 0.28.2

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