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
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { ActionContext } from './ActionContext';
|
|
2
|
+
import { Component } from '../EntityComponentSystem/Component';
|
|
3
|
+
import { Entity } from '../EntityComponentSystem/Entity';
|
|
4
|
+
import { Actor } from '../Actor';
|
|
5
|
+
import { MotionComponent } from '../EntityComponentSystem/Components/MotionComponent';
|
|
6
|
+
import { TransformComponent } from '../EntityComponentSystem/Components/TransformComponent';
|
|
7
|
+
import { Vector } from '../Math/vector';
|
|
8
|
+
import { EasingFunction } from '../Util/EasingFunctions';
|
|
9
|
+
import { ActionQueue } from './ActionQueue';
|
|
10
|
+
import { RotationType } from './RotationType';
|
|
11
|
+
export interface ActionContextMethods extends Pick<ActionContext, keyof ActionContext> {
|
|
12
|
+
}
|
|
13
|
+
export declare class ActionsComponent extends Component<'ex.actions'> implements ActionContextMethods {
|
|
14
|
+
readonly type = "ex.actions";
|
|
15
|
+
dependencies: (typeof TransformComponent | typeof MotionComponent)[];
|
|
16
|
+
private _ctx;
|
|
17
|
+
onAdd(entity: Entity): void;
|
|
18
|
+
onRemove(): void;
|
|
19
|
+
/**
|
|
20
|
+
* Returns the internal action queue
|
|
21
|
+
* @returns action queu
|
|
22
|
+
*/
|
|
23
|
+
getQueue(): ActionQueue;
|
|
24
|
+
/**
|
|
25
|
+
* Updates the internal action context, performing action and moving through the internal queue
|
|
26
|
+
* @param elapsedMs
|
|
27
|
+
*/
|
|
28
|
+
update(elapsedMs: number): void;
|
|
29
|
+
/**
|
|
30
|
+
* Clears all queued actions from the Actor
|
|
31
|
+
*/
|
|
32
|
+
clearActions(): void;
|
|
33
|
+
/**
|
|
34
|
+
* This method will move an actor to the specified `x` and `y` position over the
|
|
35
|
+
* specified duration using a given [[EasingFunctions]] and return back the actor. This
|
|
36
|
+
* method is part of the actor 'Action' fluent API allowing action chaining.
|
|
37
|
+
* @param pos The x,y vector location to move the actor to
|
|
38
|
+
* @param duration The time it should take the actor to move to the new location in milliseconds
|
|
39
|
+
* @param easingFcn Use [[EasingFunctions]] or a custom function to use to calculate position, Default is [[EasingFunctions.Linear]]
|
|
40
|
+
*/
|
|
41
|
+
easeTo(pos: Vector, duration: number, easingFcn?: EasingFunction): ActionContext;
|
|
42
|
+
/**
|
|
43
|
+
* This method will move an actor to the specified `x` and `y` position over the
|
|
44
|
+
* specified duration using a given [[EasingFunctions]] and return back the actor. This
|
|
45
|
+
* method is part of the actor 'Action' fluent API allowing action chaining.
|
|
46
|
+
* @param x The x location to move the actor to
|
|
47
|
+
* @param y The y location to move the actor to
|
|
48
|
+
* @param duration The time it should take the actor to move to the new location in milliseconds
|
|
49
|
+
* @param easingFcn Use [[EasingFunctions]] or a custom function to use to calculate position, Default is [[EasingFunctions.Linear]]
|
|
50
|
+
*/
|
|
51
|
+
easeTo(x: number, y: number, duration: number, easingFcn?: EasingFunction): ActionContext;
|
|
52
|
+
/**
|
|
53
|
+
* This method will move an actor to the specified x and y position at the
|
|
54
|
+
* speed specified (in pixels per second) and return back the actor. This
|
|
55
|
+
* method is part of the actor 'Action' fluent API allowing action chaining.
|
|
56
|
+
* @param pos The x,y vector location to move the actor to
|
|
57
|
+
* @param speed The speed in pixels per second to move
|
|
58
|
+
*/
|
|
59
|
+
moveTo(pos: Vector, speed: number): ActionContext;
|
|
60
|
+
/**
|
|
61
|
+
* This method will move an actor to the specified x and y position at the
|
|
62
|
+
* speed specified (in pixels per second) and return back the actor. This
|
|
63
|
+
* method is part of the actor 'Action' fluent API allowing action chaining.
|
|
64
|
+
* @param x The x location to move the actor to
|
|
65
|
+
* @param y The y location to move the actor to
|
|
66
|
+
* @param speed The speed in pixels per second to move
|
|
67
|
+
*/
|
|
68
|
+
moveTo(x: number, y: number, speed: number): ActionContext;
|
|
69
|
+
/**
|
|
70
|
+
* This method will move an actor by the specified x offset and y offset from its current position, at a certain speed.
|
|
71
|
+
* This method is part of the actor 'Action' fluent API allowing action chaining.
|
|
72
|
+
* @param offset The (x, y) offset to apply to this actor
|
|
73
|
+
* @param speed The speed in pixels per second the actor should move
|
|
74
|
+
*/
|
|
75
|
+
moveBy(offset: Vector, speed: number): ActionContext;
|
|
76
|
+
/**
|
|
77
|
+
* This method will move an actor by the specified x offset and y offset from its current position, at a certain speed.
|
|
78
|
+
* This method is part of the actor 'Action' fluent API allowing action chaining.
|
|
79
|
+
* @param xOffset The x offset to apply to this actor
|
|
80
|
+
* @param yOffset The y location to move the actor to
|
|
81
|
+
* @param speed The speed in pixels per second the actor should move
|
|
82
|
+
*/
|
|
83
|
+
moveBy(xOffset: number, yOffset: number, speed: number): ActionContext;
|
|
84
|
+
/**
|
|
85
|
+
* This method will rotate an actor to the specified angle at the speed
|
|
86
|
+
* specified (in radians per second) and return back the actor. This
|
|
87
|
+
* method is part of the actor 'Action' fluent API allowing action chaining.
|
|
88
|
+
* @param angleRadians The angle to rotate to in radians
|
|
89
|
+
* @param speed The angular velocity of the rotation specified in radians per second
|
|
90
|
+
* @param rotationType The [[RotationType]] to use for this rotation
|
|
91
|
+
*/
|
|
92
|
+
rotateTo(angleRadians: number, speed: number, rotationType?: RotationType): ActionContext;
|
|
93
|
+
/**
|
|
94
|
+
* This method will rotate an actor by the specified angle offset, from it's current rotation given a certain speed
|
|
95
|
+
* in radians/sec and return back the actor. This method is part
|
|
96
|
+
* of the actor 'Action' fluent API allowing action chaining.
|
|
97
|
+
* @param angleRadiansOffset The angle to rotate to in radians relative to the current rotation
|
|
98
|
+
* @param speed The speed in radians/sec the actor should rotate at
|
|
99
|
+
* @param rotationType The [[RotationType]] to use for this rotation, default is shortest path
|
|
100
|
+
*/
|
|
101
|
+
rotateBy(angleRadiansOffset: number, speed: number, rotationType?: RotationType): ActionContext;
|
|
102
|
+
/**
|
|
103
|
+
* This method will scale an actor to the specified size at the speed
|
|
104
|
+
* specified (in magnitude increase per second) and return back the
|
|
105
|
+
* actor. This method is part of the actor 'Action' fluent API allowing
|
|
106
|
+
* action chaining.
|
|
107
|
+
* @param size The scale to adjust the actor to over time
|
|
108
|
+
* @param speed The speed of scaling specified in magnitude increase per second
|
|
109
|
+
*/
|
|
110
|
+
scaleTo(size: Vector, speed: Vector): ActionContext;
|
|
111
|
+
/**
|
|
112
|
+
* This method will scale an actor to the specified size at the speed
|
|
113
|
+
* specified (in magnitude increase per second) and return back the
|
|
114
|
+
* actor. This method is part of the actor 'Action' fluent API allowing
|
|
115
|
+
* action chaining.
|
|
116
|
+
* @param sizeX The scaling factor to apply on X axis
|
|
117
|
+
* @param sizeY The scaling factor to apply on Y axis
|
|
118
|
+
* @param speedX The speed of scaling specified in magnitude increase per second on X axis
|
|
119
|
+
* @param speedY The speed of scaling specified in magnitude increase per second on Y axis
|
|
120
|
+
*/
|
|
121
|
+
scaleTo(sizeX: number, sizeY: number, speedX: number, speedY: number): ActionContext;
|
|
122
|
+
/**
|
|
123
|
+
* This method will scale an actor by an amount relative to the current scale at a certain speed in scale units/sec
|
|
124
|
+
* and return back the actor. This method is part of the
|
|
125
|
+
* actor 'Action' fluent API allowing action chaining.
|
|
126
|
+
* @param offset The scaling factor to apply to the actor
|
|
127
|
+
* @param speed The speed to scale at in scale units/sec
|
|
128
|
+
*/
|
|
129
|
+
scaleBy(offset: Vector, speed: number): ActionContext;
|
|
130
|
+
/**
|
|
131
|
+
* This method will scale an actor by an amount relative to the current scale at a certain speed in scale units/sec
|
|
132
|
+
* and return back the actor. This method is part of the
|
|
133
|
+
* actor 'Action' fluent API allowing action chaining.
|
|
134
|
+
* @param sizeOffsetX The scaling factor to apply on X axis
|
|
135
|
+
* @param sizeOffsetY The scaling factor to apply on Y axis
|
|
136
|
+
* @param speed The speed to scale at in scale units/sec
|
|
137
|
+
*/
|
|
138
|
+
scaleBy(sizeOffsetX: number, sizeOffsetY: number, speed: number): ActionContext;
|
|
139
|
+
/**
|
|
140
|
+
* This method will cause an actor to blink (become visible and not
|
|
141
|
+
* visible). Optionally, you may specify the number of blinks. Specify the amount of time
|
|
142
|
+
* the actor should be visible per blink, and the amount of time not visible.
|
|
143
|
+
* This method is part of the actor 'Action' fluent API allowing action chaining.
|
|
144
|
+
* @param timeVisible The amount of time to stay visible per blink in milliseconds
|
|
145
|
+
* @param timeNotVisible The amount of time to stay not visible per blink in milliseconds
|
|
146
|
+
* @param numBlinks The number of times to blink
|
|
147
|
+
*/
|
|
148
|
+
blink(timeVisible: number, timeNotVisible: number, numBlinks?: number): ActionContext;
|
|
149
|
+
/**
|
|
150
|
+
* This method will cause an actor's opacity to change from its current value
|
|
151
|
+
* to the provided value by a specified time (in milliseconds). This method is
|
|
152
|
+
* part of the actor 'Action' fluent API allowing action chaining.
|
|
153
|
+
* @param opacity The ending opacity
|
|
154
|
+
* @param time The time it should take to fade the actor (in milliseconds)
|
|
155
|
+
*/
|
|
156
|
+
fade(opacity: number, time: number): ActionContext;
|
|
157
|
+
/**
|
|
158
|
+
* This method will delay the next action from executing for a certain
|
|
159
|
+
* amount of time (in milliseconds). This method is part of the actor
|
|
160
|
+
* 'Action' fluent API allowing action chaining.
|
|
161
|
+
* @param time The amount of time to delay the next action in the queue from executing in milliseconds
|
|
162
|
+
*/
|
|
163
|
+
delay(time: number): ActionContext;
|
|
164
|
+
/**
|
|
165
|
+
* This method will add an action to the queue that will remove the actor from the
|
|
166
|
+
* scene once it has completed its previous Any actions on the
|
|
167
|
+
* action queue after this action will not be executed.
|
|
168
|
+
*/
|
|
169
|
+
die(): ActionContext;
|
|
170
|
+
/**
|
|
171
|
+
* This method allows you to call an arbitrary method as the next action in the
|
|
172
|
+
* action queue. This is useful if you want to execute code in after a specific
|
|
173
|
+
* action, i.e An actor arrives at a destination after traversing a path
|
|
174
|
+
*/
|
|
175
|
+
callMethod(method: () => any): ActionContext;
|
|
176
|
+
/**
|
|
177
|
+
* This method will cause the actor to repeat all of the actions built in
|
|
178
|
+
* the `repeatBuilder` callback. If the number of repeats
|
|
179
|
+
* is not specified it will repeat forever. This method is part of
|
|
180
|
+
* the actor 'Action' fluent API allowing action chaining
|
|
181
|
+
*
|
|
182
|
+
* ```typescript
|
|
183
|
+
* // Move up in a zig-zag by repeated moveBy's
|
|
184
|
+
* actor.actions.repeat(repeatCtx => {
|
|
185
|
+
* repeatCtx.moveBy(10, 0, 10);
|
|
186
|
+
* repeatCtx.moveBy(0, 10, 10);
|
|
187
|
+
* }, 5);
|
|
188
|
+
* ```
|
|
189
|
+
*
|
|
190
|
+
* @param repeatBuilder The builder to specify the repeatable list of actions
|
|
191
|
+
* @param times The number of times to repeat all the previous actions in the action queue. If nothing is specified the actions
|
|
192
|
+
* will repeat forever
|
|
193
|
+
*/
|
|
194
|
+
repeat(repeatBuilder: (repeatContext: ActionContext) => any, times?: number): ActionContext;
|
|
195
|
+
/**
|
|
196
|
+
* This method will cause the actor to repeat all of the actions built in
|
|
197
|
+
* the `repeatBuilder` callback. If the number of repeats
|
|
198
|
+
* is not specified it will repeat forever. This method is part of
|
|
199
|
+
* the actor 'Action' fluent API allowing action chaining
|
|
200
|
+
*
|
|
201
|
+
* ```typescript
|
|
202
|
+
* // Move up in a zig-zag by repeated moveBy's
|
|
203
|
+
* actor.actions.repeat(repeatCtx => {
|
|
204
|
+
* repeatCtx.moveBy(10, 0, 10);
|
|
205
|
+
* repeatCtx.moveBy(0, 10, 10);
|
|
206
|
+
* }, 5);
|
|
207
|
+
* ```
|
|
208
|
+
*
|
|
209
|
+
* @param repeatBuilder The builder to specify the repeatable list of actions
|
|
210
|
+
*/
|
|
211
|
+
repeatForever(repeatBuilder: (repeatContext: ActionContext) => any): ActionContext;
|
|
212
|
+
/**
|
|
213
|
+
* This method will cause the entity to follow another at a specified distance
|
|
214
|
+
* @param entity The entity to follow
|
|
215
|
+
* @param followDistance The distance to maintain when following, if not specified the actor will follow at the current distance.
|
|
216
|
+
*/
|
|
217
|
+
follow(entity: Actor, followDistance?: number): ActionContext;
|
|
218
|
+
/**
|
|
219
|
+
* This method will cause the entity to move towards another until they
|
|
220
|
+
* collide "meet" at a specified speed.
|
|
221
|
+
* @param entity The entity to meet
|
|
222
|
+
* @param speed The speed in pixels per second to move, if not specified it will match the speed of the other actor
|
|
223
|
+
*/
|
|
224
|
+
meet(entity: Actor, speed?: number): ActionContext;
|
|
225
|
+
/**
|
|
226
|
+
* Returns a promise that resolves when the current action queue up to now
|
|
227
|
+
* is finished.
|
|
228
|
+
* @deprecated Use `toPromise()` will be removed in v0.26.0
|
|
229
|
+
*/
|
|
230
|
+
asPromise(): Promise<void>;
|
|
231
|
+
/**
|
|
232
|
+
* Returns a promise that resolves when the current action queue up to now
|
|
233
|
+
* is finished.
|
|
234
|
+
*/
|
|
235
|
+
toPromise(): Promise<void>;
|
|
236
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Entity } from '../EntityComponentSystem';
|
|
2
|
+
import { System, SystemType } from '../EntityComponentSystem/System';
|
|
3
|
+
import { ActionsComponent } from './ActionsComponent';
|
|
4
|
+
export declare class ActionsSystem extends System<ActionsComponent> {
|
|
5
|
+
readonly types: readonly ["ex.actions"];
|
|
6
|
+
systemType: SystemType;
|
|
7
|
+
priority: number;
|
|
8
|
+
update(entities: Entity[], delta: number): void;
|
|
9
|
+
}
|
package/build/dist/Actor.d.ts
CHANGED
|
@@ -9,11 +9,9 @@ import { Drawable } from './Interfaces/Drawable';
|
|
|
9
9
|
import { CanInitialize, CanUpdate, CanDraw, CanBeKilled } from './Interfaces/LifecycleEvents';
|
|
10
10
|
import { Scene } from './Scene';
|
|
11
11
|
import { Logger } from './Util/Log';
|
|
12
|
-
import { ActionContext } from './Actions/ActionContext';
|
|
13
12
|
import { Vector } from './Math/vector';
|
|
14
13
|
import { BodyComponent } from './Collision/BodyComponent';
|
|
15
14
|
import { Eventable } from './Interfaces/Evented';
|
|
16
|
-
import { Actionable } from './Actions/Actionable';
|
|
17
15
|
import * as Events from './Events';
|
|
18
16
|
import { PointerEvents } from './Interfaces/PointerEventHandlers';
|
|
19
17
|
import { CollisionType } from './Collision/CollisionType';
|
|
@@ -24,6 +22,7 @@ import { GraphicsComponent } from './Graphics/GraphicsComponent';
|
|
|
24
22
|
import { ColliderComponent } from './Collision/ColliderComponent';
|
|
25
23
|
import { Collider, CollisionGroup } from './Collision/Index';
|
|
26
24
|
import { CapturePointerConfig } from './Input/CapturePointerConfig';
|
|
25
|
+
import { ActionsComponent } from './Actions/ActionsComponent';
|
|
27
26
|
/**
|
|
28
27
|
* Type guard for checking if something is an Actor
|
|
29
28
|
* @param x
|
|
@@ -117,7 +116,7 @@ export interface ActorArgs {
|
|
|
117
116
|
* or interact with the current scene, must be an actor. An `Actor` **must**
|
|
118
117
|
* be part of a [[Scene]] for it to be drawn to the screen.
|
|
119
118
|
*/
|
|
120
|
-
export declare class Actor extends Entity implements
|
|
119
|
+
export declare class Actor extends Entity implements Eventable, PointerEvents, CanInitialize, CanUpdate, CanDraw, CanBeKilled {
|
|
121
120
|
/**
|
|
122
121
|
* Set defaults for all Actors
|
|
123
122
|
*/
|
|
@@ -142,9 +141,16 @@ export declare class Actor extends Entity implements Actionable, Eventable, Poin
|
|
|
142
141
|
*/
|
|
143
142
|
get graphics(): GraphicsComponent;
|
|
144
143
|
/**
|
|
145
|
-
* Access to the Actor's
|
|
144
|
+
* Access to the Actor's built in [[ColliderComponent]]
|
|
146
145
|
*/
|
|
147
146
|
get collider(): ColliderComponent;
|
|
147
|
+
/**
|
|
148
|
+
* Useful for quickly scripting actor behavior, like moving to a place, patroling back and forth, blinking, etc.
|
|
149
|
+
*
|
|
150
|
+
* Access to the Actor's built in [[ActionsComponent]] which forwards to the
|
|
151
|
+
* [[ActionContext|Action context]] of the actor.
|
|
152
|
+
*/
|
|
153
|
+
get actions(): ActionsComponent;
|
|
148
154
|
/**
|
|
149
155
|
* Gets the position vector of the actor in pixels
|
|
150
156
|
*/
|
|
@@ -244,10 +250,6 @@ export declare class Actor extends Entity implements Actionable, Eventable, Poin
|
|
|
244
250
|
*/
|
|
245
251
|
get opacity(): number;
|
|
246
252
|
set opacity(opacity: number);
|
|
247
|
-
/**
|
|
248
|
-
* [[ActionContext|Action context]] of the actor. Useful for scripting actor behavior.
|
|
249
|
-
*/
|
|
250
|
-
actions: ActionContext;
|
|
251
253
|
/**
|
|
252
254
|
* Convenience reference to the global logger
|
|
253
255
|
*/
|
package/build/dist/Engine.d.ts
CHANGED
|
@@ -550,13 +550,18 @@ export declare class Engine extends Class implements CanInitialize, CanUpdate, C
|
|
|
550
550
|
* Toggle Excalibur debugging functionality.
|
|
551
551
|
*/
|
|
552
552
|
toggleDebug(): boolean;
|
|
553
|
+
private _loadingComplete;
|
|
554
|
+
/**
|
|
555
|
+
* Returns true when loading is totally complete and the player has clicked start
|
|
556
|
+
*/
|
|
557
|
+
get loadingComplete(): boolean;
|
|
553
558
|
/**
|
|
554
559
|
* Starts the internal game loop for Excalibur after loading
|
|
555
560
|
* any provided assets.
|
|
556
561
|
* @param loader Optional [[Loader]] to use to load resources. The default loader is [[Loader]], override to provide your own
|
|
557
562
|
* custom loader.
|
|
558
563
|
*/
|
|
559
|
-
start(loader?: Loader): Promise<
|
|
564
|
+
start(loader?: Loader): Promise<void>;
|
|
560
565
|
static createMainLoop(game: Engine, raf: (func: Function) => number, nowFn: () => number): () => void;
|
|
561
566
|
/**
|
|
562
567
|
* Stops Excalibur's main loop, useful for pausing the game.
|
|
@@ -13,6 +13,7 @@ export declare class EntityManager<ContextType = any> implements Observer<Remove
|
|
|
13
13
|
* @param _context
|
|
14
14
|
*/
|
|
15
15
|
updateEntities(_context: ContextType, elapsed: number): void;
|
|
16
|
+
findEntitiesForRemoval(): void;
|
|
16
17
|
/**
|
|
17
18
|
* EntityManager observes changes on entities
|
|
18
19
|
* @param message
|
|
@@ -11,6 +11,16 @@ export interface HasTick {
|
|
|
11
11
|
*/
|
|
12
12
|
tick(elapsedMilliseconds: number, idempotencyToken?: number): void;
|
|
13
13
|
}
|
|
14
|
+
export declare enum AnimationDirection {
|
|
15
|
+
/**
|
|
16
|
+
* Animation is playing forwards
|
|
17
|
+
*/
|
|
18
|
+
Forward = "forward",
|
|
19
|
+
/**
|
|
20
|
+
* Animation is play backwards
|
|
21
|
+
*/
|
|
22
|
+
Backward = "backward"
|
|
23
|
+
}
|
|
14
24
|
export declare enum AnimationStrategy {
|
|
15
25
|
/**
|
|
16
26
|
* Animation ends without displaying anything
|
|
@@ -50,10 +60,18 @@ export interface AnimationOptions {
|
|
|
50
60
|
* List of frames in the order you wish to play them
|
|
51
61
|
*/
|
|
52
62
|
frames: Frame[];
|
|
63
|
+
/**
|
|
64
|
+
* Optionally reverse the direction of play
|
|
65
|
+
*/
|
|
66
|
+
reverse?: boolean;
|
|
53
67
|
/**
|
|
54
68
|
* Optionally specify a default frame duration in ms (Default is 1000)
|
|
55
69
|
*/
|
|
56
70
|
frameDuration?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Optionally specify a total duration of the animation in ms to calculate each frame's duration
|
|
73
|
+
*/
|
|
74
|
+
totalDuration?: number;
|
|
57
75
|
/**
|
|
58
76
|
* Optionally specify the [[AnimationStrategy]] for the Animation
|
|
59
77
|
*/
|
|
@@ -110,15 +128,61 @@ export declare class Animation extends Graphic implements HasTick {
|
|
|
110
128
|
* @returns LegacyDrawing.Animation
|
|
111
129
|
*/
|
|
112
130
|
static toLegacyAnimation(engine: Engine, animation: Animation): LegacyDrawing.Animation;
|
|
131
|
+
/**
|
|
132
|
+
* Returns the current Frame of the animation
|
|
133
|
+
*/
|
|
113
134
|
get currentFrame(): Frame | null;
|
|
135
|
+
/**
|
|
136
|
+
* Returns the current frame index of the animation
|
|
137
|
+
*/
|
|
138
|
+
get currentFrameIndex(): number;
|
|
139
|
+
/**
|
|
140
|
+
* Returns `true` if the animation is playing
|
|
141
|
+
*/
|
|
114
142
|
get isPlaying(): boolean;
|
|
143
|
+
private _reversed;
|
|
144
|
+
/**
|
|
145
|
+
* Reverses the play direction of the Animation, this preserves the current frame
|
|
146
|
+
*/
|
|
147
|
+
reverse(): void;
|
|
148
|
+
/**
|
|
149
|
+
* Returns the current play direction of the animation
|
|
150
|
+
*/
|
|
151
|
+
get direction(): AnimationDirection;
|
|
152
|
+
/**
|
|
153
|
+
* Plays or resumes the animation from the current frame
|
|
154
|
+
*/
|
|
115
155
|
play(): void;
|
|
156
|
+
/**
|
|
157
|
+
* Pauses the animation on the current frame
|
|
158
|
+
*/
|
|
116
159
|
pause(): void;
|
|
160
|
+
/**
|
|
161
|
+
* Reset the animation back to the beginning, including if the animation were done
|
|
162
|
+
*/
|
|
117
163
|
reset(): void;
|
|
164
|
+
/**
|
|
165
|
+
* Returns `true` if the animation can end
|
|
166
|
+
*/
|
|
118
167
|
get canFinish(): boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Returns `true` if the animation is done, for looping type animations
|
|
170
|
+
* `ex.AnimationStrategy.PingPong` and `ex.AnimationStrategy.Loop` this will always return `false`
|
|
171
|
+
*
|
|
172
|
+
* See the `ex.Animation.canFinish()` method to know if an animation type can end
|
|
173
|
+
*/
|
|
119
174
|
get done(): boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Jump the animation immediately to a specific frame if it exists
|
|
177
|
+
* @param frameNumber
|
|
178
|
+
*/
|
|
120
179
|
goToFrame(frameNumber: number): void;
|
|
121
180
|
private _nextFrame;
|
|
181
|
+
/**
|
|
182
|
+
* Called internally by Excalibur to update the state of the animation potential update the current frame
|
|
183
|
+
* @param elapsedMilliseconds Milliseconds elapsed
|
|
184
|
+
* @param idempotencyToken Prevents double ticking in a frame by passing a unique token to the frame
|
|
185
|
+
*/
|
|
122
186
|
tick(elapsedMilliseconds: number, idempotencyToken?: number): void;
|
|
123
187
|
private _updateDimensions;
|
|
124
188
|
protected _drawImage(ctx: ExcaliburGraphicsContext, x: number, y: number): void;
|
|
@@ -75,7 +75,7 @@ export interface ExcaliburGraphicsContext {
|
|
|
75
75
|
*/
|
|
76
76
|
resetTransform(): void;
|
|
77
77
|
/**
|
|
78
|
-
* Update the context with the
|
|
78
|
+
* Update the context with the current viewport dimensions (used in resizing)
|
|
79
79
|
*/
|
|
80
80
|
updateViewport(): void;
|
|
81
81
|
/**
|
|
@@ -7,6 +7,7 @@ import { StateStack } from './state-stack';
|
|
|
7
7
|
import { LineRenderer } from './line-renderer';
|
|
8
8
|
import { ImageRenderer } from './image-renderer';
|
|
9
9
|
import { PointRenderer } from './point-renderer';
|
|
10
|
+
import { ScreenDimension } from '../../Screen';
|
|
10
11
|
declare class ExcaliburGraphicsContextWebGLDebug implements DebugDraw {
|
|
11
12
|
private _webglCtx;
|
|
12
13
|
private _debugText;
|
|
@@ -79,6 +80,11 @@ export declare class ExcaliburGraphicsContextWebGL implements ExcaliburGraphicsC
|
|
|
79
80
|
set opacity(value: number);
|
|
80
81
|
get width(): number;
|
|
81
82
|
get height(): number;
|
|
83
|
+
/**
|
|
84
|
+
* Checks the underlying webgl implementation if the requested internal resolution is supported
|
|
85
|
+
* @param dim
|
|
86
|
+
*/
|
|
87
|
+
checkIfResolutionSupported(dim: ScreenDimension): boolean;
|
|
82
88
|
constructor(options: ExcaliburGraphicsContextOptions);
|
|
83
89
|
private _init;
|
|
84
90
|
resetTransform(): void;
|
|
@@ -110,6 +110,7 @@ export declare class GraphicsLayer {
|
|
|
110
110
|
*/
|
|
111
111
|
get offset(): Vector;
|
|
112
112
|
set offset(value: Vector);
|
|
113
|
+
get currentKeys(): string;
|
|
113
114
|
}
|
|
114
115
|
export declare class GraphicsLayers {
|
|
115
116
|
private _component;
|
|
@@ -127,6 +128,7 @@ export declare class GraphicsLayers {
|
|
|
127
128
|
* Retrieve all layers
|
|
128
129
|
*/
|
|
129
130
|
get(): readonly GraphicsLayer[];
|
|
131
|
+
currentKeys(): string[];
|
|
130
132
|
has(name: string): boolean;
|
|
131
133
|
private _maybeAddLayer;
|
|
132
134
|
private _getLayer;
|
package/build/dist/Loader.css
CHANGED
package/build/dist/Loader.d.ts
CHANGED
|
@@ -164,6 +164,7 @@ export declare class Loader extends Class implements Loadable<Loadable<any>[]> {
|
|
|
164
164
|
* Returns the progess of the loader as a number between [0, 1] inclusive.
|
|
165
165
|
*/
|
|
166
166
|
get progress(): number;
|
|
167
|
+
private _positionPlayButton;
|
|
167
168
|
/**
|
|
168
169
|
* Loader draw function. Draws the default Excalibur loading screen.
|
|
169
170
|
* Override `logo`, `logoWidth`, `logoHeight` and `backgroundColor` properties
|
package/build/dist/Screen.d.ts
CHANGED
|
@@ -174,7 +174,10 @@ export declare class Screen {
|
|
|
174
174
|
get scaledHeight(): number;
|
|
175
175
|
setCurrentCamera(camera: Camera): void;
|
|
176
176
|
pushResolutionAndViewport(): void;
|
|
177
|
+
peekViewport(): ScreenDimension;
|
|
178
|
+
peekResolution(): ScreenDimension;
|
|
177
179
|
popResolutionAndViewport(): void;
|
|
180
|
+
private _alreadyWarned;
|
|
178
181
|
applyResolutionAndViewport(): void;
|
|
179
182
|
get antialiasing(): boolean;
|
|
180
183
|
set antialiasing(isSmooth: boolean);
|