excalibur 0.25.2 → 0.25.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -2
- package/build/dist/Actions/Action/Blink.js +51 -0
- package/build/dist/Actions/Action/Blink.js.map +1 -0
- package/build/dist/Actions/Action/CallMethod.js +21 -0
- package/build/dist/Actions/Action/CallMethod.js.map +1 -0
- package/build/dist/Actions/Action/Delay.js +25 -0
- package/build/dist/Actions/Action/Delay.js.map +1 -0
- package/build/dist/Actions/Action/Die.js +22 -0
- package/build/dist/Actions/Action/Die.js.map +1 -0
- package/build/dist/Actions/Action/EaseTo.js +69 -0
- package/build/dist/Actions/Action/EaseTo.js.map +1 -0
- package/build/dist/Actions/Action/Fade.js +46 -0
- package/build/dist/Actions/Action/Fade.js.map +1 -0
- package/build/dist/Actions/Action/Follow.js +55 -0
- package/build/dist/Actions/Action/Follow.js.map +1 -0
- package/build/dist/Actions/Action/Meet.js +52 -0
- package/build/dist/Actions/Action/Meet.js.map +1 -0
- package/build/dist/Actions/Action/MoveBy.js +47 -0
- package/build/dist/Actions/Action/MoveBy.js.map +1 -0
- package/build/dist/Actions/Action/MoveTo.js +40 -0
- package/build/dist/Actions/Action/MoveTo.js.map +1 -0
- package/build/dist/Actions/Action/Repeat.js +31 -0
- package/build/dist/Actions/Action/Repeat.js.map +1 -0
- package/build/dist/Actions/Action/RepeatForever.js +37 -0
- package/build/dist/Actions/Action/RepeatForever.js.map +1 -0
- package/build/dist/Actions/Action/RotateBy.js +91 -0
- package/build/dist/Actions/Action/RotateBy.js.map +1 -0
- package/build/dist/Actions/Action/RotateTo.js +90 -0
- package/build/dist/Actions/Action/RotateTo.js.map +1 -0
- package/build/dist/Actions/Action/ScaleBy.js +45 -0
- package/build/dist/Actions/Action/ScaleBy.js.map +1 -0
- package/build/dist/Actions/Action/ScaleTo.js +56 -0
- package/build/dist/Actions/Action/ScaleTo.js.map +1 -0
- package/build/dist/Actions/Action.js +2 -0
- package/build/dist/Actions/Action.js.map +1 -0
- package/build/dist/Actions/ActionContext.js +305 -0
- package/build/dist/Actions/ActionContext.js.map +1 -0
- package/build/dist/Actions/ActionQueue.js +87 -0
- package/build/dist/Actions/ActionQueue.js.map +1 -0
- package/build/dist/Actions/Actionable.js +2 -0
- package/build/dist/Actions/Actionable.js.map +1 -0
- package/build/dist/Actions/ActionsComponent.js +198 -0
- package/build/dist/Actions/ActionsComponent.js.map +1 -0
- package/build/dist/Actions/ActionsSystem.js +18 -0
- package/build/dist/Actions/ActionsSystem.js.map +1 -0
- package/build/dist/Actions/Index.js +22 -0
- package/build/dist/Actions/Index.js.map +1 -0
- package/build/dist/Actions/RotationType.js +27 -0
- package/build/dist/Actions/RotationType.js.map +1 -0
- package/build/dist/Actor.js +831 -0
- package/build/dist/Actor.js.map +1 -0
- package/build/dist/Camera.js +663 -0
- package/build/dist/Camera.js.map +1 -0
- package/build/dist/Class.js +48 -0
- package/build/dist/Class.js.map +1 -0
- package/build/dist/Collision/BodyComponent.js +351 -0
- package/build/dist/Collision/BodyComponent.js.map +1 -0
- package/build/dist/Collision/BoundingBox.js +361 -0
- package/build/dist/Collision/BoundingBox.js.map +1 -0
- package/build/dist/Collision/ColliderComponent.js +198 -0
- package/build/dist/Collision/ColliderComponent.js.map +1 -0
- package/build/dist/Collision/Colliders/CircleCollider.js +264 -0
- package/build/dist/Collision/Colliders/CircleCollider.js.map +1 -0
- package/build/dist/Collision/Colliders/ClosestLineJumpTable.js +211 -0
- package/build/dist/Collision/Colliders/ClosestLineJumpTable.js.map +1 -0
- package/build/dist/Collision/Colliders/Collider.js +26 -0
- package/build/dist/Collision/Colliders/Collider.js.map +1 -0
- package/build/dist/Collision/Colliders/CollisionJumpTable.js +301 -0
- package/build/dist/Collision/Colliders/CollisionJumpTable.js.map +1 -0
- package/build/dist/Collision/Colliders/CompositeCollider.js +232 -0
- package/build/dist/Collision/Colliders/CompositeCollider.js.map +1 -0
- package/build/dist/Collision/Colliders/EdgeCollider.js +253 -0
- package/build/dist/Collision/Colliders/EdgeCollider.js.map +1 -0
- package/build/dist/Collision/Colliders/PolygonCollider.js +389 -0
- package/build/dist/Collision/Colliders/PolygonCollider.js.map +1 -0
- package/build/dist/Collision/Colliders/SeparatingAxis.js +67 -0
- package/build/dist/Collision/Colliders/SeparatingAxis.js.map +1 -0
- package/build/dist/Collision/Colliders/Shape.js +102 -0
- package/build/dist/Collision/Colliders/Shape.js.map +1 -0
- package/build/dist/Collision/CollisionSystem.js +116 -0
- package/build/dist/Collision/CollisionSystem.js.map +1 -0
- package/build/dist/Collision/CollisionType.js +33 -0
- package/build/dist/Collision/CollisionType.js.map +1 -0
- package/build/dist/Collision/Detection/CollisionContact.js +46 -0
- package/build/dist/Collision/Detection/CollisionContact.js.map +1 -0
- package/build/dist/Collision/Detection/CollisionProcessor.js +2 -0
- package/build/dist/Collision/Detection/CollisionProcessor.js.map +1 -0
- package/build/dist/Collision/Detection/DynamicTree.js +442 -0
- package/build/dist/Collision/Detection/DynamicTree.js.map +1 -0
- package/build/dist/Collision/Detection/DynamicTreeCollisionProcessor.js +211 -0
- package/build/dist/Collision/Detection/DynamicTreeCollisionProcessor.js.map +1 -0
- package/build/dist/Collision/Detection/Pair.js +92 -0
- package/build/dist/Collision/Detection/Pair.js.map +1 -0
- package/build/dist/Collision/Group/CollisionGroup.js +114 -0
- package/build/dist/Collision/Group/CollisionGroup.js.map +1 -0
- package/build/dist/Collision/Group/CollisionGroupManager.js +52 -0
- package/build/dist/Collision/Group/CollisionGroupManager.js.map +1 -0
- package/build/dist/Collision/Index.js +29 -0
- package/build/dist/Collision/Index.js.map +1 -0
- package/build/dist/Collision/Integrator.js +11 -0
- package/build/dist/Collision/Integrator.js.map +1 -0
- package/build/dist/Collision/MotionSystem.js +42 -0
- package/build/dist/Collision/MotionSystem.js.map +1 -0
- package/build/dist/Collision/Physics.js +163 -0
- package/build/dist/Collision/Physics.js.map +1 -0
- package/build/dist/Collision/Side.js +51 -0
- package/build/dist/Collision/Side.js.map +1 -0
- package/build/dist/Collision/Solver/ArcadeSolver.js +101 -0
- package/build/dist/Collision/Solver/ArcadeSolver.js.map +1 -0
- package/build/dist/Collision/Solver/ContactConstraintPoint.js +83 -0
- package/build/dist/Collision/Solver/ContactConstraintPoint.js.map +1 -0
- package/build/dist/Collision/Solver/RealisticSolver.js +248 -0
- package/build/dist/Collision/Solver/RealisticSolver.js.map +1 -0
- package/build/dist/Collision/Solver/Solver.js +37 -0
- package/build/dist/Collision/Solver/Solver.js.map +1 -0
- package/build/dist/Color.js +461 -0
- package/build/dist/Color.js.map +1 -0
- package/build/dist/Configurable.js +32 -0
- package/build/dist/Configurable.js.map +1 -0
- package/build/dist/Debug/Debug.js +375 -0
- package/build/dist/Debug/Debug.js.map +1 -0
- package/build/dist/Debug/DebugFlags.js +40 -0
- package/build/dist/Debug/DebugFlags.js.map +1 -0
- package/build/dist/Debug/DebugSystem.js +251 -0
- package/build/dist/Debug/DebugSystem.js.map +1 -0
- package/build/dist/Debug/index.js +4 -0
- package/build/dist/Debug/index.js.map +1 -0
- package/build/dist/Deprecated.js +2 -0
- package/build/dist/Deprecated.js.map +1 -0
- package/build/dist/Drawing/Animation.js +294 -0
- package/build/dist/Drawing/Animation.js.map +1 -0
- package/build/dist/Drawing/CanvasDrawComponent.js +16 -0
- package/build/dist/Drawing/CanvasDrawComponent.js.map +1 -0
- package/build/dist/Drawing/CanvasDrawingSystem.js +95 -0
- package/build/dist/Drawing/CanvasDrawingSystem.js.map +1 -0
- package/build/dist/Drawing/Index.js +10 -0
- package/build/dist/Drawing/Index.js.map +1 -0
- package/build/dist/Drawing/Polygon.js +139 -0
- package/build/dist/Drawing/Polygon.js.map +1 -0
- package/build/dist/Drawing/Sprite.js +355 -0
- package/build/dist/Drawing/Sprite.js.map +1 -0
- package/build/dist/Drawing/SpriteEffects.js +246 -0
- package/build/dist/Drawing/SpriteEffects.js.map +1 -0
- package/build/dist/Drawing/SpriteSheet.js +413 -0
- package/build/dist/Drawing/SpriteSheet.js.map +1 -0
- package/build/dist/Drawing/Texture.js +69 -0
- package/build/dist/Drawing/Texture.js.map +1 -0
- package/build/dist/Engine.d.ts +4 -1
- package/build/dist/Engine.js +985 -0
- package/build/dist/Engine.js.map +1 -0
- package/build/dist/EntityComponentSystem/Component.js +65 -0
- package/build/dist/EntityComponentSystem/Component.js.map +1 -0
- package/build/dist/EntityComponentSystem/Components/MotionComponent.js +33 -0
- package/build/dist/EntityComponentSystem/Components/MotionComponent.js.map +1 -0
- package/build/dist/EntityComponentSystem/Components/TransformComponent.js +249 -0
- package/build/dist/EntityComponentSystem/Components/TransformComponent.js.map +1 -0
- package/build/dist/EntityComponentSystem/Entity.js +452 -0
- package/build/dist/EntityComponentSystem/Entity.js.map +1 -0
- package/build/dist/EntityComponentSystem/EntityManager.js +128 -0
- package/build/dist/EntityComponentSystem/EntityManager.js.map +1 -0
- package/build/dist/EntityComponentSystem/Query.js +91 -0
- package/build/dist/EntityComponentSystem/Query.js.map +1 -0
- package/build/dist/EntityComponentSystem/QueryManager.js +90 -0
- package/build/dist/EntityComponentSystem/QueryManager.js.map +1 -0
- package/build/dist/EntityComponentSystem/System.js +76 -0
- package/build/dist/EntityComponentSystem/System.js.map +1 -0
- package/build/dist/EntityComponentSystem/SystemManager.js +102 -0
- package/build/dist/EntityComponentSystem/SystemManager.js.map +1 -0
- package/build/dist/EntityComponentSystem/Util.js +5 -0
- package/build/dist/EntityComponentSystem/Util.js.map +1 -0
- package/build/dist/EntityComponentSystem/World.js +55 -0
- package/build/dist/EntityComponentSystem/World.js.map +1 -0
- package/build/dist/EntityComponentSystem/index.js +11 -0
- package/build/dist/EntityComponentSystem/index.js.map +1 -0
- package/build/dist/EventDispatcher.js +114 -0
- package/build/dist/EventDispatcher.js.map +1 -0
- package/build/dist/Events/ExEvent.js +12 -0
- package/build/dist/Events/ExEvent.js.map +1 -0
- package/build/dist/Events/MediaEvents.js +75 -0
- package/build/dist/Events/MediaEvents.js.map +1 -0
- package/build/dist/Events/PointerEvents.js +52 -0
- package/build/dist/Events/PointerEvents.js.map +1 -0
- package/build/dist/Events.js +497 -0
- package/build/dist/Events.js.map +1 -0
- package/build/dist/Flags.js +90 -0
- package/build/dist/Flags.js.map +1 -0
- package/build/dist/Graphics/Animation.js +310 -0
- package/build/dist/Graphics/Animation.js.map +1 -0
- package/build/dist/Graphics/Canvas.js +38 -0
- package/build/dist/Graphics/Canvas.js.map +1 -0
- package/build/dist/Graphics/Circle.js +47 -0
- package/build/dist/Graphics/Circle.js.map +1 -0
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext.js +2 -0
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext.js.map +1 -0
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext2DCanvas.js +207 -0
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext2DCanvas.js.map +1 -0
- package/build/dist/Graphics/Context/ExcaliburGraphicsContextWebGL.js +331 -0
- package/build/dist/Graphics/Context/ExcaliburGraphicsContextWebGL.js.map +1 -0
- package/build/dist/Graphics/Context/circle-renderer/circle-renderer.js +160 -0
- package/build/dist/Graphics/Context/circle-renderer/circle-renderer.js.map +1 -0
- package/build/dist/Graphics/Context/debug-text.js +47 -0
- package/build/dist/Graphics/Context/debug-text.js.map +1 -0
- package/build/dist/Graphics/Context/image-renderer/image-renderer.js +209 -0
- package/build/dist/Graphics/Context/image-renderer/image-renderer.js.map +1 -0
- package/build/dist/Graphics/Context/line-renderer/line-renderer.js +87 -0
- package/build/dist/Graphics/Context/line-renderer/line-renderer.js.map +1 -0
- package/build/dist/Graphics/Context/point-renderer/point-renderer.js +82 -0
- package/build/dist/Graphics/Context/point-renderer/point-renderer.js.map +1 -0
- package/build/dist/Graphics/Context/quad-index-buffer.js +69 -0
- package/build/dist/Graphics/Context/quad-index-buffer.js.map +1 -0
- package/build/dist/Graphics/Context/rectangle-renderer/rectangle-renderer.js +272 -0
- package/build/dist/Graphics/Context/rectangle-renderer/rectangle-renderer.js.map +1 -0
- package/build/dist/Graphics/Context/render-source.js +16 -0
- package/build/dist/Graphics/Context/render-source.js.map +1 -0
- package/build/dist/Graphics/Context/render-target.js +65 -0
- package/build/dist/Graphics/Context/render-target.js.map +1 -0
- package/build/dist/Graphics/Context/renderer.js +2 -0
- package/build/dist/Graphics/Context/renderer.js.map +1 -0
- package/build/dist/Graphics/Context/screen-pass-painter/screen-pass-painter.js +53 -0
- package/build/dist/Graphics/Context/screen-pass-painter/screen-pass-painter.js.map +1 -0
- package/build/dist/Graphics/Context/shader.js +236 -0
- package/build/dist/Graphics/Context/shader.js.map +1 -0
- package/build/dist/Graphics/Context/state-stack.js +27 -0
- package/build/dist/Graphics/Context/state-stack.js.map +1 -0
- package/build/dist/Graphics/Context/texture-loader.d.ts +8 -0
- package/build/dist/Graphics/Context/texture-loader.js +121 -0
- package/build/dist/Graphics/Context/texture-loader.js.map +1 -0
- package/build/dist/Graphics/Context/transform-stack.js +30 -0
- package/build/dist/Graphics/Context/transform-stack.js.map +1 -0
- package/build/dist/Graphics/Context/vertex-buffer.js +45 -0
- package/build/dist/Graphics/Context/vertex-buffer.js.map +1 -0
- package/build/dist/Graphics/Context/vertex-layout.js +93 -0
- package/build/dist/Graphics/Context/vertex-layout.js.map +1 -0
- package/build/dist/Graphics/Context/webgl-adapter.js +19 -0
- package/build/dist/Graphics/Context/webgl-adapter.js.map +1 -0
- package/build/dist/Graphics/Context/webgl-util.js +105 -0
- package/build/dist/Graphics/Context/webgl-util.js.map +1 -0
- package/build/dist/Graphics/DebugGraphicsComponent.js +15 -0
- package/build/dist/Graphics/DebugGraphicsComponent.js.map +1 -0
- package/build/dist/Graphics/Filtering.js +17 -0
- package/build/dist/Graphics/Filtering.js.map +1 -0
- package/build/dist/Graphics/Font.js +293 -0
- package/build/dist/Graphics/Font.js.map +1 -0
- package/build/dist/Graphics/FontCommon.js +109 -0
- package/build/dist/Graphics/FontCommon.js.map +1 -0
- package/build/dist/Graphics/Graphic.js +200 -0
- package/build/dist/Graphics/Graphic.js.map +1 -0
- package/build/dist/Graphics/GraphicsComponent.js +290 -0
- package/build/dist/Graphics/GraphicsComponent.js.map +1 -0
- package/build/dist/Graphics/GraphicsDiagnostics.js +9 -0
- package/build/dist/Graphics/GraphicsDiagnostics.js.map +1 -0
- package/build/dist/Graphics/GraphicsGroup.js +69 -0
- package/build/dist/Graphics/GraphicsGroup.js.map +1 -0
- package/build/dist/Graphics/GraphicsSystem.js +153 -0
- package/build/dist/Graphics/GraphicsSystem.js.map +1 -0
- package/build/dist/Graphics/ImageSource.js +116 -0
- package/build/dist/Graphics/ImageSource.js.map +1 -0
- package/build/dist/Graphics/Polygon.js +59 -0
- package/build/dist/Graphics/Polygon.js.map +1 -0
- package/build/dist/Graphics/PostProcessor/ColorBlindnessMode.js +7 -0
- package/build/dist/Graphics/PostProcessor/ColorBlindnessMode.js.map +1 -0
- package/build/dist/Graphics/PostProcessor/ColorBlindnessPostProcessor.js +52 -0
- package/build/dist/Graphics/PostProcessor/ColorBlindnessPostProcessor.js.map +1 -0
- package/build/dist/Graphics/PostProcessor/PostProcessor.js +2 -0
- package/build/dist/Graphics/PostProcessor/PostProcessor.js.map +1 -0
- package/build/dist/Graphics/PostProcessor/ScreenShader.js +56 -0
- package/build/dist/Graphics/PostProcessor/ScreenShader.js.map +1 -0
- package/build/dist/Graphics/Raster.js +207 -0
- package/build/dist/Graphics/Raster.js.map +1 -0
- package/build/dist/Graphics/Rectangle.js +29 -0
- package/build/dist/Graphics/Rectangle.js.map +1 -0
- package/build/dist/Graphics/Sprite.js +103 -0
- package/build/dist/Graphics/Sprite.js.map +1 -0
- package/build/dist/Graphics/SpriteFont.js +120 -0
- package/build/dist/Graphics/SpriteFont.js.map +1 -0
- package/build/dist/Graphics/SpriteSheet.js +115 -0
- package/build/dist/Graphics/SpriteSheet.js.map +1 -0
- package/build/dist/Graphics/Text.js +94 -0
- package/build/dist/Graphics/Text.js.map +1 -0
- package/build/dist/Graphics/index.js +42 -0
- package/build/dist/Graphics/index.js.map +1 -0
- package/build/dist/Id.js +8 -0
- package/build/dist/Id.js.map +1 -0
- package/build/dist/Input/CapturePointerConfig.js +5 -0
- package/build/dist/Input/CapturePointerConfig.js.map +1 -0
- package/build/dist/Input/EngineInput.js +2 -0
- package/build/dist/Input/EngineInput.js.map +1 -0
- package/build/dist/Input/Gamepad.js +358 -0
- package/build/dist/Input/Gamepad.js.map +1 -0
- package/build/dist/Input/Index.js +22 -0
- package/build/dist/Input/Index.js.map +1 -0
- package/build/dist/Input/Keyboard.js +267 -0
- package/build/dist/Input/Keyboard.js.map +1 -0
- package/build/dist/Input/NativePointerButton.js +12 -0
- package/build/dist/Input/NativePointerButton.js.map +1 -0
- package/build/dist/Input/PointerAbstraction.js +41 -0
- package/build/dist/Input/PointerAbstraction.js.map +1 -0
- package/build/dist/Input/PointerButton.js +12 -0
- package/build/dist/Input/PointerButton.js.map +1 -0
- package/build/dist/Input/PointerComponent.js +28 -0
- package/build/dist/Input/PointerComponent.js.map +1 -0
- package/build/dist/Input/PointerEvent.js +25 -0
- package/build/dist/Input/PointerEvent.js.map +1 -0
- package/build/dist/Input/PointerEventReceiver.js +414 -0
- package/build/dist/Input/PointerEventReceiver.js.map +1 -0
- package/build/dist/Input/PointerScope.js +16 -0
- package/build/dist/Input/PointerScope.js.map +1 -0
- package/build/dist/Input/PointerSystem.js +217 -0
- package/build/dist/Input/PointerSystem.js.map +1 -0
- package/build/dist/Input/PointerType.js +11 -0
- package/build/dist/Input/PointerType.js.map +1 -0
- package/build/dist/Input/WheelDeltaMode.js +7 -0
- package/build/dist/Input/WheelDeltaMode.js.map +1 -0
- package/build/dist/Input/WheelEvent.js +21 -0
- package/build/dist/Input/WheelEvent.js.map +1 -0
- package/build/dist/Interfaces/Audio.js +2 -0
- package/build/dist/Interfaces/Audio.js.map +1 -0
- package/build/dist/Interfaces/AudioImplementation.js +11 -0
- package/build/dist/Interfaces/AudioImplementation.js.map +1 -0
- package/build/dist/Interfaces/Clonable.js +2 -0
- package/build/dist/Interfaces/Clonable.js.map +1 -0
- package/build/dist/Interfaces/Drawable.js +2 -0
- package/build/dist/Interfaces/Drawable.js.map +1 -0
- package/build/dist/Interfaces/Evented.js +2 -0
- package/build/dist/Interfaces/Evented.js.map +1 -0
- package/build/dist/Interfaces/Index.js +10 -0
- package/build/dist/Interfaces/Index.js.map +1 -0
- package/build/dist/Interfaces/LifecycleEvents.js +51 -0
- package/build/dist/Interfaces/LifecycleEvents.js.map +1 -0
- package/build/dist/Interfaces/Loadable.js +2 -0
- package/build/dist/Interfaces/Loadable.js.map +1 -0
- package/build/dist/Interfaces/PointerEventHandlers.js +2 -0
- package/build/dist/Interfaces/PointerEventHandlers.js.map +1 -0
- package/build/dist/Interfaces/Trait.js +2 -0
- package/build/dist/Interfaces/Trait.js.map +1 -0
- package/build/dist/Label.js +273 -0
- package/build/dist/Label.js.map +1 -0
- package/build/dist/Loader.js +367 -0
- package/build/dist/Loader.js.map +1 -0
- package/build/dist/Math/Index.js +10 -0
- package/build/dist/Math/Index.js.map +1 -0
- package/build/dist/Math/Random.js +239 -0
- package/build/dist/Math/Random.js.map +1 -0
- package/build/dist/Math/global-coordinates.js +30 -0
- package/build/dist/Math/global-coordinates.js.map +1 -0
- package/build/dist/Math/line.js +194 -0
- package/build/dist/Math/line.js.map +1 -0
- package/build/dist/Math/matrix.js +446 -0
- package/build/dist/Math/matrix.js.map +1 -0
- package/build/dist/Math/projection.js +24 -0
- package/build/dist/Math/projection.js.map +1 -0
- package/build/dist/Math/ray.js +52 -0
- package/build/dist/Math/ray.js.map +1 -0
- package/build/dist/Math/util.js +82 -0
- package/build/dist/Math/util.js.map +1 -0
- package/build/dist/Math/vector-view.js +25 -0
- package/build/dist/Math/vector-view.js.map +1 -0
- package/build/dist/Math/vector.js +326 -0
- package/build/dist/Math/vector.js.map +1 -0
- package/build/dist/Particles.js +449 -0
- package/build/dist/Particles.js.map +1 -0
- package/build/dist/Polyfill.js +56 -0
- package/build/dist/Polyfill.js.map +1 -0
- package/build/dist/Promises.js +205 -0
- package/build/dist/Promises.js.map +1 -0
- package/build/dist/Resources/Gif.js +479 -0
- package/build/dist/Resources/Gif.js.map +1 -0
- package/build/dist/Resources/Index.js +4 -0
- package/build/dist/Resources/Index.js.map +1 -0
- package/build/dist/Resources/Resource.js +74 -0
- package/build/dist/Resources/Resource.js.map +1 -0
- package/build/dist/Resources/Sound/AudioContext.js +16 -0
- package/build/dist/Resources/Sound/AudioContext.js.map +1 -0
- package/build/dist/Resources/Sound/Index.js +4 -0
- package/build/dist/Resources/Sound/Index.js.map +1 -0
- package/build/dist/Resources/Sound/Sound.js +240 -0
- package/build/dist/Resources/Sound/Sound.js.map +1 -0
- package/build/dist/Resources/Sound/WebAudioInstance.js +160 -0
- package/build/dist/Resources/Sound/WebAudioInstance.js.map +1 -0
- package/build/dist/Scene.js +458 -0
- package/build/dist/Scene.js.map +1 -0
- package/build/dist/Screen.js +634 -0
- package/build/dist/Screen.js.map +1 -0
- package/build/dist/ScreenElement.js +29 -0
- package/build/dist/ScreenElement.js.map +1 -0
- package/build/dist/TileMap.js +488 -0
- package/build/dist/TileMap.js.map +1 -0
- package/build/dist/Timer.js +198 -0
- package/build/dist/Timer.js.map +1 -0
- package/build/dist/Traits/Index.js +5 -0
- package/build/dist/Traits/Index.js.map +1 -0
- package/build/dist/Traits/OffscreenCulling.js +35 -0
- package/build/dist/Traits/OffscreenCulling.js.map +1 -0
- package/build/dist/Trigger.js +113 -0
- package/build/dist/Trigger.js.map +1 -0
- package/build/dist/Util/Actors.js +19 -0
- package/build/dist/Util/Actors.js.map +1 -0
- package/build/dist/Util/Browser.js +66 -0
- package/build/dist/Util/Browser.js.map +1 -0
- package/build/dist/Util/Clock.js +219 -0
- package/build/dist/Util/Clock.js.map +1 -0
- package/build/dist/Util/CullingBox.js +104 -0
- package/build/dist/Util/CullingBox.js.map +1 -0
- package/build/dist/Util/Decorators.js +78 -0
- package/build/dist/Util/Decorators.js.map +1 -0
- package/build/dist/Util/Detector.js +167 -0
- package/build/dist/Util/Detector.js.map +1 -0
- package/build/dist/Util/DrawUtil.js +117 -0
- package/build/dist/Util/DrawUtil.js.map +1 -0
- package/build/dist/Util/EasingFunctions.js +118 -0
- package/build/dist/Util/EasingFunctions.js.map +1 -0
- package/build/dist/Util/Fps.js +47 -0
- package/build/dist/Util/Fps.js.map +1 -0
- package/build/dist/Util/Index.js +7 -0
- package/build/dist/Util/Index.js.map +1 -0
- package/build/dist/Util/Log.js +195 -0
- package/build/dist/Util/Log.js.map +1 -0
- package/build/dist/Util/Observable.js +60 -0
- package/build/dist/Util/Observable.js.map +1 -0
- package/build/dist/Util/Pool.js +66 -0
- package/build/dist/Util/Pool.js.map +1 -0
- package/build/dist/Util/SortedList.js +261 -0
- package/build/dist/Util/SortedList.js.map +1 -0
- package/build/dist/Util/Sound.js +22 -0
- package/build/dist/Util/Sound.js.map +1 -0
- package/build/dist/Util/Util.js +294 -0
- package/build/dist/Util/Util.js.map +1 -0
- package/build/dist/Util/Watch.js +67 -0
- package/build/dist/Util/Watch.js.map +1 -0
- package/build/dist/Util/WebAudio.js +62 -0
- package/build/dist/Util/WebAudio.js.map +1 -0
- package/build/dist/excalibur.js +101 -22
- package/build/dist/excalibur.js.map +1 -1
- package/build/dist/excalibur.min.js +1 -1
- package/build/dist/excalibur.min.js.LICENSE.txt +1 -1
- package/build/dist/excalibur.min.js.map +1 -1
- package/build/dist/index.js +74 -0
- package/build/dist/index.js.map +1 -0
- package/build/esm/Engine.d.ts +4 -1
- package/build/esm/Graphics/Context/texture-loader.d.ts +8 -0
- package/build/esm/excalibur.js +101 -22
- package/build/esm/excalibur.js.map +1 -1
- package/build/esm/excalibur.min.js +1 -1
- package/build/esm/excalibur.min.js.LICENSE.txt +1 -1
- package/build/esm/excalibur.min.js.map +1 -1
- package/package.json +23 -22
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Action Queues represent an ordered sequence of actions
|
|
3
|
+
*
|
|
4
|
+
* Action queues are part of the [[ActionContext|Action API]] and
|
|
5
|
+
* store the list of actions to be executed for an [[Actor]].
|
|
6
|
+
*
|
|
7
|
+
* Actors implement [[Actor.actions]] which can be manipulated by
|
|
8
|
+
* advanced users to adjust the actions currently being executed in the
|
|
9
|
+
* queue.
|
|
10
|
+
*/
|
|
11
|
+
export class ActionQueue {
|
|
12
|
+
constructor(entity) {
|
|
13
|
+
this._actions = [];
|
|
14
|
+
this._completedActions = [];
|
|
15
|
+
this._entity = entity;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Add an action to the sequence
|
|
19
|
+
* @param action
|
|
20
|
+
*/
|
|
21
|
+
add(action) {
|
|
22
|
+
this._actions.push(action);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Remove an action by reference from the sequence
|
|
26
|
+
* @param action
|
|
27
|
+
*/
|
|
28
|
+
remove(action) {
|
|
29
|
+
const index = this._actions.indexOf(action);
|
|
30
|
+
this._actions.splice(index, 1);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Removes all actions from this sequence
|
|
34
|
+
*/
|
|
35
|
+
clearActions() {
|
|
36
|
+
this._actions.length = 0;
|
|
37
|
+
this._completedActions.length = 0;
|
|
38
|
+
if (this._currentAction) {
|
|
39
|
+
this._currentAction.stop();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @returns The total list of actions in this sequence complete or not
|
|
45
|
+
*/
|
|
46
|
+
getActions() {
|
|
47
|
+
return this._actions.concat(this._completedActions);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @returns `true` if there are more actions to process in the sequence
|
|
52
|
+
*/
|
|
53
|
+
hasNext() {
|
|
54
|
+
return this._actions.length > 0;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @returns `true` if the current sequence of actions is done
|
|
58
|
+
*/
|
|
59
|
+
isComplete() {
|
|
60
|
+
return this._actions.length === 0;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Resets the sequence of actions, this is used to restart a sequence from the beginning
|
|
64
|
+
*/
|
|
65
|
+
reset() {
|
|
66
|
+
this._actions = this.getActions();
|
|
67
|
+
const len = this._actions.length;
|
|
68
|
+
for (let i = 0; i < len; i++) {
|
|
69
|
+
this._actions[i].reset();
|
|
70
|
+
}
|
|
71
|
+
this._completedActions = [];
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Update the queue which updates actions and handles completing actions
|
|
75
|
+
* @param elapsedMs
|
|
76
|
+
*/
|
|
77
|
+
update(elapsedMs) {
|
|
78
|
+
if (this._actions.length > 0) {
|
|
79
|
+
this._currentAction = this._actions[0];
|
|
80
|
+
this._currentAction.update(elapsedMs);
|
|
81
|
+
if (this._currentAction.isComplete(this._entity)) {
|
|
82
|
+
this._completedActions.push(this._actions.shift());
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=ActionQueue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionQueue.js","sourceRoot":"","sources":["../../../src/engine/Actions/ActionQueue.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,MAAM,OAAO,WAAW;IAKtB,YAAY,MAAc;QAHlB,aAAQ,GAAa,EAAE,CAAC;QAExB,sBAAiB,GAAa,EAAE,CAAC;QAEvC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;;OAGG;IACI,GAAG,CAAC,MAAc;QACvB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,MAAc;QAC1B,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAC5C,IAAI,CAAC,QAAQ,CAAC,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,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;gBAChD,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;aACpD;SACF;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Actionable.js","sourceRoot":"","sources":["../../../src/engine/Actions/Actionable.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { ActionContext } from './ActionContext';
|
|
2
|
+
import { Component } from '../EntityComponentSystem/Component';
|
|
3
|
+
import { MotionComponent } from '../EntityComponentSystem/Components/MotionComponent';
|
|
4
|
+
import { TransformComponent } from '../EntityComponentSystem/Components/TransformComponent';
|
|
5
|
+
;
|
|
6
|
+
export class ActionsComponent extends Component {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.type = 'ex.actions';
|
|
10
|
+
this.dependencies = [TransformComponent, MotionComponent];
|
|
11
|
+
}
|
|
12
|
+
onAdd(entity) {
|
|
13
|
+
this._ctx = new ActionContext(entity);
|
|
14
|
+
}
|
|
15
|
+
onRemove() {
|
|
16
|
+
this._ctx = null;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Returns the internal action queue
|
|
20
|
+
* @returns action queue
|
|
21
|
+
*/
|
|
22
|
+
getQueue() {
|
|
23
|
+
var _a;
|
|
24
|
+
return (_a = this._ctx) === null || _a === void 0 ? void 0 : _a.getQueue();
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Updates the internal action context, performing action and moving through the internal queue
|
|
28
|
+
* @param elapsedMs
|
|
29
|
+
*/
|
|
30
|
+
update(elapsedMs) {
|
|
31
|
+
var _a;
|
|
32
|
+
return (_a = this._ctx) === null || _a === void 0 ? void 0 : _a.update(elapsedMs);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Clears all queued actions from the Actor
|
|
36
|
+
*/
|
|
37
|
+
clearActions() {
|
|
38
|
+
var _a;
|
|
39
|
+
(_a = this._ctx) === null || _a === void 0 ? void 0 : _a.clearActions();
|
|
40
|
+
}
|
|
41
|
+
easeTo(...args) {
|
|
42
|
+
return this._ctx.easeTo.apply(this._ctx, args);
|
|
43
|
+
}
|
|
44
|
+
moveTo(xOrPos, yOrSpeed, speedOrUndefined) {
|
|
45
|
+
return this._ctx.moveTo.apply(this._ctx, [xOrPos, yOrSpeed, speedOrUndefined]);
|
|
46
|
+
}
|
|
47
|
+
moveBy(xOffsetOrVector, yOffsetOrSpeed, speedOrUndefined) {
|
|
48
|
+
return this._ctx.moveBy.apply(this._ctx, [xOffsetOrVector, yOffsetOrSpeed, speedOrUndefined]);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* This method will rotate an actor to the specified angle at the speed
|
|
52
|
+
* specified (in radians per second) and return back the actor. This
|
|
53
|
+
* method is part of the actor 'Action' fluent API allowing action chaining.
|
|
54
|
+
* @param angleRadians The angle to rotate to in radians
|
|
55
|
+
* @param speed The angular velocity of the rotation specified in radians per second
|
|
56
|
+
* @param rotationType The [[RotationType]] to use for this rotation
|
|
57
|
+
*/
|
|
58
|
+
rotateTo(angleRadians, speed, rotationType) {
|
|
59
|
+
return this._ctx.rotateTo(angleRadians, speed, rotationType);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* This method will rotate an actor by the specified angle offset, from it's current rotation given a certain speed
|
|
63
|
+
* in radians/sec and return back the actor. This method is part
|
|
64
|
+
* of the actor 'Action' fluent API allowing action chaining.
|
|
65
|
+
* @param angleRadiansOffset The angle to rotate to in radians relative to the current rotation
|
|
66
|
+
* @param speed The speed in radians/sec the actor should rotate at
|
|
67
|
+
* @param rotationType The [[RotationType]] to use for this rotation, default is shortest path
|
|
68
|
+
*/
|
|
69
|
+
rotateBy(angleRadiansOffset, speed, rotationType) {
|
|
70
|
+
return this._ctx.rotateBy(angleRadiansOffset, speed, rotationType);
|
|
71
|
+
}
|
|
72
|
+
scaleTo(sizeXOrVector, sizeYOrSpeed, speedXOrUndefined, speedYOrUndefined) {
|
|
73
|
+
return this._ctx.scaleTo.apply(this._ctx, [sizeXOrVector, sizeYOrSpeed, speedXOrUndefined, speedYOrUndefined]);
|
|
74
|
+
}
|
|
75
|
+
scaleBy(sizeOffsetXOrVector, sizeOffsetYOrSpeed, speed) {
|
|
76
|
+
return this._ctx.scaleBy.apply(this._ctx, [sizeOffsetXOrVector, sizeOffsetYOrSpeed, speed]);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* This method will cause an actor to blink (become visible and not
|
|
80
|
+
* visible). Optionally, you may specify the number of blinks. Specify the amount of time
|
|
81
|
+
* the actor should be visible per blink, and the amount of time not visible.
|
|
82
|
+
* This method is part of the actor 'Action' fluent API allowing action chaining.
|
|
83
|
+
* @param timeVisible The amount of time to stay visible per blink in milliseconds
|
|
84
|
+
* @param timeNotVisible The amount of time to stay not visible per blink in milliseconds
|
|
85
|
+
* @param numBlinks The number of times to blink
|
|
86
|
+
*/
|
|
87
|
+
blink(timeVisible, timeNotVisible, numBlinks) {
|
|
88
|
+
return this._ctx.blink(timeVisible, timeNotVisible, numBlinks);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* This method will cause an actor's opacity to change from its current value
|
|
92
|
+
* to the provided value by a specified time (in milliseconds). This method is
|
|
93
|
+
* part of the actor 'Action' fluent API allowing action chaining.
|
|
94
|
+
* @param opacity The ending opacity
|
|
95
|
+
* @param time The time it should take to fade the actor (in milliseconds)
|
|
96
|
+
*/
|
|
97
|
+
fade(opacity, time) {
|
|
98
|
+
return this._ctx.fade(opacity, time);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* This method will delay the next action from executing for a certain
|
|
102
|
+
* amount of time (in milliseconds). This method is part of the actor
|
|
103
|
+
* 'Action' fluent API allowing action chaining.
|
|
104
|
+
* @param time The amount of time to delay the next action in the queue from executing in milliseconds
|
|
105
|
+
*/
|
|
106
|
+
delay(time) {
|
|
107
|
+
return this._ctx.delay(time);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* This method will add an action to the queue that will remove the actor from the
|
|
111
|
+
* scene once it has completed its previous Any actions on the
|
|
112
|
+
* action queue after this action will not be executed.
|
|
113
|
+
*/
|
|
114
|
+
die() {
|
|
115
|
+
return this._ctx.die();
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* This method allows you to call an arbitrary method as the next action in the
|
|
119
|
+
* action queue. This is useful if you want to execute code in after a specific
|
|
120
|
+
* action, i.e An actor arrives at a destination after traversing a path
|
|
121
|
+
*/
|
|
122
|
+
callMethod(method) {
|
|
123
|
+
return this._ctx.callMethod(method);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* This method will cause the actor to repeat all of the actions built in
|
|
127
|
+
* the `repeatBuilder` callback. If the number of repeats
|
|
128
|
+
* is not specified it will repeat forever. This method is part of
|
|
129
|
+
* the actor 'Action' fluent API allowing action chaining
|
|
130
|
+
*
|
|
131
|
+
* ```typescript
|
|
132
|
+
* // Move up in a zig-zag by repeated moveBy's
|
|
133
|
+
* actor.actions.repeat(repeatCtx => {
|
|
134
|
+
* repeatCtx.moveBy(10, 0, 10);
|
|
135
|
+
* repeatCtx.moveBy(0, 10, 10);
|
|
136
|
+
* }, 5);
|
|
137
|
+
* ```
|
|
138
|
+
*
|
|
139
|
+
* @param repeatBuilder The builder to specify the repeatable list of actions
|
|
140
|
+
* @param times The number of times to repeat all the previous actions in the action queue. If nothing is specified the actions
|
|
141
|
+
* will repeat forever
|
|
142
|
+
*/
|
|
143
|
+
repeat(repeatBuilder, times) {
|
|
144
|
+
return this._ctx.repeat(repeatBuilder, times);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* This method will cause the actor to repeat all of the actions built in
|
|
148
|
+
* the `repeatBuilder` callback. If the number of repeats
|
|
149
|
+
* is not specified it will repeat forever. This method is part of
|
|
150
|
+
* the actor 'Action' fluent API allowing action chaining
|
|
151
|
+
*
|
|
152
|
+
* ```typescript
|
|
153
|
+
* // Move up in a zig-zag by repeated moveBy's
|
|
154
|
+
* actor.actions.repeat(repeatCtx => {
|
|
155
|
+
* repeatCtx.moveBy(10, 0, 10);
|
|
156
|
+
* repeatCtx.moveBy(0, 10, 10);
|
|
157
|
+
* }, 5);
|
|
158
|
+
* ```
|
|
159
|
+
*
|
|
160
|
+
* @param repeatBuilder The builder to specify the repeatable list of actions
|
|
161
|
+
*/
|
|
162
|
+
repeatForever(repeatBuilder) {
|
|
163
|
+
return this._ctx.repeatForever(repeatBuilder);
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* This method will cause the entity to follow another at a specified distance
|
|
167
|
+
* @param entity The entity to follow
|
|
168
|
+
* @param followDistance The distance to maintain when following, if not specified the actor will follow at the current distance.
|
|
169
|
+
*/
|
|
170
|
+
follow(entity, followDistance) {
|
|
171
|
+
return this._ctx.follow(entity, followDistance);
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* This method will cause the entity to move towards another until they
|
|
175
|
+
* collide "meet" at a specified speed.
|
|
176
|
+
* @param entity The entity to meet
|
|
177
|
+
* @param speed The speed in pixels per second to move, if not specified it will match the speed of the other actor
|
|
178
|
+
*/
|
|
179
|
+
meet(entity, speed) {
|
|
180
|
+
return this._ctx.meet(entity, speed);
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Returns a promise that resolves when the current action queue up to now
|
|
184
|
+
* is finished.
|
|
185
|
+
* @deprecated Use `toPromise()` will be removed in v0.26.0
|
|
186
|
+
*/
|
|
187
|
+
asPromise() {
|
|
188
|
+
return this.toPromise();
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Returns a promise that resolves when the current action queue up to now
|
|
192
|
+
* is finished.
|
|
193
|
+
*/
|
|
194
|
+
toPromise() {
|
|
195
|
+
return this._ctx.toPromise();
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
//# sourceMappingURL=ActionsComponent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionsComponent.js","sourceRoot":"","sources":["../../../src/engine/Actions/ActionsComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAG/D,OAAO,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wDAAwD,CAAC;AAMF,CAAC;AAE3F,MAAM,OAAO,gBAAiB,SAAQ,SAAuB;IAA7D;;QACkB,SAAI,GAAG,YAAY,CAAC;QACpC,iBAAY,GAAG,CAAC,kBAAkB,EAAE,eAAe,CAAC,CAAC;IA2SvD,CAAC;IAxSC,KAAK,CAAC,MAAc;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IAED,QAAQ;QACN,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED;;;OAGG;IACI,QAAQ;;QACb,OAAO,MAAA,IAAI,CAAC,IAAI,0CAAE,QAAQ,EAAE,CAAC;IAC/B,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,SAAiB;;QAC7B,OAAO,MAAA,IAAI,CAAC,IAAI,0CAAE,MAAM,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC;IAED;;OAEG;IACI,YAAY;;QACjB,MAAA,IAAI,CAAC,IAAI,0CAAE,YAAY,EAAE,CAAC;IAC5B,CAAC;IAqBM,MAAM,CAAC,GAAG,IAAW;QAC1B,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;IAmBM,MAAM,CAAC,MAAuB,EAAE,QAAgB,EAAE,gBAAyB;QAChF,OAAO,IA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ACd,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;IAC/B,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { System, SystemType } from '../EntityComponentSystem/System';
|
|
2
|
+
import { ActionsComponent } from './ActionsComponent';
|
|
3
|
+
export class ActionsSystem extends System {
|
|
4
|
+
constructor() {
|
|
5
|
+
super(...arguments);
|
|
6
|
+
this.types = ['ex.actions'];
|
|
7
|
+
this.systemType = SystemType.Update;
|
|
8
|
+
this.priority = -1;
|
|
9
|
+
}
|
|
10
|
+
update(entities, delta) {
|
|
11
|
+
let actions;
|
|
12
|
+
for (const entity of entities) {
|
|
13
|
+
actions = entity.get(ActionsComponent);
|
|
14
|
+
actions.update(delta);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=ActionsSystem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionsSystem.js","sourceRoot":"","sources":["../../../src/engine/Actions/ActionsSystem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,OAAO,aAAc,SAAQ,MAAwB;IAA3D;;QACkB,UAAK,GAAG,CAAC,YAAY,CAAU,CAAC;QAChD,eAAU,GAAG,UAAU,CAAC,MAAM,CAAC;QAC/B,aAAQ,GAAG,CAAC,CAAC,CAAC;IAShB,CAAC;IAPC,MAAM,CAAC,QAAkB,EAAE,KAAa;QACtC,IAAI,OAAyB,CAAC;QAC9B,KAAK,MAAM,MAAM,IAAI,QAAQ,EAAE;YAC7B,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;YACvC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;SACvB;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './ActionContext';
|
|
2
|
+
export * from './ActionQueue';
|
|
3
|
+
export * from './Actionable';
|
|
4
|
+
export * from './RotationType';
|
|
5
|
+
export * from './Action';
|
|
6
|
+
export * from './Action/Repeat';
|
|
7
|
+
export * from './Action/RepeatForever';
|
|
8
|
+
export * from './Action/Blink';
|
|
9
|
+
export * from './Action/Die';
|
|
10
|
+
export * from './Action/EaseTo';
|
|
11
|
+
export * from './Action/Fade';
|
|
12
|
+
export * from './Action/Follow';
|
|
13
|
+
export * from './Action/Meet';
|
|
14
|
+
export * from './Action/MoveBy';
|
|
15
|
+
export * from './Action/MoveTo';
|
|
16
|
+
export * from './Action/RotateBy';
|
|
17
|
+
export * from './Action/RotateTo';
|
|
18
|
+
export * from './Action/ScaleBy';
|
|
19
|
+
export * from './Action/ScaleTo';
|
|
20
|
+
export * from './ActionsComponent';
|
|
21
|
+
export * from './ActionsSystem';
|
|
22
|
+
//# sourceMappingURL=Index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Index.js","sourceRoot":"","sources":["../../../src/engine/Actions/Index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An enum that describes the strategies that rotation actions can use
|
|
3
|
+
*/
|
|
4
|
+
export var RotationType;
|
|
5
|
+
(function (RotationType) {
|
|
6
|
+
/**
|
|
7
|
+
* Rotation via `ShortestPath` will use the smallest angle
|
|
8
|
+
* between the starting and ending points. This strategy is the default behavior.
|
|
9
|
+
*/
|
|
10
|
+
RotationType[RotationType["ShortestPath"] = 0] = "ShortestPath";
|
|
11
|
+
/**
|
|
12
|
+
* Rotation via `LongestPath` will use the largest angle
|
|
13
|
+
* between the starting and ending points.
|
|
14
|
+
*/
|
|
15
|
+
RotationType[RotationType["LongestPath"] = 1] = "LongestPath";
|
|
16
|
+
/**
|
|
17
|
+
* Rotation via `Clockwise` will travel in a clockwise direction,
|
|
18
|
+
* regardless of the starting and ending points.
|
|
19
|
+
*/
|
|
20
|
+
RotationType[RotationType["Clockwise"] = 2] = "Clockwise";
|
|
21
|
+
/**
|
|
22
|
+
* Rotation via `CounterClockwise` will travel in a counterclockwise direction,
|
|
23
|
+
* regardless of the starting and ending points.
|
|
24
|
+
*/
|
|
25
|
+
RotationType[RotationType["CounterClockwise"] = 3] = "CounterClockwise";
|
|
26
|
+
})(RotationType || (RotationType = {}));
|
|
27
|
+
//# sourceMappingURL=RotationType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RotationType.js","sourceRoot":"","sources":["../../../src/engine/Actions/RotationType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,YAqBX;AArBD,WAAY,YAAY;IACtB;;;OAGG;IACH,+DAAgB,CAAA;IAChB;;;OAGG;IACH,6DAAe,CAAA;IACf;;;OAGG;IACH,yDAAa,CAAA;IACb;;;OAGG;IACH,uEAAoB,CAAA;AACtB,CAAC,EArBW,YAAY,KAAZ,YAAY,QAqBvB"}
|