excalibur 0.25.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nvmrc +1 -1
- package/CHANGELOG.md +49 -9
- package/LICENSE.md +1 -1
- package/README.md +8 -12
- package/build/dist/Actions/Action/Blink.d.ts +3 -3
- package/build/dist/Actions/Action/Delay.d.ts +1 -5
- package/build/dist/Actions/Action/Die.d.ts +3 -5
- package/build/dist/Actions/Action/EaseTo.d.ts +4 -2
- package/build/dist/Actions/Action/Fade.d.ts +3 -3
- package/build/dist/Actions/Action/Follow.d.ts +6 -4
- package/build/dist/Actions/Action/Meet.d.ts +6 -4
- package/build/dist/Actions/Action/MoveBy.d.ts +6 -4
- package/build/dist/Actions/Action/MoveTo.d.ts +6 -4
- package/build/dist/Actions/Action/Repeat.d.ts +2 -2
- package/build/dist/Actions/Action/RepeatForever.d.ts +2 -2
- package/build/dist/Actions/Action/RotateBy.d.ts +4 -3
- package/build/dist/Actions/Action/RotateTo.d.ts +4 -3
- package/build/dist/Actions/Action/ScaleBy.d.ts +4 -3
- package/build/dist/Actions/Action/ScaleTo.d.ts +4 -3
- package/build/dist/Actions/Action.d.ts +2 -2
- package/build/dist/Actions/ActionContext.d.ts +16 -10
- package/build/dist/Actions/ActionQueue.d.ts +3 -3
- package/build/dist/Actions/ActionsComponent.d.ts +236 -0
- package/build/dist/Actions/ActionsSystem.d.ts +9 -0
- package/build/dist/Actions/Index.d.ts +2 -0
- package/build/dist/Actor.d.ts +10 -8
- package/build/dist/Engine.d.ts +6 -1
- package/build/dist/EntityComponentSystem/EntityManager.d.ts +1 -0
- package/build/dist/Graphics/Animation.d.ts +64 -0
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext.d.ts +1 -1
- package/build/dist/Graphics/Context/ExcaliburGraphicsContextWebGL.d.ts +6 -0
- package/build/dist/Graphics/GraphicsComponent.d.ts +2 -0
- package/build/dist/Loader.css +1 -0
- package/build/dist/Loader.d.ts +1 -0
- package/build/dist/Screen.d.ts +3 -0
- package/build/dist/excalibur.js +14369 -13942
- 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/esm/Actions/Action/Blink.d.ts +17 -0
- package/build/esm/Actions/Action/CallMethod.d.ts +10 -0
- package/build/esm/Actions/Action/Delay.d.ts +12 -0
- package/build/esm/Actions/Action/Die.d.ts +11 -0
- package/build/esm/Actions/Action/EaseTo.d.ts +21 -0
- package/build/esm/Actions/Action/Fade.d.ts +17 -0
- package/build/esm/Actions/Action/Follow.d.ts +23 -0
- package/build/esm/Actions/Action/Meet.d.ts +23 -0
- package/build/esm/Actions/Action/MoveBy.d.ts +22 -0
- package/build/esm/Actions/Action/MoveTo.d.ts +21 -0
- package/build/esm/Actions/Action/Repeat.d.ts +16 -0
- package/build/esm/Actions/Action/RepeatForever.d.ts +20 -0
- package/build/esm/Actions/Action/RotateBy.d.ts +27 -0
- package/build/esm/Actions/Action/RotateTo.d.ts +26 -0
- package/build/esm/Actions/Action/ScaleBy.d.ts +24 -0
- package/build/esm/Actions/Action/ScaleTo.d.ts +23 -0
- package/build/esm/Actions/Action.d.ts +10 -0
- package/build/esm/Actions/ActionContext.d.ts +219 -0
- package/build/esm/Actions/ActionQueue.d.ts +56 -0
- package/build/esm/Actions/Actionable.d.ts +4 -0
- package/build/esm/Actions/ActionsComponent.d.ts +236 -0
- package/build/esm/Actions/ActionsSystem.d.ts +9 -0
- package/build/{dist/Actions/Index.js → esm/Actions/Index.d.ts} +2 -1
- package/build/{dist/Actions/RotationType.js → esm/Actions/RotationType.d.ts} +6 -8
- package/build/esm/Actor.d.ts +727 -0
- package/build/esm/Camera.d.ts +360 -0
- package/build/{dist/Class.js → esm/Class.d.ts} +12 -17
- package/build/esm/Collision/BodyComponent.d.ts +208 -0
- package/build/esm/Collision/BoundingBox.d.ts +109 -0
- package/build/esm/Collision/ColliderComponent.d.ts +98 -0
- package/build/esm/Collision/Colliders/CircleCollider.d.ts +92 -0
- package/build/esm/Collision/Colliders/ClosestLineJumpTable.d.ts +23 -0
- package/build/esm/Collision/Colliders/Collider.d.ts +94 -0
- package/build/esm/Collision/Colliders/CollisionJumpTable.d.ts +14 -0
- package/build/esm/Collision/Colliders/CompositeCollider.d.ts +38 -0
- package/build/esm/Collision/Colliders/EdgeCollider.d.ts +112 -0
- package/build/esm/Collision/Colliders/PolygonCollider.d.ts +138 -0
- package/build/esm/Collision/Colliders/SeparatingAxis.d.ts +46 -0
- package/build/esm/Collision/Colliders/Shape.d.ts +54 -0
- package/build/esm/Collision/CollisionSystem.d.ts +26 -0
- package/build/{dist/Collision/CollisionType.js → esm/Collision/CollisionType.d.ts} +6 -8
- package/build/esm/Collision/Detection/CollisionContact.d.ts +53 -0
- package/build/esm/Collision/Detection/CollisionProcessor.d.ts +28 -0
- package/build/esm/Collision/Detection/DynamicTree.d.ts +85 -0
- package/build/esm/Collision/Detection/DynamicTreeCollisionProcessor.d.ts +40 -0
- package/build/esm/Collision/Detection/Pair.d.ts +31 -0
- package/build/{dist/Collision/Group/CollisionGroup.js → esm/Collision/Group/CollisionGroup.d.ts} +17 -36
- package/build/esm/Collision/Group/CollisionGroupManager.d.ts +30 -0
- package/build/{dist/Collision/Index.js → esm/Collision/Index.d.ts} +0 -1
- package/build/esm/Collision/Integrator.d.ts +6 -0
- package/build/esm/Collision/MotionSystem.d.ts +11 -0
- package/build/esm/Collision/Physics.d.ts +133 -0
- package/build/esm/Collision/Side.d.ts +21 -0
- package/build/esm/Collision/Solver/ArcadeSolver.d.ts +15 -0
- package/build/esm/Collision/Solver/ContactConstraintPoint.d.ts +43 -0
- package/build/esm/Collision/Solver/RealisticSolver.d.ts +21 -0
- package/build/esm/Collision/Solver/Solver.d.ts +50 -0
- package/build/esm/Color.d.ts +244 -0
- package/build/esm/Configurable.d.ts +9 -0
- package/build/esm/Debug/Debug.d.ts +327 -0
- package/build/esm/Debug/DebugFlags.d.ts +11 -0
- package/build/esm/Debug/DebugSystem.d.ts +29 -0
- package/build/{dist/Debug/index.js → esm/Debug/index.d.ts} +0 -1
- package/build/esm/Deprecated.d.ts +0 -0
- package/build/esm/Drawing/Animation.d.ts +196 -0
- package/build/esm/Drawing/CanvasDrawComponent.d.ts +10 -0
- package/build/esm/Drawing/CanvasDrawingSystem.d.ts +23 -0
- package/build/esm/Drawing/Index.d.ts +9 -0
- package/build/esm/Drawing/Polygon.d.ts +74 -0
- package/build/esm/Drawing/Sprite.d.ts +159 -0
- package/build/esm/Drawing/SpriteEffects.d.ts +120 -0
- package/build/esm/Drawing/SpriteSheet.d.ts +184 -0
- package/build/esm/Drawing/Texture.d.ts +44 -0
- package/build/esm/Engine.d.ts +586 -0
- package/build/esm/EntityComponentSystem/Component.d.ts +69 -0
- package/build/esm/EntityComponentSystem/Components/MotionComponent.d.ts +55 -0
- package/build/esm/EntityComponentSystem/Components/TransformComponent.d.ts +103 -0
- package/build/esm/EntityComponentSystem/Entity.d.ts +247 -0
- package/build/esm/EntityComponentSystem/EntityManager.d.ts +35 -0
- package/build/esm/EntityComponentSystem/Query.d.ts +51 -0
- package/build/esm/EntityComponentSystem/QueryManager.d.ts +48 -0
- package/build/esm/EntityComponentSystem/System.d.ts +107 -0
- package/build/esm/EntityComponentSystem/SystemManager.d.ts +45 -0
- package/build/esm/EntityComponentSystem/Util.d.ts +1 -0
- package/build/esm/EntityComponentSystem/World.d.ts +45 -0
- package/build/{dist/EntityComponentSystem/index.js → esm/EntityComponentSystem/index.d.ts} +0 -1
- package/build/esm/EventDispatcher.d.ts +51 -0
- package/build/esm/Events/MediaEvents.d.ts +47 -0
- package/build/esm/Events.d.ts +475 -0
- package/build/esm/Flags.d.ts +62 -0
- package/build/esm/Graphics/Animation.d.ts +189 -0
- package/build/esm/Graphics/Canvas.d.ts +24 -0
- package/build/esm/Graphics/Circle.d.ts +15 -0
- package/build/esm/Graphics/Context/ExcaliburGraphicsContext.d.ts +155 -0
- package/build/esm/Graphics/Context/ExcaliburGraphicsContext2DCanvas.d.ts +87 -0
- package/build/esm/Graphics/Context/ExcaliburGraphicsContextWebGL.d.ts +111 -0
- package/build/esm/Graphics/Context/batch.d.ts +11 -0
- package/build/esm/Graphics/Context/debug-text.d.ts +24 -0
- package/build/esm/Graphics/Context/draw-image-command.d.ts +47 -0
- package/build/esm/Graphics/Context/image-renderer.d.ts +39 -0
- package/build/esm/Graphics/Context/line-renderer.d.ts +22 -0
- package/build/esm/Graphics/Context/point-renderer.d.ts +22 -0
- package/build/esm/Graphics/Context/renderer.d.ts +66 -0
- package/build/esm/Graphics/Context/shader.d.ts +81 -0
- package/build/esm/Graphics/Context/state-stack.d.ts +10 -0
- package/build/esm/Graphics/Context/texture-loader.d.ts +33 -0
- package/build/esm/Graphics/Context/transform-stack.d.ts +12 -0
- package/build/esm/Graphics/Context/webgl-util.d.ts +12 -0
- package/build/esm/Graphics/Font.d.ts +57 -0
- package/build/{dist/Graphics/FontCommon.js → esm/Graphics/FontCommon.d.ts} +54 -37
- package/build/esm/Graphics/Graphic.d.ts +129 -0
- package/build/esm/Graphics/GraphicsComponent.d.ts +224 -0
- package/build/esm/Graphics/GraphicsDiagnostics.d.ts +5 -0
- package/build/esm/Graphics/GraphicsGroup.d.ts +24 -0
- package/build/esm/Graphics/GraphicsSystem.d.ts +35 -0
- package/build/esm/Graphics/ImageSource.d.ts +53 -0
- package/build/esm/Graphics/Polygon.d.ts +17 -0
- package/build/esm/Graphics/Raster.d.ts +105 -0
- package/build/esm/Graphics/Rectangle.d.ts +13 -0
- package/build/esm/Graphics/Sprite.d.ts +59 -0
- package/build/esm/Graphics/SpriteFont.d.ts +53 -0
- package/build/esm/Graphics/SpriteSheet.d.ts +137 -0
- package/build/esm/Graphics/Text.d.ts +29 -0
- package/build/{dist/Graphics/index.js → esm/Graphics/index.d.ts} +0 -4
- package/build/esm/Id.d.ts +8 -0
- package/build/esm/Input/CapturePointerConfig.d.ts +13 -0
- package/build/esm/Input/EngineInput.d.ts +8 -0
- package/build/esm/Input/Gamepad.d.ts +227 -0
- package/build/{dist/Input/Index.js → esm/Input/Index.d.ts} +0 -1
- package/build/esm/Input/Keyboard.d.ts +187 -0
- package/build/esm/Input/Pointer.d.ts +134 -0
- package/build/esm/Input/PointerEvents.d.ts +170 -0
- package/build/esm/Input/Pointers.d.ts +78 -0
- package/build/esm/Interfaces/Audio.d.ts +29 -0
- package/build/esm/Interfaces/AudioImplementation.d.ts +25 -0
- package/build/esm/Interfaces/Clonable.d.ts +3 -0
- package/build/esm/Interfaces/Drawable.d.ts +97 -0
- package/build/esm/Interfaces/Evented.d.ts +31 -0
- package/build/{dist/Interfaces/Index.js → esm/Interfaces/Index.d.ts} +0 -1
- package/build/esm/Interfaces/LifecycleEvents.d.ts +167 -0
- package/build/esm/Interfaces/Loadable.d.ts +18 -0
- package/build/esm/Interfaces/PointerEventHandlers.d.ts +40 -0
- package/build/esm/Interfaces/Trait.d.ts +9 -0
- package/build/esm/Label.d.ts +146 -0
- package/build/esm/Loader.d.ts +174 -0
- package/build/{dist/Math/Index.js → esm/Math/Index.d.ts} +0 -1
- package/build/esm/Math/Random.d.ts +125 -0
- package/build/esm/Math/global-coordinates.d.ts +10 -0
- package/build/esm/Math/line.d.ts +95 -0
- package/build/esm/Math/matrix.d.ts +110 -0
- package/build/esm/Math/projection.d.ts +10 -0
- package/build/esm/Math/ray.d.ts +25 -0
- package/build/esm/Math/vector-view.d.ts +18 -0
- package/build/esm/Math/vector.d.ts +201 -0
- package/build/esm/Particles.d.ts +244 -0
- package/build/esm/Polyfill.d.ts +6 -0
- package/build/esm/PostProcessing/ColorBlindCorrector.d.ts +28 -0
- package/build/{dist/PostProcessing/Index.js → esm/PostProcessing/Index.d.ts} +0 -1
- package/build/esm/PostProcessing/PostProcessor.d.ts +6 -0
- package/build/esm/Promises.d.ts +87 -0
- package/build/esm/Resources/Gif.d.ts +117 -0
- package/build/{dist/Resources/Index.js → esm/Resources/Index.d.ts} +0 -1
- package/build/esm/Resources/Resource.d.ts +31 -0
- package/build/esm/Resources/Sound/AudioContext.d.ts +7 -0
- package/build/{dist/Resources/Sound/Index.js → esm/Resources/Sound/Index.d.ts} +0 -1
- package/build/esm/Resources/Sound/Sound.d.ts +79 -0
- package/build/esm/Resources/Sound/WebAudioInstance.d.ts +45 -0
- package/build/esm/Scene.d.ts +301 -0
- package/build/esm/Screen.d.ts +285 -0
- package/build/esm/ScreenElement.d.ts +13 -0
- package/build/esm/TileMap.d.ts +222 -0
- package/build/esm/Timer.d.ts +93 -0
- package/build/esm/Traits/CapturePointer.d.ts +10 -0
- package/build/{dist/Traits/Index.js → esm/Traits/Index.d.ts} +0 -1
- package/build/esm/Traits/OffscreenCulling.d.ts +11 -0
- package/build/esm/Trigger.d.ts +48 -0
- package/build/esm/Util/Actors.d.ts +12 -0
- package/build/esm/Util/Browser.d.ts +28 -0
- package/build/esm/Util/CullingBox.d.ts +23 -0
- package/build/esm/Util/Decorators.d.ts +15 -0
- package/build/esm/Util/Detector.d.ts +40 -0
- package/build/esm/Util/DrawUtil.d.ts +69 -0
- package/build/esm/Util/EasingFunctions.d.ts +59 -0
- package/build/{dist/Util/Index.js → esm/Util/Index.d.ts} +0 -1
- package/build/esm/Util/Log.d.ts +109 -0
- package/build/esm/Util/Observable.d.ts +55 -0
- package/build/esm/Util/Pool.d.ts +44 -0
- package/build/esm/Util/SortedList.d.ts +52 -0
- package/build/esm/Util/Sound.d.ts +4 -0
- package/build/esm/Util/Util.d.ts +196 -0
- package/build/esm/Util/Watch.d.ts +8 -0
- package/build/esm/Util/WebAudio.d.ts +15 -0
- package/build/esm/excalibur.d.ts +2 -0
- package/build/esm/excalibur.js +28874 -0
- package/build/esm/excalibur.js.map +1 -0
- package/build/esm/excalibur.min.js +3 -0
- package/build/esm/excalibur.min.js.LICENSE.txt +7 -0
- package/build/esm/excalibur.min.js.map +1 -0
- package/build/{dist/index.js → esm/index.d.ts} +4 -18
- package/package.json +31 -25
- package/wallaby.js +2 -0
- package/build/dist/Actions/Action/Blink.js +0 -45
- package/build/dist/Actions/Action/Blink.js.map +0 -1
- package/build/dist/Actions/Action/CallMethod.js +0 -21
- package/build/dist/Actions/Action/CallMethod.js.map +0 -1
- package/build/dist/Actions/Action/Delay.js +0 -28
- package/build/dist/Actions/Action/Delay.js.map +0 -1
- package/build/dist/Actions/Action/Die.js +0 -21
- package/build/dist/Actions/Action/Die.js.map +0 -1
- package/build/dist/Actions/Action/EaseTo.js +0 -66
- package/build/dist/Actions/Action/EaseTo.js.map +0 -1
- package/build/dist/Actions/Action/Fade.js +0 -42
- package/build/dist/Actions/Action/Fade.js.map +0 -1
- package/build/dist/Actions/Action/Follow.js +0 -51
- package/build/dist/Actions/Action/Follow.js.map +0 -1
- package/build/dist/Actions/Action/Meet.js +0 -48
- package/build/dist/Actions/Action/Meet.js.map +0 -1
- package/build/dist/Actions/Action/MoveBy.js +0 -42
- package/build/dist/Actions/Action/MoveBy.js.map +0 -1
- package/build/dist/Actions/Action/MoveTo.js +0 -35
- package/build/dist/Actions/Action/MoveTo.js.map +0 -1
- package/build/dist/Actions/Action/Repeat.js +0 -31
- package/build/dist/Actions/Action/Repeat.js.map +0 -1
- package/build/dist/Actions/Action/RepeatForever.js +0 -37
- package/build/dist/Actions/Action/RepeatForever.js.map +0 -1
- package/build/dist/Actions/Action/RotateBy.js +0 -88
- package/build/dist/Actions/Action/RotateBy.js.map +0 -1
- package/build/dist/Actions/Action/RotateTo.js +0 -87
- package/build/dist/Actions/Action/RotateTo.js.map +0 -1
- package/build/dist/Actions/Action/ScaleBy.js +0 -47
- package/build/dist/Actions/Action/ScaleBy.js.map +0 -1
- package/build/dist/Actions/Action/ScaleTo.js +0 -58
- package/build/dist/Actions/Action/ScaleTo.js.map +0 -1
- package/build/dist/Actions/Action.js +0 -2
- package/build/dist/Actions/Action.js.map +0 -1
- package/build/dist/Actions/ActionContext.js +0 -297
- package/build/dist/Actions/ActionContext.js.map +0 -1
- package/build/dist/Actions/ActionQueue.js +0 -87
- package/build/dist/Actions/ActionQueue.js.map +0 -1
- package/build/dist/Actions/Actionable.js +0 -2
- package/build/dist/Actions/Actionable.js.map +0 -1
- package/build/dist/Actions/Index.js.map +0 -1
- package/build/dist/Actions/RotationType.js.map +0 -1
- package/build/dist/Actor.js +0 -856
- package/build/dist/Actor.js.map +0 -1
- package/build/dist/Camera.js +0 -627
- package/build/dist/Camera.js.map +0 -1
- package/build/dist/Class.js.map +0 -1
- package/build/dist/Collision/BodyComponent.js +0 -347
- package/build/dist/Collision/BodyComponent.js.map +0 -1
- package/build/dist/Collision/BoundingBox.js +0 -355
- package/build/dist/Collision/BoundingBox.js.map +0 -1
- package/build/dist/Collision/ColliderComponent.js +0 -201
- package/build/dist/Collision/ColliderComponent.js.map +0 -1
- package/build/dist/Collision/Colliders/CircleCollider.js +0 -215
- package/build/dist/Collision/Colliders/CircleCollider.js.map +0 -1
- package/build/dist/Collision/Colliders/ClosestLineJumpTable.js +0 -211
- package/build/dist/Collision/Colliders/ClosestLineJumpTable.js.map +0 -1
- package/build/dist/Collision/Colliders/Collider.js +0 -26
- package/build/dist/Collision/Colliders/Collider.js.map +0 -1
- package/build/dist/Collision/Colliders/CollisionJumpTable.js +0 -301
- package/build/dist/Collision/Colliders/CollisionJumpTable.js.map +0 -1
- package/build/dist/Collision/Colliders/CompositeCollider.js +0 -232
- package/build/dist/Collision/Colliders/CompositeCollider.js.map +0 -1
- package/build/dist/Collision/Colliders/EdgeCollider.js +0 -253
- package/build/dist/Collision/Colliders/EdgeCollider.js.map +0 -1
- package/build/dist/Collision/Colliders/PolygonCollider.js +0 -389
- package/build/dist/Collision/Colliders/PolygonCollider.js.map +0 -1
- package/build/dist/Collision/Colliders/SeparatingAxis.js +0 -67
- package/build/dist/Collision/Colliders/SeparatingAxis.js.map +0 -1
- package/build/dist/Collision/Colliders/Shape.js +0 -102
- package/build/dist/Collision/Colliders/Shape.js.map +0 -1
- package/build/dist/Collision/CollisionSystem.js +0 -116
- package/build/dist/Collision/CollisionSystem.js.map +0 -1
- package/build/dist/Collision/CollisionType.js.map +0 -1
- package/build/dist/Collision/Detection/CollisionContact.js +0 -46
- package/build/dist/Collision/Detection/CollisionContact.js.map +0 -1
- package/build/dist/Collision/Detection/CollisionProcessor.js +0 -2
- package/build/dist/Collision/Detection/CollisionProcessor.js.map +0 -1
- package/build/dist/Collision/Detection/DynamicTree.js +0 -442
- package/build/dist/Collision/Detection/DynamicTree.js.map +0 -1
- package/build/dist/Collision/Detection/DynamicTreeCollisionProcessor.js +0 -228
- package/build/dist/Collision/Detection/DynamicTreeCollisionProcessor.js.map +0 -1
- package/build/dist/Collision/Detection/Pair.js +0 -74
- package/build/dist/Collision/Detection/Pair.js.map +0 -1
- package/build/dist/Collision/Group/CollisionGroup.js.map +0 -1
- package/build/dist/Collision/Group/CollisionGroupManager.js +0 -52
- package/build/dist/Collision/Group/CollisionGroupManager.js.map +0 -1
- package/build/dist/Collision/Index.js.map +0 -1
- package/build/dist/Collision/Integrator.js +0 -11
- package/build/dist/Collision/Integrator.js.map +0 -1
- package/build/dist/Collision/MotionSystem.js +0 -38
- package/build/dist/Collision/MotionSystem.js.map +0 -1
- package/build/dist/Collision/Physics.js +0 -163
- package/build/dist/Collision/Physics.js.map +0 -1
- package/build/dist/Collision/Side.js +0 -51
- package/build/dist/Collision/Side.js.map +0 -1
- package/build/dist/Collision/Solver/ArcadeSolver.js +0 -96
- package/build/dist/Collision/Solver/ArcadeSolver.js.map +0 -1
- package/build/dist/Collision/Solver/ContactConstraintPoint.js +0 -83
- package/build/dist/Collision/Solver/ContactConstraintPoint.js.map +0 -1
- package/build/dist/Collision/Solver/RealisticSolver.js +0 -248
- package/build/dist/Collision/Solver/RealisticSolver.js.map +0 -1
- package/build/dist/Collision/Solver/Solver.js +0 -37
- package/build/dist/Collision/Solver/Solver.js.map +0 -1
- package/build/dist/Color.js +0 -461
- package/build/dist/Color.js.map +0 -1
- package/build/dist/Configurable.js +0 -32
- package/build/dist/Configurable.js.map +0 -1
- package/build/dist/Debug/Debug.js +0 -339
- package/build/dist/Debug/Debug.js.map +0 -1
- package/build/dist/Debug/DebugFlags.js +0 -13
- package/build/dist/Debug/DebugFlags.js.map +0 -1
- package/build/dist/Debug/DebugSystem.js +0 -242
- package/build/dist/Debug/DebugSystem.js.map +0 -1
- package/build/dist/Debug/index.js.map +0 -1
- package/build/dist/Deprecated.js +0 -2
- package/build/dist/Deprecated.js.map +0 -1
- package/build/dist/Drawing/Animation.js +0 -285
- package/build/dist/Drawing/Animation.js.map +0 -1
- package/build/dist/Drawing/CanvasDrawComponent.js +0 -16
- package/build/dist/Drawing/CanvasDrawComponent.js.map +0 -1
- package/build/dist/Drawing/CanvasDrawingSystem.js +0 -95
- package/build/dist/Drawing/CanvasDrawingSystem.js.map +0 -1
- package/build/dist/Drawing/Index.js +0 -10
- package/build/dist/Drawing/Index.js.map +0 -1
- package/build/dist/Drawing/Polygon.js +0 -129
- package/build/dist/Drawing/Polygon.js.map +0 -1
- package/build/dist/Drawing/Sprite.js +0 -356
- package/build/dist/Drawing/Sprite.js.map +0 -1
- package/build/dist/Drawing/SpriteEffects.js +0 -246
- package/build/dist/Drawing/SpriteEffects.js.map +0 -1
- package/build/dist/Drawing/SpriteSheet.js +0 -413
- package/build/dist/Drawing/SpriteSheet.js.map +0 -1
- package/build/dist/Drawing/Texture.js +0 -80
- package/build/dist/Drawing/Texture.js.map +0 -1
- package/build/dist/Engine.js +0 -871
- package/build/dist/Engine.js.map +0 -1
- package/build/dist/EntityComponentSystem/Component.js +0 -65
- package/build/dist/EntityComponentSystem/Component.js.map +0 -1
- package/build/dist/EntityComponentSystem/Components/MotionComponent.js +0 -33
- package/build/dist/EntityComponentSystem/Components/MotionComponent.js.map +0 -1
- package/build/dist/EntityComponentSystem/Components/TransformComponent.js +0 -249
- package/build/dist/EntityComponentSystem/Components/TransformComponent.js.map +0 -1
- package/build/dist/EntityComponentSystem/Entity.js +0 -452
- package/build/dist/EntityComponentSystem/Entity.js.map +0 -1
- package/build/dist/EntityComponentSystem/EntityManager.js +0 -121
- package/build/dist/EntityComponentSystem/EntityManager.js.map +0 -1
- package/build/dist/EntityComponentSystem/Query.js +0 -91
- package/build/dist/EntityComponentSystem/Query.js.map +0 -1
- package/build/dist/EntityComponentSystem/QueryManager.js +0 -90
- package/build/dist/EntityComponentSystem/QueryManager.js.map +0 -1
- package/build/dist/EntityComponentSystem/System.js +0 -76
- package/build/dist/EntityComponentSystem/System.js.map +0 -1
- package/build/dist/EntityComponentSystem/SystemManager.js +0 -96
- package/build/dist/EntityComponentSystem/SystemManager.js.map +0 -1
- package/build/dist/EntityComponentSystem/Util.js +0 -5
- package/build/dist/EntityComponentSystem/Util.js.map +0 -1
- package/build/dist/EntityComponentSystem/World.js +0 -55
- package/build/dist/EntityComponentSystem/World.js.map +0 -1
- package/build/dist/EntityComponentSystem/index.js.map +0 -1
- package/build/dist/EventDispatcher.js +0 -133
- package/build/dist/EventDispatcher.js.map +0 -1
- package/build/dist/Events/MediaEvents.js +0 -75
- package/build/dist/Events/MediaEvents.js.map +0 -1
- package/build/dist/Events.js +0 -497
- package/build/dist/Events.js.map +0 -1
- package/build/dist/Flags.js +0 -90
- package/build/dist/Flags.js.map +0 -1
- package/build/dist/Graphics/Animation.js +0 -230
- package/build/dist/Graphics/Animation.js.map +0 -1
- package/build/dist/Graphics/Canvas.js +0 -34
- package/build/dist/Graphics/Canvas.js.map +0 -1
- package/build/dist/Graphics/Circle.js +0 -39
- package/build/dist/Graphics/Circle.js.map +0 -1
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext.js +0 -2
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext.js.map +0 -1
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext2DCanvas.js +0 -177
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext2DCanvas.js.map +0 -1
- package/build/dist/Graphics/Context/ExcaliburGraphicsContextWebGL.js +0 -188
- package/build/dist/Graphics/Context/ExcaliburGraphicsContextWebGL.js.map +0 -1
- package/build/dist/Graphics/Context/batch.js +0 -24
- package/build/dist/Graphics/Context/batch.js.map +0 -1
- package/build/dist/Graphics/Context/debug-text.js +0 -47
- package/build/dist/Graphics/Context/debug-text.js.map +0 -1
- package/build/dist/Graphics/Context/draw-image-command.js +0 -179
- package/build/dist/Graphics/Context/draw-image-command.js.map +0 -1
- package/build/dist/Graphics/Context/image-renderer.js +0 -295
- package/build/dist/Graphics/Context/image-renderer.js.map +0 -1
- package/build/dist/Graphics/Context/line-renderer.js +0 -70
- package/build/dist/Graphics/Context/line-renderer.js.map +0 -1
- package/build/dist/Graphics/Context/point-renderer.js +0 -67
- package/build/dist/Graphics/Context/point-renderer.js.map +0 -1
- package/build/dist/Graphics/Context/renderer.js +0 -75
- package/build/dist/Graphics/Context/renderer.js.map +0 -1
- package/build/dist/Graphics/Context/shader.js +0 -189
- package/build/dist/Graphics/Context/shader.js.map +0 -1
- package/build/dist/Graphics/Context/state-stack.js +0 -27
- package/build/dist/Graphics/Context/state-stack.js.map +0 -1
- package/build/dist/Graphics/Context/texture-loader.js +0 -84
- package/build/dist/Graphics/Context/texture-loader.js.map +0 -1
- package/build/dist/Graphics/Context/transform-stack.js +0 -30
- package/build/dist/Graphics/Context/transform-stack.js.map +0 -1
- package/build/dist/Graphics/Context/webgl-util.js +0 -26
- package/build/dist/Graphics/Context/webgl-util.js.map +0 -1
- package/build/dist/Graphics/Font.js +0 -209
- package/build/dist/Graphics/Font.js.map +0 -1
- package/build/dist/Graphics/FontCommon.js.map +0 -1
- package/build/dist/Graphics/Graphic.js +0 -147
- package/build/dist/Graphics/Graphic.js.map +0 -1
- package/build/dist/Graphics/GraphicsComponent.js +0 -276
- package/build/dist/Graphics/GraphicsComponent.js.map +0 -1
- package/build/dist/Graphics/GraphicsDiagnostics.js +0 -9
- package/build/dist/Graphics/GraphicsDiagnostics.js.map +0 -1
- package/build/dist/Graphics/GraphicsGroup.js +0 -66
- package/build/dist/Graphics/GraphicsGroup.js.map +0 -1
- package/build/dist/Graphics/GraphicsSystem.js +0 -161
- package/build/dist/Graphics/GraphicsSystem.js.map +0 -1
- package/build/dist/Graphics/ImageSource.js +0 -117
- package/build/dist/Graphics/ImageSource.js.map +0 -1
- package/build/dist/Graphics/Polygon.js +0 -51
- package/build/dist/Graphics/Polygon.js.map +0 -1
- package/build/dist/Graphics/Raster.js +0 -209
- package/build/dist/Graphics/Raster.js.map +0 -1
- package/build/dist/Graphics/Rectangle.js +0 -24
- package/build/dist/Graphics/Rectangle.js.map +0 -1
- package/build/dist/Graphics/Sprite.js +0 -81
- package/build/dist/Graphics/Sprite.js.map +0 -1
- package/build/dist/Graphics/SpriteFont.js +0 -116
- package/build/dist/Graphics/SpriteFont.js.map +0 -1
- package/build/dist/Graphics/SpriteSheet.js +0 -116
- package/build/dist/Graphics/SpriteSheet.js.map +0 -1
- package/build/dist/Graphics/Text.js +0 -82
- package/build/dist/Graphics/Text.js.map +0 -1
- package/build/dist/Graphics/index.js.map +0 -1
- package/build/dist/Id.js +0 -8
- package/build/dist/Id.js.map +0 -1
- package/build/dist/Input/CapturePointerConfig.js +0 -5
- package/build/dist/Input/CapturePointerConfig.js.map +0 -1
- package/build/dist/Input/EngineInput.js +0 -2
- package/build/dist/Input/EngineInput.js.map +0 -1
- package/build/dist/Input/Gamepad.js +0 -358
- package/build/dist/Input/Gamepad.js.map +0 -1
- package/build/dist/Input/Index.js.map +0 -1
- package/build/dist/Input/Keyboard.js +0 -267
- package/build/dist/Input/Keyboard.js.map +0 -1
- package/build/dist/Input/Pointer.js +0 -205
- package/build/dist/Input/Pointer.js.map +0 -1
- package/build/dist/Input/PointerEvents.js +0 -309
- package/build/dist/Input/PointerEvents.js.map +0 -1
- package/build/dist/Input/Pointers.js +0 -405
- package/build/dist/Input/Pointers.js.map +0 -1
- package/build/dist/Interfaces/Audio.js +0 -2
- package/build/dist/Interfaces/Audio.js.map +0 -1
- package/build/dist/Interfaces/AudioImplementation.js +0 -11
- package/build/dist/Interfaces/AudioImplementation.js.map +0 -1
- package/build/dist/Interfaces/Clonable.js +0 -2
- package/build/dist/Interfaces/Clonable.js.map +0 -1
- package/build/dist/Interfaces/Drawable.js +0 -2
- package/build/dist/Interfaces/Drawable.js.map +0 -1
- package/build/dist/Interfaces/Evented.js +0 -2
- package/build/dist/Interfaces/Evented.js.map +0 -1
- package/build/dist/Interfaces/Index.js.map +0 -1
- package/build/dist/Interfaces/LifecycleEvents.js +0 -51
- package/build/dist/Interfaces/LifecycleEvents.js.map +0 -1
- package/build/dist/Interfaces/Loadable.js +0 -2
- package/build/dist/Interfaces/Loadable.js.map +0 -1
- package/build/dist/Interfaces/PointerEventHandlers.js +0 -2
- package/build/dist/Interfaces/PointerEventHandlers.js.map +0 -1
- package/build/dist/Interfaces/Trait.js +0 -2
- package/build/dist/Interfaces/Trait.js.map +0 -1
- package/build/dist/Label.js +0 -262
- package/build/dist/Label.js.map +0 -1
- package/build/dist/Loader.js +0 -344
- package/build/dist/Loader.js.map +0 -1
- package/build/dist/Math/Index.js.map +0 -1
- package/build/dist/Math/Random.js +0 -239
- package/build/dist/Math/Random.js.map +0 -1
- package/build/dist/Math/global-coordinates.js +0 -30
- package/build/dist/Math/global-coordinates.js.map +0 -1
- package/build/dist/Math/line.js +0 -194
- package/build/dist/Math/line.js.map +0 -1
- package/build/dist/Math/matrix.js +0 -425
- package/build/dist/Math/matrix.js.map +0 -1
- package/build/dist/Math/projection.js +0 -24
- package/build/dist/Math/projection.js.map +0 -1
- package/build/dist/Math/ray.js +0 -52
- package/build/dist/Math/ray.js.map +0 -1
- package/build/dist/Math/vector-view.js +0 -25
- package/build/dist/Math/vector-view.js.map +0 -1
- package/build/dist/Math/vector.js +0 -326
- package/build/dist/Math/vector.js.map +0 -1
- package/build/dist/Particles.js +0 -436
- package/build/dist/Particles.js.map +0 -1
- package/build/dist/Polyfill.js +0 -56
- package/build/dist/Polyfill.js.map +0 -1
- package/build/dist/PostProcessing/ColorBlindCorrector.js +0 -193
- package/build/dist/PostProcessing/ColorBlindCorrector.js.map +0 -1
- package/build/dist/PostProcessing/Index.js.map +0 -1
- package/build/dist/PostProcessing/PostProcessor.js +0 -2
- package/build/dist/PostProcessing/PostProcessor.js.map +0 -1
- package/build/dist/Promises.js +0 -205
- package/build/dist/Promises.js.map +0 -1
- package/build/dist/Resources/Gif.js +0 -490
- package/build/dist/Resources/Gif.js.map +0 -1
- package/build/dist/Resources/Index.js.map +0 -1
- package/build/dist/Resources/Resource.js +0 -74
- package/build/dist/Resources/Resource.js.map +0 -1
- package/build/dist/Resources/Sound/AudioContext.js +0 -16
- package/build/dist/Resources/Sound/AudioContext.js.map +0 -1
- package/build/dist/Resources/Sound/Index.js.map +0 -1
- package/build/dist/Resources/Sound/Sound.js +0 -257
- package/build/dist/Resources/Sound/Sound.js.map +0 -1
- package/build/dist/Resources/Sound/WebAudioInstance.js +0 -160
- package/build/dist/Resources/Sound/WebAudioInstance.js.map +0 -1
- package/build/dist/Scene.js +0 -443
- package/build/dist/Scene.js.map +0 -1
- package/build/dist/Screen.js +0 -611
- package/build/dist/Screen.js.map +0 -1
- package/build/dist/ScreenElement.js +0 -33
- package/build/dist/ScreenElement.js.map +0 -1
- package/build/dist/TileMap.js +0 -465
- package/build/dist/TileMap.js.map +0 -1
- package/build/dist/Timer.js +0 -198
- package/build/dist/Timer.js.map +0 -1
- package/build/dist/Traits/CapturePointer.js +0 -16
- package/build/dist/Traits/CapturePointer.js.map +0 -1
- package/build/dist/Traits/Index.js.map +0 -1
- package/build/dist/Traits/OffscreenCulling.js +0 -35
- package/build/dist/Traits/OffscreenCulling.js.map +0 -1
- package/build/dist/Trigger.js +0 -107
- package/build/dist/Trigger.js.map +0 -1
- package/build/dist/Util/Actors.js +0 -19
- package/build/dist/Util/Actors.js.map +0 -1
- package/build/dist/Util/Browser.js +0 -66
- package/build/dist/Util/Browser.js.map +0 -1
- package/build/dist/Util/CullingBox.js +0 -104
- package/build/dist/Util/CullingBox.js.map +0 -1
- package/build/dist/Util/Decorators.js +0 -78
- package/build/dist/Util/Decorators.js.map +0 -1
- package/build/dist/Util/Detector.js +0 -167
- package/build/dist/Util/Detector.js.map +0 -1
- package/build/dist/Util/DrawUtil.js +0 -115
- package/build/dist/Util/DrawUtil.js.map +0 -1
- package/build/dist/Util/EasingFunctions.js +0 -118
- package/build/dist/Util/EasingFunctions.js.map +0 -1
- package/build/dist/Util/Index.js.map +0 -1
- package/build/dist/Util/Log.js +0 -195
- package/build/dist/Util/Log.js.map +0 -1
- package/build/dist/Util/Observable.js +0 -60
- package/build/dist/Util/Observable.js.map +0 -1
- package/build/dist/Util/Pool.js +0 -72
- package/build/dist/Util/Pool.js.map +0 -1
- package/build/dist/Util/SortedList.js +0 -261
- package/build/dist/Util/SortedList.js.map +0 -1
- package/build/dist/Util/Sound.js +0 -22
- package/build/dist/Util/Sound.js.map +0 -1
- package/build/dist/Util/Util.js +0 -401
- package/build/dist/Util/Util.js.map +0 -1
- package/build/dist/Util/Watch.js +0 -67
- package/build/dist/Util/Watch.js.map +0 -1
- package/build/dist/Util/WebAudio.js +0 -62
- package/build/dist/Util/WebAudio.js.map +0 -1
- package/build/dist/index.js.map +0 -1
package/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
14.18.
|
|
1
|
+
14.18.1
|
package/CHANGELOG.md
CHANGED
|
@@ -8,25 +8,64 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
8
8
|
### Breaking Changes
|
|
9
9
|
|
|
10
10
|
-
|
|
11
|
+
### Deprecated
|
|
12
|
+
|
|
13
|
+
-
|
|
14
|
+
|
|
11
15
|
### Added
|
|
12
16
|
|
|
13
|
-
-
|
|
14
|
-
### Changed
|
|
17
|
+
-
|
|
15
18
|
|
|
16
|
-
-
|
|
17
|
-
### Deprecated
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
-
|
|
23
|
+
|
|
24
|
+
### Updates
|
|
25
|
+
|
|
26
|
+
-
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
21
29
|
|
|
22
30
|
-
|
|
23
|
-
### Fixed
|
|
24
31
|
|
|
25
|
-
-
|
|
26
32
|
|
|
27
33
|
<!--------------------------------- DO NOT EDIT BELOW THIS LINE --------------------------------->
|
|
28
34
|
<!--------------------------------- DO NOT EDIT BELOW THIS LINE --------------------------------->
|
|
29
35
|
<!--------------------------------- DO NOT EDIT BELOW THIS LINE --------------------------------->
|
|
36
|
+
## [v0.25.1] - 2021-11-05
|
|
37
|
+
|
|
38
|
+
### Breaking Changes
|
|
39
|
+
|
|
40
|
+
-
|
|
41
|
+
### Added
|
|
42
|
+
|
|
43
|
+
- *Experimental:* Native ES module bundle distribution in package `esm/excalibur.js` entrypoint ([#2064](https://github.com/excaliburjs/Excalibur/pull/2064))
|
|
44
|
+
- `withEngine` utils support an aditional options parameter to override the Engine default options.
|
|
45
|
+
- Story to show a play / pause implementation.
|
|
46
|
+
- `ex.Animation` now support `totalDuration` that will calculate automatically each frame duration based on how many frames have.
|
|
47
|
+
- `ex.Animation` now supports `.reverse()` to reverse the direction of play in an animation, use the `ex.Animation.direction` to inspect if the animation is playing in the `ex.AnimationDirection.Forward` direction or the `ex.AnimationDirection.Backward` direction.
|
|
48
|
+
-
|
|
49
|
+
### Changed
|
|
50
|
+
|
|
51
|
+
- Internal Actions implementation converted to ECS system and component, this is a backwards compatible change with v0.25.0
|
|
52
|
+
- `ex.ActionsSystem` and `ex.ActionsComponent` now wrap the existing `ex.ActionContext`
|
|
53
|
+
- Actions can be shared with all entities now!
|
|
54
|
+
- Dispatch the `hidePlayButton` on the Button Event to prevent that keep on the screen on some situations [#1431].
|
|
55
|
+
- Revert VSCode Workbench Colors
|
|
56
|
+
-
|
|
57
|
+
### Deprecated
|
|
58
|
+
|
|
59
|
+
- Actions `asPromise()` renamed to `toPromise()`
|
|
60
|
+
### Removed
|
|
61
|
+
|
|
62
|
+
-
|
|
63
|
+
### Fixed
|
|
64
|
+
|
|
65
|
+
- Fixed loader button position on window resize
|
|
66
|
+
- Fixed issue with setting `ex.TileMap.z` to a value
|
|
67
|
+
- Fixed crash in debug system if there is no collider geometry
|
|
68
|
+
- Fixed ImageSource loading error message [#2049]
|
|
30
69
|
|
|
31
70
|
## [0.25.0] - 2021-10-03
|
|
32
71
|
|
|
@@ -158,7 +197,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
158
197
|
- Add `SpriteSheet.getSpacingDimensions()` method to retrieve calculated spacing dimensions ([#1788](https://github.com/excaliburjs/Excalibur/issues/1778))
|
|
159
198
|
- Add `KeyEvent.value?: string` which is the key value (or "typed" value) that the browser detected. For example, holding Shift and pressing 9 will have a value of `(` which is the typed character.
|
|
160
199
|
- Add `KeyEvent.originalEvent?: KeyboardEvent` which exposes the raw keyboard event handled from the browser.
|
|
161
|
-
|
|
200
|
+
- Added a new getter to GraphicsComponent.ts called currentKeys that will return the names of the graphics shown in all layers
|
|
201
|
+
- Added a new getter to GraphicsLayer called currentKeys that will the names of the graphics shown in this layer
|
|
162
202
|
### Changed
|
|
163
203
|
|
|
164
204
|
- `Gif` now supports new graphics component
|
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -17,10 +17,10 @@ Excalibur is an open source project licensed under the 2-clause BSD license (thi
|
|
|
17
17
|
|
|
18
18
|
Our user documentation is at https://excaliburjs.com/docs (and you can contribute to the docs at https://github.com/excaliburjs/excaliburjs.github.io)
|
|
19
19
|
|
|
20
|
-
- Follow our [Installation](https://excaliburjs.com/docs/installation) guide to learn how to install Excalibur
|
|
20
|
+
- Follow our [Installation](https://excaliburjs.com/docs/installation) guide to learn how to install Excalibur.
|
|
21
21
|
- Follow our [Getting Started](https://excaliburjs.com/docs/getting-started) guide if you're looking to get started.
|
|
22
|
-
- Learn what [Features](https://excaliburjs.com/docs/features) are available for you to leverage in your games
|
|
23
|
-
- View the [1.0 Release roadmap](https://github.com/excaliburjs/Excalibur/issues/1161) to see what's coming next
|
|
22
|
+
- Learn what [Features](https://excaliburjs.com/docs/features) are available for you to leverage in your games.
|
|
23
|
+
- View the [1.0 Release roadmap](https://github.com/excaliburjs/Excalibur/issues/1161) to see what's coming next.
|
|
24
24
|
|
|
25
25
|
:exclamation: **_Note:_** Excalibur is still in version 0.x, which means this project and its associated plugins may be a little rough around the edges. We try to minimize API changes, but breaking changes **will occur** in new released versions. Excalibur is a labor of love and the product of many hours of spare time. Thanks for checking it out!
|
|
26
26
|
|
|
@@ -30,7 +30,7 @@ Visit the [API Reference](https://excaliburjs.com/docs/api/edge) section for ful
|
|
|
30
30
|
|
|
31
31
|
# Questions
|
|
32
32
|
|
|
33
|
-
- :question: Ask us anything in the [GitHub
|
|
33
|
+
- :question: Ask us anything in the [GitHub Discussions area](https://github.com/excaliburjs/Excalibur/discussions).
|
|
34
34
|
- :bug: If you find a bug, report it on the [GitHub issues page](https://github.com/excaliburjs/Excalibur/issues) (please review our [guidelines for reporting bugs](https://github.com/excaliburjs/Excalibur/blob/main/.github/CONTRIBUTING.md#reporting-bugs)).
|
|
35
35
|
- :mega: You can also follow us on Twitter [@excaliburjs](http://twitter.com/excaliburjs) or [read the blog](http://blog.excaliburjs.com).
|
|
36
36
|
|
|
@@ -40,11 +40,11 @@ Compiled examples can be found [in the Excalibur Samples collection](http://exca
|
|
|
40
40
|
|
|
41
41
|
# Contributing
|
|
42
42
|
|
|
43
|
-
Please read our [Contributing Guidelines](.github/CONTRIBUTING.md) and our [Code of Conduct](.github/CODE_OF_CONDUCT.md). Whether you've spotted a bug, have a question, or think of a
|
|
43
|
+
Please read our [Contributing Guidelines](.github/CONTRIBUTING.md) and our [Code of Conduct](.github/CODE_OF_CONDUCT.md). Whether you've spotted a bug, have a question, or think of a new feature, we thank you for your help!
|
|
44
44
|
|
|
45
45
|
# Writing Documentation
|
|
46
46
|
|
|
47
|
-
We love when people help improve our documentation. You can contribute to the docs
|
|
47
|
+
We love when people help improve our documentation. You can contribute to the docs in [this repository](https://github.com/excaliburjs/excaliburjs.github.io).
|
|
48
48
|
|
|
49
49
|
## Environment Setup
|
|
50
50
|
|
|
@@ -85,12 +85,8 @@ npm run build
|
|
|
85
85
|
npm test
|
|
86
86
|
npm run test
|
|
87
87
|
|
|
88
|
-
#
|
|
89
|
-
#
|
|
90
|
-
npm run visual
|
|
91
|
-
|
|
92
|
-
# Start sandbox dev server (long-running)
|
|
93
|
-
# Run in separate terminal alongside `npm run visual`
|
|
88
|
+
# Start Storybook-based sandbox
|
|
89
|
+
# Used for creating interactive visual tests and examples for docs
|
|
94
90
|
npm run sandbox
|
|
95
91
|
|
|
96
92
|
# Compile API docs
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
2
|
import { Action } from '../Action';
|
|
3
3
|
export declare class Blink implements Action {
|
|
4
|
+
private _graphics;
|
|
4
5
|
private _timeVisible;
|
|
5
6
|
private _timeNotVisible;
|
|
6
7
|
private _elapsedTime;
|
|
7
8
|
private _totalTime;
|
|
8
|
-
private _actor;
|
|
9
9
|
private _duration;
|
|
10
10
|
private _stopped;
|
|
11
11
|
private _started;
|
|
12
|
-
constructor(
|
|
12
|
+
constructor(entity: Entity, timeVisible: number, timeNotVisible: number, numBlinks?: number);
|
|
13
13
|
update(delta: number): void;
|
|
14
14
|
isComplete(): boolean;
|
|
15
15
|
stop(): void;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { Actor } from '../../Actor';
|
|
2
1
|
import { Action } from '../Action';
|
|
3
2
|
export declare class Delay implements Action {
|
|
4
|
-
x: number;
|
|
5
|
-
y: number;
|
|
6
|
-
private _actor;
|
|
7
3
|
private _elapsedTime;
|
|
8
4
|
private _delay;
|
|
9
5
|
private _started;
|
|
10
6
|
private _stopped;
|
|
11
|
-
constructor(
|
|
7
|
+
constructor(delay: number);
|
|
12
8
|
update(delta: number): void;
|
|
13
9
|
isComplete(): boolean;
|
|
14
10
|
stop(): void;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
2
|
import { Action } from '../Action';
|
|
3
3
|
export declare class Die implements Action {
|
|
4
|
-
|
|
5
|
-
y: number;
|
|
6
|
-
private _actor;
|
|
4
|
+
private _entity;
|
|
7
5
|
private _stopped;
|
|
8
|
-
constructor(
|
|
6
|
+
constructor(entity: Entity);
|
|
9
7
|
update(_delta: number): void;
|
|
10
8
|
isComplete(): boolean;
|
|
11
9
|
stop(): void;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
1
2
|
import { Actor } from '../../Actor';
|
|
2
3
|
import { Action } from '../Action';
|
|
3
4
|
export declare class EaseTo implements Action {
|
|
4
|
-
actor: Actor;
|
|
5
5
|
easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number;
|
|
6
|
+
private _tx;
|
|
7
|
+
private _motion;
|
|
6
8
|
private _currentLerpTime;
|
|
7
9
|
private _lerpDuration;
|
|
8
10
|
private _lerpStart;
|
|
@@ -10,7 +12,7 @@ export declare class EaseTo implements Action {
|
|
|
10
12
|
private _initialized;
|
|
11
13
|
private _stopped;
|
|
12
14
|
private _distance;
|
|
13
|
-
constructor(
|
|
15
|
+
constructor(entity: Entity, x: number, y: number, duration: number, easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number);
|
|
14
16
|
private _initialize;
|
|
15
17
|
update(delta: number): void;
|
|
16
18
|
isComplete(actor: Actor): boolean;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
2
|
import { Action } from '../Action';
|
|
3
3
|
export declare class Fade implements Action {
|
|
4
|
+
private _graphics;
|
|
4
5
|
x: number;
|
|
5
6
|
y: number;
|
|
6
|
-
private _actor;
|
|
7
7
|
private _endOpacity;
|
|
8
8
|
private _speed;
|
|
9
9
|
private _multiplier;
|
|
10
10
|
private _started;
|
|
11
11
|
private _stopped;
|
|
12
|
-
constructor(
|
|
12
|
+
constructor(entity: Entity, endOpacity: number, speed: number);
|
|
13
13
|
update(delta: number): void;
|
|
14
14
|
isComplete(): boolean;
|
|
15
15
|
stop(): void;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
2
|
import { Action } from '../Action';
|
|
3
3
|
export declare class Follow implements Action {
|
|
4
|
-
private
|
|
5
|
-
private
|
|
4
|
+
private _tx;
|
|
5
|
+
private _motion;
|
|
6
|
+
private _followTx;
|
|
7
|
+
private _followMotion;
|
|
6
8
|
x: number;
|
|
7
9
|
y: number;
|
|
8
10
|
private _current;
|
|
@@ -13,7 +15,7 @@ export declare class Follow implements Action {
|
|
|
13
15
|
private _distanceBetween;
|
|
14
16
|
private _started;
|
|
15
17
|
private _stopped;
|
|
16
|
-
constructor(
|
|
18
|
+
constructor(entity: Entity, entityToFollow: Entity, followDistance?: number);
|
|
17
19
|
update(_delta: number): void;
|
|
18
20
|
stop(): void;
|
|
19
21
|
isComplete(): boolean;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
2
|
import { Action } from '../Action';
|
|
3
3
|
export declare class Meet implements Action {
|
|
4
|
-
private
|
|
5
|
-
private
|
|
4
|
+
private _tx;
|
|
5
|
+
private _motion;
|
|
6
|
+
private _meetTx;
|
|
7
|
+
private _meetMotion;
|
|
6
8
|
x: number;
|
|
7
9
|
y: number;
|
|
8
10
|
private _current;
|
|
@@ -13,7 +15,7 @@ export declare class Meet implements Action {
|
|
|
13
15
|
private _started;
|
|
14
16
|
private _stopped;
|
|
15
17
|
private _speedWasSpecified;
|
|
16
|
-
constructor(actor:
|
|
18
|
+
constructor(actor: Entity, actorToMeet: Entity, speed?: number);
|
|
17
19
|
update(_delta: number): void;
|
|
18
20
|
isComplete(): boolean;
|
|
19
21
|
stop(): void;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
2
|
import { Action } from '../Action';
|
|
3
3
|
export declare class MoveBy implements Action {
|
|
4
|
-
private
|
|
4
|
+
private _tx;
|
|
5
|
+
private _motion;
|
|
6
|
+
private _entity;
|
|
5
7
|
x: number;
|
|
6
8
|
y: number;
|
|
7
9
|
private _distance;
|
|
@@ -12,9 +14,9 @@ export declare class MoveBy implements Action {
|
|
|
12
14
|
private _dir;
|
|
13
15
|
private _started;
|
|
14
16
|
private _stopped;
|
|
15
|
-
constructor(
|
|
17
|
+
constructor(entity: Entity, offsetX: number, offsetY: number, speed: number);
|
|
16
18
|
update(_delta: number): void;
|
|
17
|
-
isComplete(
|
|
19
|
+
isComplete(entity: Entity): boolean;
|
|
18
20
|
stop(): void;
|
|
19
21
|
reset(): void;
|
|
20
22
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
2
|
import { Action } from '../Action';
|
|
3
3
|
export declare class MoveTo implements Action {
|
|
4
|
-
|
|
4
|
+
entity: Entity;
|
|
5
|
+
private _tx;
|
|
6
|
+
private _motion;
|
|
5
7
|
x: number;
|
|
6
8
|
y: number;
|
|
7
9
|
private _start;
|
|
@@ -11,9 +13,9 @@ export declare class MoveTo implements Action {
|
|
|
11
13
|
private _distance;
|
|
12
14
|
private _started;
|
|
13
15
|
private _stopped;
|
|
14
|
-
constructor(
|
|
16
|
+
constructor(entity: Entity, destx: number, desty: number, speed: number);
|
|
15
17
|
update(_delta: number): void;
|
|
16
|
-
isComplete(
|
|
18
|
+
isComplete(entity: Entity): boolean;
|
|
17
19
|
stop(): void;
|
|
18
20
|
reset(): void;
|
|
19
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
2
|
import { Action } from '../Action';
|
|
3
3
|
import { ActionContext } from '../ActionContext';
|
|
4
4
|
export declare class Repeat implements Action {
|
|
@@ -8,7 +8,7 @@ export declare class Repeat implements Action {
|
|
|
8
8
|
private _stopped;
|
|
9
9
|
private _repeatContext;
|
|
10
10
|
private _repeatBuilder;
|
|
11
|
-
constructor(
|
|
11
|
+
constructor(entity: Entity, repeatBuilder: (repeatContext: ActionContext) => any, repeat: number);
|
|
12
12
|
update(delta: number): void;
|
|
13
13
|
isComplete(): boolean;
|
|
14
14
|
stop(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
2
|
import { Action } from '../Action';
|
|
3
3
|
import { ActionContext } from '../ActionContext';
|
|
4
4
|
/**
|
|
@@ -12,7 +12,7 @@ export declare class RepeatForever implements Action {
|
|
|
12
12
|
private _stopped;
|
|
13
13
|
private _repeatContext;
|
|
14
14
|
private _repeatBuilder;
|
|
15
|
-
constructor(
|
|
15
|
+
constructor(entity: Entity, repeatBuilder: (repeatContext: ActionContext) => any);
|
|
16
16
|
update(delta: number): void;
|
|
17
17
|
isComplete(): boolean;
|
|
18
18
|
stop(): void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Actor } from '../../Actor';
|
|
2
1
|
import { Action } from '../Action';
|
|
3
2
|
import { RotationType } from '../RotationType';
|
|
3
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
4
4
|
export declare class RotateBy implements Action {
|
|
5
|
-
private
|
|
5
|
+
private _tx;
|
|
6
|
+
private _motion;
|
|
6
7
|
x: number;
|
|
7
8
|
y: number;
|
|
8
9
|
private _start;
|
|
@@ -18,7 +19,7 @@ export declare class RotateBy implements Action {
|
|
|
18
19
|
private _currentNonCannonAngle;
|
|
19
20
|
private _started;
|
|
20
21
|
private _stopped;
|
|
21
|
-
constructor(
|
|
22
|
+
constructor(entity: Entity, angleRadiansOffset: number, speed: number, rotationType?: RotationType);
|
|
22
23
|
update(_delta: number): void;
|
|
23
24
|
isComplete(): boolean;
|
|
24
25
|
stop(): void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Actor } from '../../Actor';
|
|
2
1
|
import { Action } from '../Action';
|
|
3
2
|
import { RotationType } from '../RotationType';
|
|
3
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
4
4
|
export declare class RotateTo implements Action {
|
|
5
|
-
private
|
|
5
|
+
private _tx;
|
|
6
|
+
private _motion;
|
|
6
7
|
x: number;
|
|
7
8
|
y: number;
|
|
8
9
|
private _start;
|
|
@@ -17,7 +18,7 @@ export declare class RotateTo implements Action {
|
|
|
17
18
|
private _currentNonCannonAngle;
|
|
18
19
|
private _started;
|
|
19
20
|
private _stopped;
|
|
20
|
-
constructor(
|
|
21
|
+
constructor(entity: Entity, angleRadians: number, speed: number, rotationType?: RotationType);
|
|
21
22
|
update(_delta: number): void;
|
|
22
23
|
isComplete(): boolean;
|
|
23
24
|
stop(): void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
2
|
import { Action } from '../Action';
|
|
3
3
|
export declare class ScaleBy implements Action {
|
|
4
|
-
private
|
|
4
|
+
private _tx;
|
|
5
|
+
private _motion;
|
|
5
6
|
x: number;
|
|
6
7
|
y: number;
|
|
7
8
|
private _startScale;
|
|
@@ -15,7 +16,7 @@ export declare class ScaleBy implements Action {
|
|
|
15
16
|
private _stopped;
|
|
16
17
|
private _speedX;
|
|
17
18
|
private _speedY;
|
|
18
|
-
constructor(
|
|
19
|
+
constructor(entity: Entity, scaleOffsetX: number, scaleOffsetY: number, speed: number);
|
|
19
20
|
update(_delta: number): void;
|
|
20
21
|
isComplete(): boolean;
|
|
21
22
|
stop(): void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Actor } from '../../Actor';
|
|
2
1
|
import { Action } from '../Action';
|
|
2
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
3
3
|
export declare class ScaleTo implements Action {
|
|
4
|
-
private
|
|
4
|
+
private _tx;
|
|
5
|
+
private _motion;
|
|
5
6
|
x: number;
|
|
6
7
|
y: number;
|
|
7
8
|
private _startX;
|
|
@@ -14,7 +15,7 @@ export declare class ScaleTo implements Action {
|
|
|
14
15
|
private _distanceY;
|
|
15
16
|
private _started;
|
|
16
17
|
private _stopped;
|
|
17
|
-
constructor(
|
|
18
|
+
constructor(entity: Entity, scaleX: number, scaleY: number, speedX: number, speedY: number);
|
|
18
19
|
update(_delta: number): void;
|
|
19
20
|
isComplete(): boolean;
|
|
20
21
|
stop(): void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Entity } from '../EntityComponentSystem/Entity';
|
|
2
2
|
/**
|
|
3
3
|
* Used for implementing actions for the [[ActionContext|Action API]].
|
|
4
4
|
*/
|
|
5
5
|
export interface Action {
|
|
6
6
|
update(delta: number): void;
|
|
7
|
-
isComplete(
|
|
7
|
+
isComplete(entity: Entity): boolean;
|
|
8
8
|
reset(): void;
|
|
9
9
|
stop(): void;
|
|
10
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { RotationType } from './RotationType';
|
|
2
|
-
import { Actor } from '../Actor';
|
|
3
2
|
import { EasingFunction } from '../Util/EasingFunctions';
|
|
4
3
|
import { ActionQueue } from './ActionQueue';
|
|
5
|
-
import { Vector } from '
|
|
4
|
+
import { Vector } from '../Math/vector';
|
|
5
|
+
import { Entity } from '../EntityComponentSystem/Entity';
|
|
6
6
|
/**
|
|
7
7
|
* The fluent Action API allows you to perform "actions" on
|
|
8
8
|
* [[Actor|Actors]] such as following, moving, rotating, and
|
|
@@ -10,9 +10,9 @@ import { Vector } from '..';
|
|
|
10
10
|
* the [[Action]] interface.
|
|
11
11
|
*/
|
|
12
12
|
export declare class ActionContext {
|
|
13
|
-
private
|
|
13
|
+
private _entity;
|
|
14
14
|
private _queue;
|
|
15
|
-
constructor(
|
|
15
|
+
constructor(entity: Entity);
|
|
16
16
|
getQueue(): ActionQueue;
|
|
17
17
|
update(elapsedMs: number): void;
|
|
18
18
|
/**
|
|
@@ -193,21 +193,27 @@ export declare class ActionContext {
|
|
|
193
193
|
*/
|
|
194
194
|
repeatForever(repeatBuilder: (repeatContext: ActionContext) => any): ActionContext;
|
|
195
195
|
/**
|
|
196
|
-
* This method will cause the
|
|
197
|
-
* @param
|
|
196
|
+
* This method will cause the entity to follow another at a specified distance
|
|
197
|
+
* @param entity The entity to follow
|
|
198
198
|
* @param followDistance The distance to maintain when following, if not specified the actor will follow at the current distance.
|
|
199
199
|
*/
|
|
200
|
-
follow(
|
|
200
|
+
follow(entity: Entity, followDistance?: number): ActionContext;
|
|
201
201
|
/**
|
|
202
|
-
* This method will cause the
|
|
202
|
+
* This method will cause the entity to move towards another until they
|
|
203
203
|
* collide "meet" at a specified speed.
|
|
204
|
-
* @param
|
|
204
|
+
* @param entity The entity to meet
|
|
205
205
|
* @param speed The speed in pixels per second to move, if not specified it will match the speed of the other actor
|
|
206
206
|
*/
|
|
207
|
-
meet(
|
|
207
|
+
meet(entity: Entity, speed?: number): ActionContext;
|
|
208
208
|
/**
|
|
209
209
|
* Returns a promise that resolves when the current action queue up to now
|
|
210
210
|
* is finished.
|
|
211
|
+
* @deprecated Use `toPromise()` will be removed in v0.26.0
|
|
211
212
|
*/
|
|
212
213
|
asPromise(): Promise<void>;
|
|
214
|
+
/**
|
|
215
|
+
* Returns a promise that resolves when the current action queue up to now
|
|
216
|
+
* is finished.
|
|
217
|
+
*/
|
|
218
|
+
toPromise(): Promise<void>;
|
|
213
219
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Entity } from '../EntityComponentSystem/Entity';
|
|
2
2
|
import { Action } from './Action';
|
|
3
3
|
/**
|
|
4
4
|
* Action Queues represent an ordered sequence of actions
|
|
@@ -11,11 +11,11 @@ import { Action } from './Action';
|
|
|
11
11
|
* queue.
|
|
12
12
|
*/
|
|
13
13
|
export declare class ActionQueue {
|
|
14
|
-
private
|
|
14
|
+
private _entity;
|
|
15
15
|
private _actions;
|
|
16
16
|
private _currentAction;
|
|
17
17
|
private _completedActions;
|
|
18
|
-
constructor(
|
|
18
|
+
constructor(entity: Entity);
|
|
19
19
|
/**
|
|
20
20
|
* Add an action to the sequence
|
|
21
21
|
* @param action
|