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.
- package/.nvmrc +1 -1
- package/CHANGELOG.md +48 -6
- package/build/dist/Actions/Action/ActionSequence.d.ts +19 -19
- package/build/dist/Actions/Action/Blink.d.ts +17 -17
- package/build/dist/Actions/Action/CallMethod.d.ts +10 -10
- package/build/dist/Actions/Action/Delay.d.ts +12 -12
- package/build/dist/Actions/Action/Die.d.ts +11 -11
- package/build/dist/Actions/Action/EaseBy.d.ts +20 -20
- package/build/dist/Actions/Action/EaseTo.d.ts +19 -19
- package/build/dist/Actions/Action/Fade.d.ts +18 -18
- package/build/dist/Actions/Action/Follow.d.ts +23 -23
- package/build/dist/Actions/Action/Meet.d.ts +23 -23
- package/build/dist/Actions/Action/MoveBy.d.ts +22 -22
- package/build/dist/Actions/Action/MoveTo.d.ts +21 -21
- package/build/dist/Actions/Action/ParallelActions.d.ts +13 -13
- package/build/dist/Actions/Action/Repeat.d.ts +16 -16
- package/build/dist/Actions/Action/RepeatForever.d.ts +20 -20
- package/build/dist/Actions/Action/RotateBy.d.ts +27 -27
- package/build/dist/Actions/Action/RotateTo.d.ts +26 -26
- package/build/dist/Actions/Action/ScaleBy.d.ts +24 -24
- package/build/dist/Actions/Action/ScaleTo.d.ts +23 -23
- package/build/dist/Actions/Action.d.ts +10 -10
- package/build/dist/Actions/ActionContext.d.ts +229 -231
- package/build/dist/Actions/ActionQueue.d.ts +56 -56
- package/build/dist/Actions/Actionable.d.ts +4 -4
- package/build/dist/Actions/ActionsComponent.d.ts +232 -234
- package/build/dist/Actions/ActionsSystem.d.ts +11 -11
- package/build/dist/Actions/Index.d.ts +25 -25
- package/build/dist/Actions/RotationType.d.ts +25 -25
- package/build/dist/Actor.d.ts +472 -475
- package/build/dist/Camera.d.ts +367 -371
- package/build/dist/Collision/BodyComponent.d.ts +211 -211
- package/build/dist/Collision/BoundingBox.d.ts +134 -128
- package/build/dist/Collision/ColliderComponent.d.ts +96 -96
- package/build/dist/Collision/Colliders/CircleCollider.d.ts +96 -96
- package/build/dist/Collision/Colliders/ClosestLineJumpTable.d.ts +23 -23
- package/build/dist/Collision/Colliders/Collider.d.ts +89 -89
- package/build/dist/Collision/Colliders/CollisionJumpTable.d.ts +14 -14
- package/build/dist/Collision/Colliders/CompositeCollider.d.ts +36 -36
- package/build/dist/Collision/Colliders/EdgeCollider.d.ts +110 -110
- package/build/dist/Collision/Colliders/PolygonCollider.d.ts +169 -169
- package/build/dist/Collision/Colliders/SeparatingAxis.d.ts +46 -46
- package/build/dist/Collision/Colliders/Shape.d.ts +52 -53
- package/build/dist/Collision/CollisionSystem.d.ts +28 -28
- package/build/dist/Collision/CollisionType.d.ts +31 -31
- package/build/dist/Collision/Detection/CollisionContact.d.ts +53 -53
- package/build/dist/Collision/Detection/CollisionProcessor.d.ts +28 -28
- package/build/dist/Collision/Detection/DynamicTree.d.ts +85 -85
- package/build/dist/Collision/Detection/DynamicTreeCollisionProcessor.d.ts +77 -77
- package/build/dist/Collision/Detection/Pair.d.ts +35 -35
- package/build/dist/Collision/Detection/QuadTree.d.ts +53 -0
- package/build/dist/Collision/Group/CollisionGroup.d.ts +94 -95
- package/build/dist/Collision/Group/CollisionGroupManager.d.ts +30 -30
- package/build/dist/Collision/Index.d.ts +30 -29
- package/build/dist/Collision/Integrator.d.ts +12 -12
- package/build/dist/Collision/MotionSystem.d.ts +10 -10
- package/build/dist/Collision/Physics.d.ts +133 -133
- package/build/dist/Collision/PhysicsWorld.d.ts +7 -7
- package/build/dist/Collision/Side.d.ts +21 -21
- package/build/dist/Collision/Solver/ArcadeSolver.d.ts +18 -18
- package/build/dist/Collision/Solver/ContactConstraintPoint.d.ts +47 -47
- package/build/dist/Collision/Solver/RealisticSolver.d.ts +22 -22
- package/build/dist/Collision/Solver/Solver.d.ts +25 -25
- package/build/dist/Color.d.ts +220 -233
- package/build/dist/Configurable.d.ts +9 -9
- package/build/dist/Debug/Debug.d.ts +343 -345
- package/build/dist/Debug/DebugFlags.d.ts +24 -24
- package/build/dist/Debug/DebugSystem.d.ts +29 -29
- package/build/dist/Debug/index.d.ts +3 -3
- package/build/dist/Engine.d.ts +691 -688
- package/build/dist/EntityComponentSystem/Component.d.ts +69 -69
- package/build/dist/EntityComponentSystem/Components/MotionComponent.d.ts +55 -55
- package/build/dist/EntityComponentSystem/Components/TransformComponent.d.ts +44 -44
- package/build/dist/EntityComponentSystem/Entity.d.ts +277 -278
- package/build/dist/EntityComponentSystem/EntityManager.d.ts +35 -35
- package/build/dist/EntityComponentSystem/Query.d.ts +50 -51
- package/build/dist/EntityComponentSystem/QueryManager.d.ts +48 -48
- package/build/dist/EntityComponentSystem/System.d.ts +107 -107
- package/build/dist/EntityComponentSystem/SystemManager.d.ts +50 -50
- package/build/dist/EntityComponentSystem/Util.d.ts +1 -1
- package/build/dist/EntityComponentSystem/World.d.ts +45 -45
- package/build/dist/EntityComponentSystem/index.d.ts +10 -10
- package/build/dist/EventDispatcher.d.ts +50 -52
- package/build/dist/EventEmitter.d.ts +32 -32
- package/build/dist/Events/ExEvent.d.ts +6 -6
- package/build/dist/Events/MediaEvents.d.ts +47 -47
- package/build/dist/Events/PointerEvents.d.ts +37 -37
- package/build/dist/Events.d.ts +456 -456
- package/build/dist/Flags.d.ts +45 -46
- package/build/dist/Graphics/Animation.d.ts +245 -247
- package/build/dist/Graphics/Canvas.d.ts +24 -24
- package/build/dist/Graphics/Circle.d.ts +17 -17
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext.d.ts +233 -233
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext2DCanvas.d.ts +112 -112
- package/build/dist/Graphics/Context/ExcaliburGraphicsContextWebGL.d.ts +132 -132
- package/build/dist/Graphics/Context/circle-renderer/circle-renderer.d.ts +22 -22
- package/build/dist/Graphics/Context/debug-font.png +0 -0
- package/build/dist/Graphics/Context/debug-text.d.ts +24 -24
- package/build/dist/Graphics/Context/draw-call.d.ts +10 -10
- package/build/dist/Graphics/Context/image-renderer/image-renderer.d.ts +27 -27
- package/build/dist/Graphics/Context/line-renderer/line-renderer.d.ts +21 -21
- package/build/dist/Graphics/Context/material-renderer/material-renderer.d.ts +18 -18
- package/build/dist/Graphics/Context/material.d.ts +69 -69
- package/build/dist/Graphics/Context/point-renderer/point-renderer.d.ts +21 -21
- package/build/dist/Graphics/Context/quad-index-buffer.d.ts +37 -37
- package/build/dist/Graphics/Context/rectangle-renderer/rectangle-renderer.d.ts +24 -24
- package/build/dist/Graphics/Context/render-source.d.ts +7 -7
- package/build/dist/Graphics/Context/render-target.d.ts +26 -26
- package/build/dist/Graphics/Context/renderer.d.ts +35 -36
- package/build/dist/Graphics/Context/screen-pass-painter/screen-pass-painter.d.ts +13 -13
- package/build/dist/Graphics/Context/shader.d.ts +241 -257
- package/build/dist/Graphics/Context/state-stack.d.ts +11 -11
- package/build/dist/Graphics/Context/texture-loader.d.ts +40 -40
- package/build/dist/Graphics/Context/transform-stack.d.ts +12 -12
- package/build/dist/Graphics/Context/vertex-buffer.d.ts +53 -53
- package/build/dist/Graphics/Context/vertex-layout.d.ts +57 -58
- package/build/dist/Graphics/Context/webgl-util.d.ts +21 -22
- package/build/dist/Graphics/DebugGraphicsComponent.d.ts +14 -14
- package/build/dist/Graphics/Filtering.d.ts +15 -15
- package/build/dist/Graphics/Font.d.ts +71 -71
- package/build/dist/Graphics/FontCache.d.ts +18 -18
- package/build/dist/Graphics/FontCommon.d.ts +164 -164
- package/build/dist/Graphics/FontTextInstance.d.ts +39 -39
- package/build/dist/Graphics/Graphic.d.ts +149 -149
- package/build/dist/Graphics/GraphicsComponent.d.ts +238 -238
- package/build/dist/Graphics/GraphicsDiagnostics.d.ts +5 -5
- package/build/dist/Graphics/GraphicsGroup.d.ts +24 -24
- package/build/dist/Graphics/GraphicsSystem.d.ts +28 -28
- package/build/dist/Graphics/ImageSource.d.ts +58 -58
- package/build/dist/Graphics/Line.d.ts +23 -19
- package/build/dist/Graphics/OffscreenSystem.d.ts +16 -16
- package/build/dist/Graphics/ParallaxComponent.d.ts +7 -7
- package/build/dist/Graphics/Polygon.d.ts +19 -19
- package/build/dist/Graphics/PostProcessor/ColorBlindnessMode.d.ts +5 -5
- package/build/dist/Graphics/PostProcessor/ColorBlindnessPostProcessor.d.ts +17 -17
- package/build/dist/Graphics/PostProcessor/PostProcessor.d.ts +30 -30
- package/build/dist/Graphics/PostProcessor/ScreenShader.d.ts +16 -16
- package/build/dist/Graphics/Raster.d.ts +146 -146
- package/build/dist/Graphics/Rectangle.d.ts +13 -13
- package/build/dist/Graphics/Sprite.d.ts +53 -53
- package/build/dist/Graphics/SpriteFont.d.ts +59 -59
- package/build/dist/Graphics/SpriteSheet.d.ts +141 -142
- package/build/dist/Graphics/Text.d.ts +51 -51
- package/build/dist/Graphics/index.d.ts +39 -39
- package/build/dist/Id.d.ts +8 -8
- package/build/dist/Input/CapturePointerConfig.d.ts +13 -13
- package/build/dist/Input/EngineInput.d.ts +8 -8
- package/build/dist/Input/Gamepad.d.ts +272 -276
- package/build/dist/Input/Index.d.ts +138 -138
- package/build/dist/Input/InputMapper.d.ts +42 -42
- package/build/dist/Input/Keyboard.d.ts +246 -246
- package/build/dist/Input/NativePointerButton.d.ts +10 -10
- package/build/dist/Input/PointerAbstraction.d.ts +30 -30
- package/build/dist/Input/PointerButton.d.ts +10 -10
- package/build/dist/Input/PointerComponent.d.ts +24 -24
- package/build/dist/Input/PointerEvent.d.ts +18 -18
- package/build/dist/Input/PointerEventReceiver.d.ts +134 -134
- package/build/dist/Input/PointerScope.d.ts +14 -14
- package/build/dist/Input/PointerSystem.d.ts +48 -48
- package/build/dist/Input/PointerType.d.ts +9 -9
- package/build/dist/Input/WheelDeltaMode.d.ts +5 -5
- package/build/dist/Input/WheelEvent.d.ts +18 -18
- package/build/dist/Interfaces/Audio.d.ts +55 -51
- package/build/dist/Interfaces/AudioImplementation.d.ts +25 -25
- package/build/dist/Interfaces/Clonable.d.ts +3 -3
- package/build/dist/Interfaces/Evented.d.ts +29 -31
- package/build/dist/Interfaces/Index.d.ts +7 -7
- package/build/dist/Interfaces/LifecycleEvents.d.ts +174 -174
- package/build/dist/Interfaces/Loadable.d.ts +18 -18
- package/build/dist/Interfaces/PointerEventHandlers.d.ts +41 -41
- package/build/dist/Label.d.ts +66 -66
- package/build/dist/Loader.d.ts +190 -188
- package/build/dist/Math/Index.d.ts +12 -12
- package/build/dist/Math/Random.d.ts +125 -125
- package/build/dist/Math/affine-matrix.d.ts +102 -102
- package/build/dist/Math/coord-plane.d.ts +15 -15
- package/build/dist/Math/global-coordinates.d.ts +10 -10
- package/build/dist/Math/line-segment.d.ts +98 -99
- package/build/dist/Math/matrix.d.ts +132 -132
- package/build/dist/Math/projection.d.ts +10 -10
- package/build/dist/Math/ray.d.ts +25 -25
- package/build/dist/Math/transform.d.ts +36 -36
- package/build/dist/Math/util.d.ts +45 -45
- package/build/dist/Math/vector-view.d.ts +18 -18
- package/build/dist/Math/vector.d.ts +202 -205
- package/build/dist/Math/watch-vector.d.ts +13 -13
- package/build/dist/Particles.d.ts +268 -268
- package/build/dist/Polyfill.d.ts +6 -6
- package/build/dist/Resources/Gif.d.ts +103 -103
- package/build/dist/Resources/Index.d.ts +3 -3
- package/build/dist/Resources/Resource.d.ts +45 -45
- package/build/dist/Resources/Sound/AudioContext.d.ts +7 -7
- package/build/dist/Resources/Sound/Index.d.ts +3 -3
- package/build/dist/Resources/Sound/Sound.d.ts +138 -137
- package/build/dist/Resources/Sound/WebAudioInstance.d.ts +48 -48
- package/build/dist/Scene.d.ts +343 -346
- package/build/dist/Screen.d.ts +364 -300
- package/build/dist/ScreenElement.d.ts +17 -17
- package/build/dist/TileMap/IsometricEntityComponent.d.ts +15 -15
- package/build/dist/TileMap/IsometricEntitySystem.d.ts +10 -10
- package/build/dist/TileMap/IsometricMap.d.ts +186 -186
- package/build/dist/TileMap/TileMap.d.ts +264 -259
- package/build/dist/TileMap/index.d.ts +4 -4
- package/build/dist/Timer.d.ts +96 -96
- package/build/dist/Trigger.d.ts +87 -58
- package/build/dist/Util/Browser.d.ts +28 -28
- package/build/dist/Util/Clock.d.ts +117 -118
- package/build/dist/Util/Decorators.d.ts +15 -15
- package/build/dist/Util/Detector.d.ts +40 -40
- package/build/dist/Util/DrawUtil.d.ts +67 -69
- package/build/dist/Util/EasingFunctions.d.ts +58 -58
- package/build/dist/Util/Fps.d.ts +40 -40
- package/build/dist/Util/Future.d.ts +13 -13
- package/build/dist/Util/IFrame.d.ts +4 -4
- package/build/dist/Util/Index.d.ts +6 -6
- package/build/dist/Util/Log.d.ts +109 -109
- package/build/dist/Util/Observable.d.ts +55 -55
- package/build/dist/Util/Pool.d.ts +38 -38
- package/build/dist/Util/Semaphore.d.ts +15 -15
- package/build/dist/Util/Sound.d.ts +4 -4
- package/build/dist/Util/StateMachine.d.ts +40 -40
- package/build/dist/Util/Toaster.d.ts +19 -19
- package/build/dist/Util/Util.d.ts +33 -33
- package/build/dist/Util/Watch.d.ts +8 -8
- package/build/dist/Util/WebAudio.d.ts +15 -15
- package/build/dist/excalibur.js +29092 -28841
- package/build/dist/excalibur.js.map +1 -1
- package/build/dist/excalibur.min.js +1 -1
- package/build/dist/excalibur.min.js.LICENSE.txt +1 -1
- package/build/dist/excalibur.min.js.map +1 -1
- package/build/dist/index.d.ts +70 -70
- package/build/dist-v0.28.2.zip +0 -0
- package/build/esm/Actions/Action/ActionSequence.d.ts +19 -19
- package/build/esm/Actions/Action/Blink.d.ts +17 -17
- package/build/esm/Actions/Action/CallMethod.d.ts +10 -10
- package/build/esm/Actions/Action/Delay.d.ts +12 -12
- package/build/esm/Actions/Action/Die.d.ts +11 -11
- package/build/esm/Actions/Action/EaseBy.d.ts +20 -20
- package/build/esm/Actions/Action/EaseTo.d.ts +19 -19
- package/build/esm/Actions/Action/Fade.d.ts +18 -18
- package/build/esm/Actions/Action/Follow.d.ts +23 -23
- package/build/esm/Actions/Action/Meet.d.ts +23 -23
- package/build/esm/Actions/Action/MoveBy.d.ts +22 -22
- package/build/esm/Actions/Action/MoveTo.d.ts +21 -21
- package/build/esm/Actions/Action/ParallelActions.d.ts +13 -13
- package/build/esm/Actions/Action/Repeat.d.ts +16 -16
- package/build/esm/Actions/Action/RepeatForever.d.ts +20 -20
- package/build/esm/Actions/Action/RotateBy.d.ts +27 -27
- package/build/esm/Actions/Action/RotateTo.d.ts +26 -26
- package/build/esm/Actions/Action/ScaleBy.d.ts +24 -24
- package/build/esm/Actions/Action/ScaleTo.d.ts +23 -23
- package/build/esm/Actions/Action.d.ts +10 -10
- package/build/esm/Actions/ActionContext.d.ts +229 -231
- package/build/esm/Actions/ActionQueue.d.ts +56 -56
- package/build/esm/Actions/Actionable.d.ts +4 -4
- package/build/esm/Actions/ActionsComponent.d.ts +232 -234
- package/build/esm/Actions/ActionsSystem.d.ts +11 -11
- package/build/esm/Actions/Index.d.ts +25 -25
- package/build/esm/Actions/RotationType.d.ts +25 -25
- package/build/esm/Actor.d.ts +472 -475
- package/build/esm/Camera.d.ts +367 -371
- package/build/esm/Collision/BodyComponent.d.ts +211 -211
- package/build/esm/Collision/BoundingBox.d.ts +134 -128
- package/build/esm/Collision/ColliderComponent.d.ts +96 -96
- package/build/esm/Collision/Colliders/CircleCollider.d.ts +96 -96
- package/build/esm/Collision/Colliders/ClosestLineJumpTable.d.ts +23 -23
- package/build/esm/Collision/Colliders/Collider.d.ts +89 -89
- package/build/esm/Collision/Colliders/CollisionJumpTable.d.ts +14 -14
- package/build/esm/Collision/Colliders/CompositeCollider.d.ts +36 -36
- package/build/esm/Collision/Colliders/EdgeCollider.d.ts +110 -110
- package/build/esm/Collision/Colliders/PolygonCollider.d.ts +169 -169
- package/build/esm/Collision/Colliders/SeparatingAxis.d.ts +46 -46
- package/build/esm/Collision/Colliders/Shape.d.ts +52 -53
- package/build/esm/Collision/CollisionSystem.d.ts +28 -28
- package/build/esm/Collision/CollisionType.d.ts +31 -31
- package/build/esm/Collision/Detection/CollisionContact.d.ts +53 -53
- package/build/esm/Collision/Detection/CollisionProcessor.d.ts +28 -28
- package/build/esm/Collision/Detection/DynamicTree.d.ts +85 -85
- package/build/esm/Collision/Detection/DynamicTreeCollisionProcessor.d.ts +77 -77
- package/build/esm/Collision/Detection/Pair.d.ts +35 -35
- package/build/esm/Collision/Detection/QuadTree.d.ts +53 -0
- package/build/esm/Collision/Group/CollisionGroup.d.ts +94 -95
- package/build/esm/Collision/Group/CollisionGroupManager.d.ts +30 -30
- package/build/esm/Collision/Index.d.ts +30 -29
- package/build/esm/Collision/Integrator.d.ts +12 -12
- package/build/esm/Collision/MotionSystem.d.ts +10 -10
- package/build/esm/Collision/Physics.d.ts +133 -133
- package/build/esm/Collision/PhysicsWorld.d.ts +7 -7
- package/build/esm/Collision/Side.d.ts +21 -21
- package/build/esm/Collision/Solver/ArcadeSolver.d.ts +18 -18
- package/build/esm/Collision/Solver/ContactConstraintPoint.d.ts +47 -47
- package/build/esm/Collision/Solver/RealisticSolver.d.ts +22 -22
- package/build/esm/Collision/Solver/Solver.d.ts +25 -25
- package/build/esm/Color.d.ts +220 -233
- package/build/esm/Configurable.d.ts +9 -9
- package/build/esm/Debug/Debug.d.ts +343 -345
- package/build/esm/Debug/DebugFlags.d.ts +24 -24
- package/build/esm/Debug/DebugSystem.d.ts +29 -29
- package/build/esm/Debug/index.d.ts +3 -3
- package/build/esm/Engine.d.ts +691 -688
- package/build/esm/EntityComponentSystem/Component.d.ts +69 -69
- package/build/esm/EntityComponentSystem/Components/MotionComponent.d.ts +55 -55
- package/build/esm/EntityComponentSystem/Components/TransformComponent.d.ts +44 -44
- package/build/esm/EntityComponentSystem/Entity.d.ts +277 -278
- package/build/esm/EntityComponentSystem/EntityManager.d.ts +35 -35
- package/build/esm/EntityComponentSystem/Query.d.ts +50 -51
- package/build/esm/EntityComponentSystem/QueryManager.d.ts +48 -48
- package/build/esm/EntityComponentSystem/System.d.ts +107 -107
- package/build/esm/EntityComponentSystem/SystemManager.d.ts +50 -50
- package/build/esm/EntityComponentSystem/Util.d.ts +1 -1
- package/build/esm/EntityComponentSystem/World.d.ts +45 -45
- package/build/esm/EntityComponentSystem/index.d.ts +10 -10
- package/build/esm/EventDispatcher.d.ts +50 -52
- package/build/esm/EventEmitter.d.ts +32 -32
- package/build/esm/Events/ExEvent.d.ts +6 -6
- package/build/esm/Events/MediaEvents.d.ts +47 -47
- package/build/esm/Events/PointerEvents.d.ts +37 -37
- package/build/esm/Events.d.ts +456 -456
- package/build/esm/Flags.d.ts +45 -46
- package/build/esm/Graphics/Animation.d.ts +245 -247
- package/build/esm/Graphics/Canvas.d.ts +24 -24
- package/build/esm/Graphics/Circle.d.ts +17 -17
- package/build/esm/Graphics/Context/ExcaliburGraphicsContext.d.ts +233 -233
- package/build/esm/Graphics/Context/ExcaliburGraphicsContext2DCanvas.d.ts +112 -112
- package/build/esm/Graphics/Context/ExcaliburGraphicsContextWebGL.d.ts +132 -132
- package/build/esm/Graphics/Context/circle-renderer/circle-renderer.d.ts +22 -22
- package/build/esm/Graphics/Context/debug-text.d.ts +24 -24
- package/build/esm/Graphics/Context/draw-call.d.ts +10 -10
- package/build/esm/Graphics/Context/image-renderer/image-renderer.d.ts +27 -27
- package/build/esm/Graphics/Context/line-renderer/line-renderer.d.ts +21 -21
- package/build/esm/Graphics/Context/material-renderer/material-renderer.d.ts +18 -18
- package/build/esm/Graphics/Context/material.d.ts +69 -69
- package/build/esm/Graphics/Context/point-renderer/point-renderer.d.ts +21 -21
- package/build/esm/Graphics/Context/quad-index-buffer.d.ts +37 -37
- package/build/esm/Graphics/Context/rectangle-renderer/rectangle-renderer.d.ts +24 -24
- package/build/esm/Graphics/Context/render-source.d.ts +7 -7
- package/build/esm/Graphics/Context/render-target.d.ts +26 -26
- package/build/esm/Graphics/Context/renderer.d.ts +35 -36
- package/build/esm/Graphics/Context/screen-pass-painter/screen-pass-painter.d.ts +13 -13
- package/build/esm/Graphics/Context/shader.d.ts +241 -257
- package/build/esm/Graphics/Context/state-stack.d.ts +11 -11
- package/build/esm/Graphics/Context/texture-loader.d.ts +40 -40
- package/build/esm/Graphics/Context/transform-stack.d.ts +12 -12
- package/build/esm/Graphics/Context/vertex-buffer.d.ts +53 -53
- package/build/esm/Graphics/Context/vertex-layout.d.ts +57 -58
- package/build/esm/Graphics/Context/webgl-util.d.ts +21 -22
- package/build/esm/Graphics/DebugGraphicsComponent.d.ts +14 -14
- package/build/esm/Graphics/Filtering.d.ts +15 -15
- package/build/esm/Graphics/Font.d.ts +71 -71
- package/build/esm/Graphics/FontCache.d.ts +18 -18
- package/build/esm/Graphics/FontCommon.d.ts +164 -164
- package/build/esm/Graphics/FontTextInstance.d.ts +39 -39
- package/build/esm/Graphics/Graphic.d.ts +149 -149
- package/build/esm/Graphics/GraphicsComponent.d.ts +238 -238
- package/build/esm/Graphics/GraphicsDiagnostics.d.ts +5 -5
- package/build/esm/Graphics/GraphicsGroup.d.ts +24 -24
- package/build/esm/Graphics/GraphicsSystem.d.ts +28 -28
- package/build/esm/Graphics/ImageSource.d.ts +58 -58
- package/build/esm/Graphics/Line.d.ts +23 -19
- package/build/esm/Graphics/OffscreenSystem.d.ts +16 -16
- package/build/esm/Graphics/ParallaxComponent.d.ts +7 -7
- package/build/esm/Graphics/Polygon.d.ts +19 -19
- package/build/esm/Graphics/PostProcessor/ColorBlindnessMode.d.ts +5 -5
- package/build/esm/Graphics/PostProcessor/ColorBlindnessPostProcessor.d.ts +17 -17
- package/build/esm/Graphics/PostProcessor/PostProcessor.d.ts +30 -30
- package/build/esm/Graphics/PostProcessor/ScreenShader.d.ts +16 -16
- package/build/esm/Graphics/Raster.d.ts +146 -146
- package/build/esm/Graphics/Rectangle.d.ts +13 -13
- package/build/esm/Graphics/Sprite.d.ts +53 -53
- package/build/esm/Graphics/SpriteFont.d.ts +59 -59
- package/build/esm/Graphics/SpriteSheet.d.ts +141 -142
- package/build/esm/Graphics/Text.d.ts +51 -51
- package/build/esm/Graphics/index.d.ts +39 -39
- package/build/esm/Id.d.ts +8 -8
- package/build/esm/Input/CapturePointerConfig.d.ts +13 -13
- package/build/esm/Input/EngineInput.d.ts +8 -8
- package/build/esm/Input/Gamepad.d.ts +272 -276
- package/build/esm/Input/Index.d.ts +138 -138
- package/build/esm/Input/InputMapper.d.ts +42 -42
- package/build/esm/Input/Keyboard.d.ts +246 -246
- package/build/esm/Input/NativePointerButton.d.ts +10 -10
- package/build/esm/Input/PointerAbstraction.d.ts +30 -30
- package/build/esm/Input/PointerButton.d.ts +10 -10
- package/build/esm/Input/PointerComponent.d.ts +24 -24
- package/build/esm/Input/PointerEvent.d.ts +18 -18
- package/build/esm/Input/PointerEventReceiver.d.ts +134 -134
- package/build/esm/Input/PointerScope.d.ts +14 -14
- package/build/esm/Input/PointerSystem.d.ts +48 -48
- package/build/esm/Input/PointerType.d.ts +9 -9
- package/build/esm/Input/WheelDeltaMode.d.ts +5 -5
- package/build/esm/Input/WheelEvent.d.ts +18 -18
- package/build/esm/Interfaces/Audio.d.ts +55 -51
- package/build/esm/Interfaces/AudioImplementation.d.ts +25 -25
- package/build/esm/Interfaces/Clonable.d.ts +3 -3
- package/build/esm/Interfaces/Evented.d.ts +29 -31
- package/build/esm/Interfaces/Index.d.ts +7 -7
- package/build/esm/Interfaces/LifecycleEvents.d.ts +174 -174
- package/build/esm/Interfaces/Loadable.d.ts +18 -18
- package/build/esm/Interfaces/PointerEventHandlers.d.ts +41 -41
- package/build/esm/Label.d.ts +66 -66
- package/build/esm/Loader.d.ts +190 -188
- package/build/esm/Math/Index.d.ts +12 -12
- package/build/esm/Math/Random.d.ts +125 -125
- package/build/esm/Math/affine-matrix.d.ts +102 -102
- package/build/esm/Math/coord-plane.d.ts +15 -15
- package/build/esm/Math/global-coordinates.d.ts +10 -10
- package/build/esm/Math/line-segment.d.ts +98 -99
- package/build/esm/Math/matrix.d.ts +132 -132
- package/build/esm/Math/projection.d.ts +10 -10
- package/build/esm/Math/ray.d.ts +25 -25
- package/build/esm/Math/transform.d.ts +36 -36
- package/build/esm/Math/util.d.ts +45 -45
- package/build/esm/Math/vector-view.d.ts +18 -18
- package/build/esm/Math/vector.d.ts +202 -205
- package/build/esm/Math/watch-vector.d.ts +13 -13
- package/build/esm/Particles.d.ts +268 -268
- package/build/esm/Polyfill.d.ts +6 -6
- package/build/esm/Resources/Gif.d.ts +103 -103
- package/build/esm/Resources/Index.d.ts +3 -3
- package/build/esm/Resources/Resource.d.ts +45 -45
- package/build/esm/Resources/Sound/AudioContext.d.ts +7 -7
- package/build/esm/Resources/Sound/Index.d.ts +3 -3
- package/build/esm/Resources/Sound/Sound.d.ts +138 -137
- package/build/esm/Resources/Sound/WebAudioInstance.d.ts +48 -48
- package/build/esm/Scene.d.ts +343 -346
- package/build/esm/Screen.d.ts +364 -300
- package/build/esm/ScreenElement.d.ts +17 -17
- package/build/esm/TileMap/IsometricEntityComponent.d.ts +15 -15
- package/build/esm/TileMap/IsometricEntitySystem.d.ts +10 -10
- package/build/esm/TileMap/IsometricMap.d.ts +186 -186
- package/build/esm/TileMap/TileMap.d.ts +264 -259
- package/build/esm/TileMap/index.d.ts +4 -4
- package/build/esm/Timer.d.ts +96 -96
- package/build/esm/Trigger.d.ts +87 -58
- package/build/esm/Util/Browser.d.ts +28 -28
- package/build/esm/Util/Clock.d.ts +117 -118
- package/build/esm/Util/Decorators.d.ts +15 -15
- package/build/esm/Util/Detector.d.ts +40 -40
- package/build/esm/Util/DrawUtil.d.ts +67 -69
- package/build/esm/Util/EasingFunctions.d.ts +58 -58
- package/build/esm/Util/Fps.d.ts +40 -40
- package/build/esm/Util/Future.d.ts +13 -13
- package/build/esm/Util/IFrame.d.ts +4 -4
- package/build/esm/Util/Index.d.ts +6 -6
- package/build/esm/Util/Log.d.ts +109 -109
- package/build/esm/Util/Observable.d.ts +55 -55
- package/build/esm/Util/Pool.d.ts +38 -38
- package/build/esm/Util/Semaphore.d.ts +15 -15
- package/build/esm/Util/Sound.d.ts +4 -4
- package/build/esm/Util/StateMachine.d.ts +40 -40
- package/build/esm/Util/Toaster.d.ts +19 -19
- package/build/esm/Util/Util.d.ts +33 -33
- package/build/esm/Util/Watch.d.ts +8 -8
- package/build/esm/Util/WebAudio.d.ts +15 -15
- package/build/esm/excalibur.js +29093 -28840
- package/build/esm/excalibur.js.map +1 -1
- package/build/esm/excalibur.min.js +1 -1
- package/build/esm/excalibur.min.js.LICENSE.txt +1 -1
- package/build/esm/excalibur.min.js.map +1 -1
- package/build/esm/index.d.ts +70 -70
- package/build/nuget/Excalibur.0.28.2.nupkg +0 -0
- package/package.json +24 -23
- package/site/build/api/namespace/Provides support for mice, keyboards, and controllers./index.html +49 -0
- package/build/Excalibur.0.28.0.nupkg +0 -0
- package/build/dist-v0.28.0.zip +0 -0
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
18.
|
|
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
|
+
}
|