excalibur 0.33.0-alpha.21 → 0.33.0-alpha.23
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/build/dist/{Actions/Action/ActionSequence.d.ts → actions/action/action-sequence.d.ts} +3 -3
- package/build/dist/{Actions/Action/Blink.d.ts → actions/action/blink.d.ts} +2 -2
- package/build/dist/{Actions/Action/CallMethod.d.ts → actions/action/call-method.d.ts} +1 -1
- package/build/dist/{Actions/Action/CurveBy.d.ts → actions/action/curve-by.d.ts} +3 -3
- package/build/dist/{Actions/Action/CurveTo.d.ts → actions/action/curve-to.d.ts} +3 -3
- package/build/dist/{Actions/Action/Delay.d.ts → actions/action/delay.d.ts} +1 -1
- package/build/dist/{Actions/Action/Die.d.ts → actions/action/die.d.ts} +2 -2
- package/build/dist/{Actions/Action/EaseBy.d.ts → actions/action/ease-by.d.ts} +2 -2
- package/build/dist/{Actions/Action/EaseTo.d.ts → actions/action/ease-to.d.ts} +2 -2
- package/build/dist/{Actions/Action/Fade.d.ts → actions/action/fade.d.ts} +2 -2
- package/build/dist/{Actions/Action/Flash.d.ts → actions/action/flash.d.ts} +3 -3
- package/build/dist/{Actions/Action/Follow.d.ts → actions/action/follow.d.ts} +2 -2
- package/build/dist/{Actions/Action/Meet.d.ts → actions/action/meet.d.ts} +2 -2
- package/build/dist/{Actions/Action/MoveBy.d.ts → actions/action/move-by.d.ts} +5 -5
- package/build/dist/{Actions/Action/MoveTo.d.ts → actions/action/move-to.d.ts} +5 -5
- package/build/dist/{Actions/Action/ParallelActions.d.ts → actions/action/parallel-actions.d.ts} +2 -2
- package/build/dist/{Actions/Action/RepeatForever.d.ts → actions/action/repeat-forever.d.ts} +3 -3
- package/build/dist/{Actions/Action/Repeat.d.ts → actions/action/repeat.d.ts} +3 -3
- package/build/dist/{Actions/Action/RotateBy.d.ts → actions/action/rotate-by.d.ts} +3 -3
- package/build/dist/{Actions/Action/RotateTo.d.ts → actions/action/rotate-to.d.ts} +3 -3
- package/build/dist/{Actions/Action/ScaleBy.d.ts → actions/action/scale-by.d.ts} +3 -3
- package/build/dist/{Actions/Action/ScaleTo.d.ts → actions/action/scale-to.d.ts} +3 -3
- package/build/dist/{Actions/ActionContext.d.ts → actions/action-context.d.ts} +15 -15
- package/build/dist/{Actions/ActionQueue.d.ts → actions/action-queue.d.ts} +2 -2
- package/build/dist/{Actions/Action.d.ts → actions/action.d.ts} +1 -1
- package/build/dist/{Actions/Actionable.d.ts → actions/actionable.d.ts} +1 -1
- package/build/dist/{Actions/ActionsComponent.d.ts → actions/actions-component.d.ts} +14 -14
- package/build/dist/{Actions/ActionsSystem.d.ts → actions/actions-system.d.ts} +3 -3
- package/build/dist/actions/index.d.ts +27 -0
- package/build/dist/{Actor.d.ts → actor.d.ts} +27 -27
- package/build/dist/{Camera.d.ts → camera.d.ts} +12 -12
- package/build/dist/{Collision/BodyComponent.d.ts → collision/body-component.d.ts} +13 -13
- package/build/dist/{Collision/BoundingBox.d.ts → collision/bounding-box.d.ts} +5 -5
- package/build/dist/{Collision/ColliderComponent.d.ts → collision/collider-component.d.ts} +12 -12
- package/build/dist/{Collision/Colliders/CircleCollider.d.ts → collision/colliders/circle-collider.d.ts} +11 -11
- package/build/dist/{Collision/Colliders/ClosestLineJumpTable.d.ts → collision/colliders/closest-line-jump-table.d.ts} +4 -4
- package/build/dist/{Collision/Colliders/Collider.d.ts → collision/colliders/collider.d.ts} +15 -15
- package/build/dist/{Collision/Colliders/CollisionJumpTable.d.ts → collision/colliders/collision-jump-table.d.ts} +5 -5
- package/build/dist/{Collision/Colliders/CompositeCollider.d.ts → collision/colliders/composite-collider.d.ts} +11 -11
- package/build/dist/{Collision/Colliders/EdgeCollider.d.ts → collision/colliders/edge-collider.d.ts} +11 -11
- package/build/dist/{Collision/Colliders/PolygonCollider.d.ts → collision/colliders/polygon-collider.d.ts} +11 -11
- package/build/dist/{Collision/Colliders/SeparatingAxis.d.ts → collision/colliders/separating-axis.d.ts} +6 -6
- package/build/dist/{Collision/Colliders/Shape.d.ts → collision/colliders/shape.d.ts} +5 -5
- package/build/dist/{Collision/CollisionSystem.d.ts → collision/collision-system.d.ts} +9 -9
- package/build/dist/{Collision/Detection/CollisionContact.d.ts → collision/detection/collision-contact.d.ts} +4 -4
- package/build/dist/{Collision/Detection/CollisionProcessor.d.ts → collision/detection/collision-processor.d.ts} +10 -10
- package/build/dist/{Collision/Detection/DynamicTreeCollisionProcessor.d.ts → collision/detection/dynamic-tree-collision-processor.d.ts} +13 -13
- package/build/dist/{Collision/Detection/DynamicTree.d.ts → collision/detection/dynamic-tree.d.ts} +5 -5
- package/build/dist/{Collision/Detection/Pair.d.ts → collision/detection/pair.d.ts} +3 -3
- package/build/dist/{Collision/Detection/QuadTree.d.ts → collision/detection/quad-tree.d.ts} +2 -2
- package/build/dist/{Collision/Detection/RayCastHit.d.ts → collision/detection/ray-cast-hit.d.ts} +3 -3
- package/build/dist/{Collision/Detection/RayCastOptions.d.ts → collision/detection/ray-cast-options.d.ts} +2 -2
- package/build/dist/{Collision/Detection/SparseHashGridCollisionProcessor.d.ts → collision/detection/sparse-hash-grid-collision-processor.d.ts} +16 -16
- package/build/dist/{Collision/Detection/SparseHashGrid.d.ts → collision/detection/sparse-hash-grid.d.ts} +3 -3
- package/build/dist/{Collision/Group/CollisionGroupManager.d.ts → collision/group/collision-group-manager.d.ts} +1 -1
- package/build/dist/collision/index.d.ts +38 -0
- package/build/dist/{Collision/Integrator.d.ts → collision/integrator.d.ts} +3 -3
- package/build/dist/{Collision/Island.d.ts → collision/island.d.ts} +2 -2
- package/build/dist/{Collision/MotionSystem.d.ts → collision/motion-system.d.ts} +5 -5
- package/build/dist/{Collision/PhysicsConfig.d.ts → collision/physics-config.d.ts} +5 -5
- package/build/dist/{Collision/PhysicsWorld.d.ts → collision/physics-world.d.ts} +11 -11
- package/build/dist/{Collision/Side.d.ts → collision/side.d.ts} +1 -1
- package/build/dist/{Collision/Solver/ArcadeSolver.d.ts → collision/solver/arcade-solver.d.ts} +4 -4
- package/build/dist/{Collision/Solver/ContactConstraintPoint.d.ts → collision/solver/contact-constraint-point.d.ts} +2 -2
- package/build/dist/{Collision/Solver/RealisticSolver.d.ts → collision/solver/realistic-solver.d.ts} +5 -5
- package/build/dist/{Collision/Solver/Solver.d.ts → collision/solver/solver.d.ts} +1 -1
- package/build/dist/{Color.d.ts → color.d.ts} +1 -1
- package/build/dist/{Debug/DebugConfig.d.ts → debug/debug-config.d.ts} +5 -5
- package/build/dist/{Debug/DebugFlags.d.ts → debug/debug-flags.d.ts} +2 -2
- package/build/dist/{Debug/DebugSystem.d.ts → debug/debug-system.d.ts} +4 -4
- package/build/dist/debug/index.d.ts +3 -0
- package/build/dist/{Director/CrossFade.d.ts → director/cross-fade.d.ts} +5 -5
- package/build/dist/{Director/DefaultLoader.d.ts → director/default-loader.d.ts} +5 -5
- package/build/dist/{Director/Director.d.ts → director/director.d.ts} +7 -7
- package/build/dist/{Director/FadeInOut.d.ts → director/fade-in-out.d.ts} +5 -5
- package/build/dist/director/index.d.ts +7 -0
- package/build/dist/{Director/Loader.d.ts → director/loader.d.ts} +9 -9
- package/build/dist/{Director/Slide.d.ts → director/slide.d.ts} +5 -5
- package/build/dist/{Director/Transition.d.ts → director/transition.d.ts} +7 -7
- package/build/dist/{Engine.d.ts → engine.d.ts} +31 -31
- package/build/dist/{EntityComponentSystem/Component.d.ts → entity-component-system/component.d.ts} +1 -1
- package/build/dist/{EntityComponentSystem/Components/MotionComponent.d.ts → entity-component-system/components/motion-component.d.ts} +2 -2
- package/build/dist/{EntityComponentSystem/Components/TagsComponent.d.ts → entity-component-system/components/tags-component.d.ts} +1 -1
- package/build/dist/{EntityComponentSystem/Components/TransformComponent.d.ts → entity-component-system/components/transform-component.d.ts} +6 -6
- package/build/dist/{EntityComponentSystem/EntityManager.d.ts → entity-component-system/entity-manager.d.ts} +3 -3
- package/build/dist/{EntityComponentSystem/Entity.d.ts → entity-component-system/entity.d.ts} +12 -12
- package/build/dist/entity-component-system/index.d.ts +13 -0
- package/build/dist/{EntityComponentSystem/QueryManager.d.ts → entity-component-system/query-manager.d.ts} +5 -5
- package/build/dist/{EntityComponentSystem/Query.d.ts → entity-component-system/query.d.ts} +3 -3
- package/build/dist/{EntityComponentSystem/SystemManager.d.ts → entity-component-system/system-manager.d.ts} +4 -4
- package/build/dist/{EntityComponentSystem/System.d.ts → entity-component-system/system.d.ts} +2 -2
- package/build/dist/{EntityComponentSystem/TagQuery.d.ts → entity-component-system/tag-query.d.ts} +2 -2
- package/build/dist/{EntityComponentSystem/World.d.ts → entity-component-system/world.d.ts} +9 -9
- package/build/dist/{Events/MediaEvents.d.ts → events/media-events.d.ts} +4 -4
- package/build/dist/{Events/PointerEvents.d.ts → events/pointer-events.d.ts} +3 -3
- package/build/dist/{Events.d.ts → events.d.ts} +15 -15
- package/build/dist/excalibur.development.js +155 -155
- package/build/dist/excalibur.js +155 -155
- package/build/dist/excalibur.min.development.js +3 -3
- package/build/dist/excalibur.min.js +3 -3
- package/build/dist/{Graphics/Animation.d.ts → graphics/animation.d.ts} +5 -5
- package/build/dist/{Graphics/Canvas.d.ts → graphics/canvas.d.ts} +3 -3
- package/build/dist/{Graphics/Circle.d.ts → graphics/circle.d.ts} +2 -2
- package/build/dist/{Graphics/Context → graphics/context}/circle-renderer/circle-renderer.d.ts +3 -3
- package/build/dist/{Graphics/Context → graphics/context}/debug-circle-renderer/debug-circle-renderer.d.ts +3 -3
- package/build/dist/{Graphics/Context → graphics/context}/debug-line-renderer/debug-line-renderer.d.ts +3 -3
- package/build/dist/{Graphics/Context → graphics/context}/debug-point-renderer/debug-point-renderer.d.ts +3 -3
- package/build/dist/{Graphics/Context → graphics/context}/debug-text.d.ts +3 -3
- package/build/dist/{Graphics/Context → graphics/context}/draw-call.d.ts +2 -2
- package/build/dist/{Graphics/Context/ExcaliburGraphicsContext2DCanvas.d.ts → graphics/context/excalibur-graphics-context-2d-canvas.d.ts} +6 -6
- package/build/dist/{Graphics/Context/ExcaliburGraphicsContextWebGL.d.ts → graphics/context/excalibur-graphics-context-webgl.d.ts} +8 -8
- package/build/dist/{Graphics/Context/ExcaliburGraphicsContext.d.ts → graphics/context/excalibur-graphics-context.d.ts} +6 -6
- package/build/dist/{Graphics/Context → graphics/context}/image-renderer/image-renderer.d.ts +2 -2
- package/build/dist/{Graphics/Context → graphics/context}/image-renderer-v2/image-renderer-v2.d.ts +2 -2
- package/build/dist/{Graphics/Context → graphics/context}/material-renderer/material-renderer.d.ts +2 -2
- package/build/dist/{Graphics/Context → graphics/context}/material.d.ts +4 -4
- package/build/dist/{Graphics/Context → graphics/context}/particle-renderer/particle-renderer.d.ts +2 -2
- package/build/dist/{Graphics/Context → graphics/context}/rectangle-renderer/rectangle-renderer.d.ts +3 -3
- package/build/dist/{Graphics/Context → graphics/context}/renderer.d.ts +1 -1
- package/build/dist/{Graphics/Context → graphics/context}/screen-pass-painter/screen-pass-painter.d.ts +2 -2
- package/build/dist/{Graphics/Context → graphics/context}/shader.d.ts +1 -1
- package/build/dist/{Graphics/Context → graphics/context}/state-stack.d.ts +2 -2
- package/build/dist/{Graphics/Context → graphics/context}/texture-loader.d.ts +4 -4
- package/build/dist/{Graphics/Context → graphics/context}/transform-stack.d.ts +1 -1
- package/build/dist/{Graphics/DebugGraphicsComponent.d.ts → graphics/debug-graphics-component.d.ts} +3 -3
- package/build/dist/{Graphics/Debug.d.ts → graphics/debug.d.ts} +6 -6
- package/build/dist/{Graphics/FontCache.d.ts → graphics/font-cache.d.ts} +4 -4
- package/build/dist/{Graphics/FontCommon.d.ts → graphics/font-common.d.ts} +4 -4
- package/build/dist/{Graphics/FontTextInstance.d.ts → graphics/font-text-instance.d.ts} +4 -4
- package/build/dist/{Graphics/Font.d.ts → graphics/font.d.ts} +10 -10
- package/build/dist/{Graphics/Graphic.d.ts → graphics/graphic.d.ts} +5 -5
- package/build/dist/{Graphics/GraphicsComponent.d.ts → graphics/graphics-component.d.ts} +8 -8
- package/build/dist/{Graphics/GraphicsGroup.d.ts → graphics/graphics-group.d.ts} +6 -6
- package/build/dist/{Graphics/GraphicsSystem.d.ts → graphics/graphics-system.d.ts} +5 -5
- package/build/dist/{Graphics/ImageSource.d.ts → graphics/image-source.d.ts} +6 -6
- package/build/dist/graphics/index.d.ts +47 -0
- package/build/dist/{Graphics/Line.d.ts → graphics/line.d.ts} +5 -5
- package/build/dist/{Graphics/NineSlice.d.ts → graphics/nine-slice.d.ts} +5 -5
- package/build/dist/{Graphics/OffscreenSystem.d.ts → graphics/offscreen-system.d.ts} +5 -5
- package/build/dist/{Graphics/ParallaxComponent.d.ts → graphics/parallax-component.d.ts} +2 -2
- package/build/dist/{Graphics/Polygon.d.ts → graphics/polygon.d.ts} +3 -3
- package/build/dist/{Graphics/PostProcessor/ColorBlindnessPostProcessor.d.ts → graphics/post-processor/color-blindness-post-processor.d.ts} +5 -5
- package/build/dist/{Graphics/PostProcessor/PostProcessor.d.ts → graphics/post-processor/post-processor.d.ts} +3 -3
- package/build/dist/{Graphics/PostProcessor/ScreenShader.d.ts → graphics/post-processor/screen-shader.d.ts} +3 -3
- package/build/dist/{Graphics/Raster.d.ts → graphics/raster.d.ts} +6 -6
- package/build/dist/{Graphics/Rectangle.d.ts → graphics/rectangle.d.ts} +2 -2
- package/build/dist/{Graphics/SpriteFont.d.ts → graphics/sprite-font.d.ts} +8 -8
- package/build/dist/{Graphics/SpriteSheet.d.ts → graphics/sprite-sheet.d.ts} +7 -7
- package/build/dist/{Graphics/Sprite.d.ts → graphics/sprite.d.ts} +4 -4
- package/build/dist/{Graphics/Text.d.ts → graphics/text.d.ts} +7 -7
- package/build/dist/{Graphics/TiledAnimation.d.ts → graphics/tiled-animation.d.ts} +7 -7
- package/build/dist/{Graphics/TiledSprite.d.ts → graphics/tiled-sprite.d.ts} +7 -7
- package/build/dist/{Graphics/TransformInterpolation.d.ts → graphics/transform-interpolation.d.ts} +1 -1
- package/build/dist/index.d.ts +66 -66
- package/build/dist/{Input/Gamepad.d.ts → input/gamepad.d.ts} +3 -3
- package/build/dist/{Input/InputHost.d.ts → input/input-host.d.ts} +5 -5
- package/build/dist/{Input/InputMapper.d.ts → input/input-mapper.d.ts} +3 -3
- package/build/dist/{Input/Keyboard.d.ts → input/keyboard.d.ts} +3 -3
- package/build/dist/{Input/PointerAbstraction.d.ts → input/pointer-abstraction.d.ts} +5 -5
- package/build/dist/{Input/PointerComponent.d.ts → input/pointer-component.d.ts} +2 -2
- package/build/dist/{Input/PointerEventReceiver.d.ts → input/pointer-event-receiver.d.ts} +8 -8
- package/build/dist/{Input/PointerEvent.d.ts → input/pointer-event.d.ts} +4 -4
- package/build/dist/{Input/PointerEventsToObjectDispatcher.d.ts → input/pointer-events-to-object-dispatcher.d.ts} +3 -3
- package/build/dist/{Input/PointerSystem.d.ts → input/pointer-system.d.ts} +4 -4
- package/build/dist/{Input/WheelEvent.d.ts → input/wheel-event.d.ts} +1 -1
- package/build/dist/{Interfaces/AudioImplementation.d.ts → interfaces/audio-implementation.d.ts} +1 -1
- package/build/dist/{Interfaces/Evented.d.ts → interfaces/evented.d.ts} +1 -1
- package/build/dist/interfaces/index.d.ts +7 -0
- package/build/dist/{Interfaces/LifecycleEvents.d.ts → interfaces/lifecycle-events.d.ts} +4 -4
- package/build/dist/{Interfaces/PointerEventHandlers.d.ts → interfaces/pointer-event-handlers.d.ts} +3 -3
- package/build/dist/{Label.d.ts → label.d.ts} +7 -7
- package/build/dist/{Math → math}/global-coordinates.d.ts +1 -1
- package/build/dist/{Math → math}/index.d.ts +1 -1
- package/build/dist/{Math → math}/util.d.ts +1 -1
- package/build/dist/{Math → math}/vector.d.ts +1 -1
- package/build/dist/{Particles/GpuParticleEmitter.d.ts → particles/gpu-particle-emitter.d.ts} +10 -10
- package/build/dist/{Particles/GpuParticleRenderer.d.ts → particles/gpu-particle-renderer.d.ts} +5 -5
- package/build/dist/particles/index.d.ts +5 -0
- package/build/dist/{Particles/ParticleEmitter.d.ts → particles/particle-emitter.d.ts} +6 -6
- package/build/dist/{Particles/Particles.d.ts → particles/particles.d.ts} +11 -11
- package/build/dist/{Resources/Font.d.ts → resources/font.d.ts} +4 -4
- package/build/dist/{Resources/Gif.d.ts → resources/gif.d.ts} +5 -5
- package/build/dist/resources/index.d.ts +4 -0
- package/build/dist/{Resources/Resource.d.ts → resources/resource.d.ts} +3 -3
- package/build/dist/resources/sound/index.d.ts +4 -0
- package/build/dist/{Resources/Sound/SoundManager.d.ts → resources/sound/sound-manager.d.ts} +1 -1
- package/build/dist/{Resources/Sound/Sound.d.ts → resources/sound/sound.d.ts} +8 -8
- package/build/dist/{Resources/Sound/WebAudioInstance.d.ts → resources/sound/web-audio-instance.d.ts} +1 -1
- package/build/dist/{Scene.d.ts → scene.d.ts} +20 -20
- package/build/dist/{ScreenElement.d.ts → screen-element.d.ts} +3 -3
- package/build/dist/{Screen.d.ts → screen.d.ts} +6 -6
- package/build/dist/tile-map/index.d.ts +4 -0
- package/build/dist/{TileMap/IsometricEntityComponent.d.ts → tile-map/isometric-entity-component.d.ts} +2 -2
- package/build/dist/tile-map/isometric-entity-system.d.ts +12 -0
- package/build/dist/{TileMap/IsometricMap.d.ts → tile-map/isometric-map.d.ts} +13 -13
- package/build/dist/{TileMap/TileMap.d.ts → tile-map/tile-map.d.ts} +18 -18
- package/build/dist/{Timer.d.ts → timer.d.ts} +1 -1
- package/build/dist/{Trigger.d.ts → trigger.d.ts} +6 -6
- package/build/dist/{Util/Clock.d.ts → util/clock.d.ts} +1 -1
- package/build/dist/{Util/Coroutine.d.ts → util/coroutine.d.ts} +2 -2
- package/build/dist/{Util/DrawUtil.d.ts → util/draw-util.d.ts} +2 -2
- package/build/dist/{Util/EasingFunctions.d.ts → util/easing-functions.d.ts} +1 -1
- package/build/dist/util/index.d.ts +6 -0
- package/build/dist/{Util/Log.d.ts → util/log.d.ts} +2 -2
- package/build/dist/{Util/Util.d.ts → util/util.d.ts} +2 -2
- package/build/esm/excalibur.development.js +155 -155
- package/build/esm/excalibur.js +155 -155
- package/build/esm/excalibur.min.development.js +3 -3
- package/build/esm/excalibur.min.js +3 -3
- package/eslint.config.mjs +2 -1
- package/package.json +1 -1
- package/build/dist/Actions/index.d.ts +0 -27
- package/build/dist/Collision/Index.d.ts +0 -38
- package/build/dist/Debug/index.d.ts +0 -3
- package/build/dist/Director/index.d.ts +0 -7
- package/build/dist/EntityComponentSystem/index.d.ts +0 -13
- package/build/dist/Graphics/index.d.ts +0 -47
- package/build/dist/Interfaces/Index.d.ts +0 -7
- package/build/dist/Particles/index.d.ts +0 -5
- package/build/dist/Resources/Index.d.ts +0 -4
- package/build/dist/Resources/Sound/Index.d.ts +0 -4
- package/build/dist/TileMap/IsometricEntitySystem.d.ts +0 -12
- package/build/dist/TileMap/index.d.ts +0 -4
- package/build/dist/Util/Index.d.ts +0 -6
- /package/build/dist/{Collision/CollisionType.d.ts → collision/collision-type.d.ts} +0 -0
- /package/build/dist/{Collision/Detection/SpatialPartitionStrategy.d.ts → collision/detection/spatial-partition-strategy.d.ts} +0 -0
- /package/build/dist/{Collision/Group/CollisionGroup.d.ts → collision/group/collision-group.d.ts} +0 -0
- /package/build/dist/{Collision/Solver/ContactBias.d.ts → collision/solver/contact-bias.d.ts} +0 -0
- /package/build/dist/{Collision/SolverStrategy.d.ts → collision/solver-strategy.d.ts} +0 -0
- /package/build/dist/{Context.d.ts → context.d.ts} +0 -0
- /package/build/dist/{Deprecated.d.ts → deprecated.d.ts} +0 -0
- /package/build/dist/{EntityComponentSystem/Priority.d.ts → entity-component-system/priority.d.ts} +0 -0
- /package/build/dist/{EntityComponentSystem/Types.d.ts → entity-component-system/types.d.ts} +0 -0
- /package/build/dist/{EventEmitter.d.ts → event-emitter.d.ts} +0 -0
- /package/build/dist/{Events/ExEvent.d.ts → events/ex-event.d.ts} +0 -0
- /package/build/dist/{Flags.d.ts → flags.d.ts} +0 -0
- /package/build/dist/{GarbageCollector.d.ts → garbage-collector.d.ts} +0 -0
- /package/build/dist/{Graphics/Context → graphics/context}/quad-index-buffer.d.ts +0 -0
- /package/build/dist/{Graphics/Context → graphics/context}/render-source.d.ts +0 -0
- /package/build/dist/{Graphics/Context → graphics/context}/render-target.d.ts +0 -0
- /package/build/dist/{Graphics/Context → graphics/context}/uniform-buffer.d.ts +0 -0
- /package/build/dist/{Graphics/Context → graphics/context}/vertex-buffer.d.ts +0 -0
- /package/build/dist/{Graphics/Context → graphics/context}/vertex-layout.d.ts +0 -0
- /package/build/dist/{Graphics/Context → graphics/context}/webgl-util.d.ts +0 -0
- /package/build/dist/{Graphics/Filtering.d.ts → graphics/filtering.d.ts} +0 -0
- /package/build/dist/{Graphics/GraphicsDiagnostics.d.ts → graphics/graphics-diagnostics.d.ts} +0 -0
- /package/build/dist/{Graphics/PostProcessor/ColorBlindnessMode.d.ts → graphics/post-processor/color-blindness-mode.d.ts} +0 -0
- /package/build/dist/{Graphics/Wrapping.d.ts → graphics/wrapping.d.ts} +0 -0
- /package/build/dist/{Id.d.ts → id.d.ts} +0 -0
- /package/build/dist/{Input/CapturePointerConfig.d.ts → input/capture-pointer-config.d.ts} +0 -0
- /package/build/dist/{Input/NativePointerButton.d.ts → input/native-pointer-button.d.ts} +0 -0
- /package/build/dist/{Input/PointerButton.d.ts → input/pointer-button.d.ts} +0 -0
- /package/build/dist/{Input/PointerScope.d.ts → input/pointer-scope.d.ts} +0 -0
- /package/build/dist/{Input/PointerType.d.ts → input/pointer-type.d.ts} +0 -0
- /package/build/dist/{Input/WheelDeltaMode.d.ts → input/wheel-delta-mode.d.ts} +0 -0
- /package/build/dist/{Interfaces/Audio.d.ts → interfaces/audio.d.ts} +0 -0
- /package/build/dist/{Interfaces/Clonable.d.ts → interfaces/clonable.d.ts} +0 -0
- /package/build/dist/{Interfaces/Loadable.d.ts → interfaces/loadable.d.ts} +0 -0
- /package/build/dist/{Math → math}/affine-matrix.d.ts +0 -0
- /package/build/dist/{Math → math}/bezier-curve.d.ts +0 -0
- /package/build/dist/{Math → math}/coord-plane.d.ts +0 -0
- /package/build/dist/{Math → math}/easings.d.ts +0 -0
- /package/build/dist/{Math → math}/graph.d.ts +0 -0
- /package/build/dist/{Math → math}/lerp.d.ts +0 -0
- /package/build/dist/{Math → math}/line-segment.d.ts +0 -0
- /package/build/dist/{Math → math}/matrix.d.ts +0 -0
- /package/build/dist/{Math → math}/projection.d.ts +0 -0
- /package/build/dist/{Math/Random.d.ts → math/random.d.ts} +0 -0
- /package/build/dist/{Math → math}/ray.d.ts +0 -0
- /package/build/dist/{Math → math}/rotation-type.d.ts +0 -0
- /package/build/dist/{Math → math}/transform.d.ts +0 -0
- /package/build/dist/{Math → math}/vector-view.d.ts +0 -0
- /package/build/dist/{Math → math}/watch-vector.d.ts +0 -0
- /package/build/dist/{Particles/EmitterType.d.ts → particles/emitter-type.d.ts} +0 -0
- /package/build/dist/{Polyfill.d.ts → polyfill.d.ts} +0 -0
- /package/build/dist/{Resources/Sound/AudioContext.d.ts → resources/sound/audio-context.d.ts} +0 -0
- /package/build/dist/{Util/Assert.d.ts → util/assert.d.ts} +0 -0
- /package/build/dist/{Util/Browser.d.ts → util/browser.d.ts} +0 -0
- /package/build/dist/{Util/Decorators.d.ts → util/decorators.d.ts} +0 -0
- /package/build/dist/{Util/Detector.d.ts → util/detector.d.ts} +0 -0
- /package/build/dist/{Util/Fps.d.ts → util/fps.d.ts} +0 -0
- /package/build/dist/{Util/Future.d.ts → util/future.d.ts} +0 -0
- /package/build/dist/{Util/IFrame.d.ts → util/iframe.d.ts} +0 -0
- /package/build/dist/{Util/Observable.d.ts → util/observable.d.ts} +0 -0
- /package/build/dist/{Util/Pool.d.ts → util/pool.d.ts} +0 -0
- /package/build/dist/{Util/RentalPool.d.ts → util/rental-pool.d.ts} +0 -0
- /package/build/dist/{Util/Required.d.ts → util/required.d.ts} +0 -0
- /package/build/dist/{Util/Semaphore.d.ts → util/semaphore.d.ts} +0 -0
- /package/build/dist/{Util/Sound.d.ts → util/sound.d.ts} +0 -0
- /package/build/dist/{Util/StateMachine.d.ts → util/state-machine.d.ts} +0 -0
- /package/build/dist/{Util/Toaster.d.ts → util/toaster.d.ts} +0 -0
- /package/build/dist/{Util/Watch.d.ts → util/watch.d.ts} +0 -0
- /package/build/dist/{Util/WebAudio.d.ts → util/web-audio.d.ts} +0 -0
package/build/esm/excalibur.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! excalibur - 0.33.0-alpha.
|
|
1
|
+
/*! excalibur - 0.33.0-alpha.23+11edff9 - 2025-12-29
|
|
2
2
|
https://github.com/excaliburjs/Excalibur
|
|
3
3
|
Copyright (c) 2025 Excalibur.js <https://github.com/excaliburjs/Excalibur/graphs/contributors>
|
|
4
4
|
Licensed BSD-2-Clause
|
|
@@ -398,9 +398,9 @@ class Random {
|
|
|
398
398
|
let currentPick = 0;
|
|
399
399
|
const tempArray = array.slice(0);
|
|
400
400
|
while (currentPick < numPicks) {
|
|
401
|
-
const
|
|
402
|
-
result[currentPick++] = tempArray[
|
|
403
|
-
tempArray.splice(
|
|
401
|
+
const index2 = this.integer(0, tempArray.length - 1);
|
|
402
|
+
result[currentPick++] = tempArray[index2];
|
|
403
|
+
tempArray.splice(index2, 1);
|
|
404
404
|
}
|
|
405
405
|
return result;
|
|
406
406
|
}
|
|
@@ -1790,9 +1790,9 @@ class Transform {
|
|
|
1790
1790
|
}
|
|
1791
1791
|
set parent(transform) {
|
|
1792
1792
|
if (this._parent) {
|
|
1793
|
-
const
|
|
1794
|
-
if (
|
|
1795
|
-
this._parent._children.splice(
|
|
1793
|
+
const index2 = this._parent._children.indexOf(this);
|
|
1794
|
+
if (index2 > -1) {
|
|
1795
|
+
this._parent._children.splice(index2, 1);
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
1798
1798
|
this._parent = transform;
|
|
@@ -2368,8 +2368,8 @@ class BezierCurve {
|
|
|
2368
2368
|
this._controlPoints = [...points];
|
|
2369
2369
|
this._calculateLookup();
|
|
2370
2370
|
}
|
|
2371
|
-
setControlPoint(
|
|
2372
|
-
this._controlPoints[
|
|
2371
|
+
setControlPoint(index2, point2) {
|
|
2372
|
+
this._controlPoints[index2] = point2;
|
|
2373
2373
|
this._calculateLookup();
|
|
2374
2374
|
}
|
|
2375
2375
|
_calculateLookup() {
|
|
@@ -2729,12 +2729,12 @@ class Graph {
|
|
|
2729
2729
|
const currentEdges = current.edges;
|
|
2730
2730
|
const filteredCurrentEdges = Array.from(currentEdges).filter((edge) => edge.target !== current);
|
|
2731
2731
|
for (const edge of filteredCurrentEdges) {
|
|
2732
|
-
const
|
|
2733
|
-
if (
|
|
2732
|
+
const index2 = resultArray.findIndex((node) => node.node === edge.target);
|
|
2733
|
+
if (index2 === -1) {
|
|
2734
2734
|
return [];
|
|
2735
2735
|
}
|
|
2736
|
-
resultArray[
|
|
2737
|
-
resultArray[
|
|
2736
|
+
resultArray[index2].distance = edge.weight;
|
|
2737
|
+
resultArray[index2].previous = current;
|
|
2738
2738
|
}
|
|
2739
2739
|
while (unvisited.length > 0) {
|
|
2740
2740
|
let listOfAvailableNodes = [];
|
|
@@ -2746,10 +2746,10 @@ class Graph {
|
|
|
2746
2746
|
if (listOfAvailableNodes.length > 0) {
|
|
2747
2747
|
for (let i = 0; i < listOfAvailableNodes.length; i++) {
|
|
2748
2748
|
const unVisitiedNode = listOfAvailableNodes[i];
|
|
2749
|
-
const
|
|
2750
|
-
if (resultArray[
|
|
2751
|
-
lowestDistance = resultArray[
|
|
2752
|
-
lowestDistanceIndex =
|
|
2749
|
+
const index2 = resultArray.findIndex((node) => node.node === unVisitiedNode);
|
|
2750
|
+
if (resultArray[index2].distance < lowestDistance) {
|
|
2751
|
+
lowestDistance = resultArray[index2].distance;
|
|
2752
|
+
lowestDistanceIndex = index2;
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
2755
|
} else {
|
|
@@ -2757,10 +2757,10 @@ class Graph {
|
|
|
2757
2757
|
lowestDistanceIndex = -1;
|
|
2758
2758
|
for (let i = 0; i < unvisited.length; i++) {
|
|
2759
2759
|
const unVisitiedNode = unvisited[i];
|
|
2760
|
-
const
|
|
2761
|
-
if (resultArray[
|
|
2762
|
-
lowestDistance = resultArray[
|
|
2763
|
-
lowestDistanceIndex =
|
|
2760
|
+
const index2 = resultArray.findIndex((node) => node.node === unVisitiedNode);
|
|
2761
|
+
if (resultArray[index2].distance < lowestDistance) {
|
|
2762
|
+
lowestDistance = resultArray[index2].distance;
|
|
2763
|
+
lowestDistanceIndex = index2;
|
|
2764
2764
|
}
|
|
2765
2765
|
}
|
|
2766
2766
|
}
|
|
@@ -2776,13 +2776,13 @@ class Graph {
|
|
|
2776
2776
|
unvisited.splice(unvisited.indexOf(current), 1);
|
|
2777
2777
|
for (let i = 0; i < currentEdgesArray.length; i++) {
|
|
2778
2778
|
const edge = currentEdgesArray[i];
|
|
2779
|
-
const
|
|
2779
|
+
const index2 = resultArray.findIndex((node) => node.node === edge.target);
|
|
2780
2780
|
const previousIndex = resultArray.findIndex((node) => node.node === edge.source);
|
|
2781
2781
|
const previousDistance = resultArray[previousIndex].distance;
|
|
2782
2782
|
const cumDistance = previousDistance + edge.weight;
|
|
2783
|
-
if (cumDistance < resultArray[
|
|
2784
|
-
resultArray[
|
|
2785
|
-
resultArray[
|
|
2783
|
+
if (cumDistance < resultArray[index2].distance) {
|
|
2784
|
+
resultArray[index2].distance = cumDistance;
|
|
2785
|
+
resultArray[index2].previous = current;
|
|
2786
2786
|
}
|
|
2787
2787
|
}
|
|
2788
2788
|
}
|
|
@@ -4423,17 +4423,17 @@ class PostFrameEvent extends GameEvent {
|
|
|
4423
4423
|
}
|
|
4424
4424
|
}
|
|
4425
4425
|
class GamepadConnectEvent extends GameEvent {
|
|
4426
|
-
constructor(
|
|
4426
|
+
constructor(index2, gamepad) {
|
|
4427
4427
|
super();
|
|
4428
|
-
this.index =
|
|
4428
|
+
this.index = index2;
|
|
4429
4429
|
this.gamepad = gamepad;
|
|
4430
4430
|
this.target = gamepad;
|
|
4431
4431
|
}
|
|
4432
4432
|
}
|
|
4433
4433
|
class GamepadDisconnectEvent extends GameEvent {
|
|
4434
|
-
constructor(
|
|
4434
|
+
constructor(index2, gamepad) {
|
|
4435
4435
|
super();
|
|
4436
|
-
this.index =
|
|
4436
|
+
this.index = index2;
|
|
4437
4437
|
this.gamepad = gamepad;
|
|
4438
4438
|
this.target = gamepad;
|
|
4439
4439
|
}
|
|
@@ -4445,10 +4445,10 @@ class GamepadButtonEvent extends GameEvent {
|
|
|
4445
4445
|
* @param value A numeric value between 0 and 1
|
|
4446
4446
|
* @param self Reference to the gamepad
|
|
4447
4447
|
*/
|
|
4448
|
-
constructor(button,
|
|
4448
|
+
constructor(button, index2, value, self) {
|
|
4449
4449
|
super();
|
|
4450
4450
|
this.button = button;
|
|
4451
|
-
this.index =
|
|
4451
|
+
this.index = index2;
|
|
4452
4452
|
this.value = value;
|
|
4453
4453
|
this.self = self;
|
|
4454
4454
|
this.target = self;
|
|
@@ -4675,7 +4675,7 @@ class RemoveEvent extends GameEvent {
|
|
|
4675
4675
|
this.target = self;
|
|
4676
4676
|
}
|
|
4677
4677
|
}
|
|
4678
|
-
const
|
|
4678
|
+
const events = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4679
4679
|
__proto__: null,
|
|
4680
4680
|
ActionCompleteEvent,
|
|
4681
4681
|
ActionStartEvent,
|
|
@@ -4749,9 +4749,9 @@ function addItemToArray(item, array) {
|
|
|
4749
4749
|
return false;
|
|
4750
4750
|
}
|
|
4751
4751
|
function removeItemFromArray(item, array) {
|
|
4752
|
-
let
|
|
4753
|
-
if ((
|
|
4754
|
-
array.splice(
|
|
4752
|
+
let index2 = -1;
|
|
4753
|
+
if ((index2 = array.indexOf(item)) > -1) {
|
|
4754
|
+
array.splice(index2, 1);
|
|
4755
4755
|
return true;
|
|
4756
4756
|
}
|
|
4757
4757
|
return false;
|
|
@@ -5668,9 +5668,9 @@ class TagQuery {
|
|
|
5668
5668
|
return false;
|
|
5669
5669
|
}
|
|
5670
5670
|
removeEntity(entity) {
|
|
5671
|
-
const
|
|
5672
|
-
if (
|
|
5673
|
-
this.entities.splice(
|
|
5671
|
+
const index2 = this.entities.indexOf(entity);
|
|
5672
|
+
if (index2 > -1) {
|
|
5673
|
+
this.entities.splice(index2, 1);
|
|
5674
5674
|
this.entityRemoved$.notifyAll(entity);
|
|
5675
5675
|
}
|
|
5676
5676
|
}
|
|
@@ -6402,8 +6402,8 @@ const _BoundingBox = class _BoundingBox2 {
|
|
|
6402
6402
|
case 3:
|
|
6403
6403
|
return new Vector(rightPath, 0);
|
|
6404
6404
|
default:
|
|
6405
|
-
const
|
|
6406
|
-
throw new Error(`Unreachable index: [${
|
|
6405
|
+
const index2 = minIndex;
|
|
6406
|
+
throw new Error(`Unreachable index: [${index2}] on bounding box intersection!`);
|
|
6407
6407
|
}
|
|
6408
6408
|
}
|
|
6409
6409
|
/**
|
|
@@ -7000,16 +7000,16 @@ class DynamicTreeCollisionProcessor {
|
|
|
7000
7000
|
if (target instanceof CompositeCollider) {
|
|
7001
7001
|
const colliders = target.getColliders();
|
|
7002
7002
|
for (const c of colliders) {
|
|
7003
|
-
const
|
|
7004
|
-
if (
|
|
7005
|
-
this._colliders.splice(
|
|
7003
|
+
const index2 = this._colliders.indexOf(c);
|
|
7004
|
+
if (index2 !== -1) {
|
|
7005
|
+
this._colliders.splice(index2, 1);
|
|
7006
7006
|
}
|
|
7007
7007
|
this._dynamicCollisionTree.untrackCollider(c);
|
|
7008
7008
|
}
|
|
7009
7009
|
} else {
|
|
7010
|
-
const
|
|
7011
|
-
if (
|
|
7012
|
-
this._colliders.splice(
|
|
7010
|
+
const index2 = this._colliders.indexOf(target);
|
|
7011
|
+
if (index2 !== -1) {
|
|
7012
|
+
this._colliders.splice(index2, 1);
|
|
7013
7013
|
}
|
|
7014
7014
|
this._dynamicCollisionTree.untrackCollider(target);
|
|
7015
7015
|
}
|
|
@@ -8710,17 +8710,17 @@ class PolygonCollider extends Collider {
|
|
|
8710
8710
|
const triangles = [];
|
|
8711
8711
|
const vertices = [...this.points].reverse();
|
|
8712
8712
|
let vertexCount = vertices.length;
|
|
8713
|
-
function getPrevIndex(
|
|
8714
|
-
return
|
|
8713
|
+
function getPrevIndex(index2) {
|
|
8714
|
+
return index2 === 0 ? vertexCount - 1 : index2 - 1;
|
|
8715
8715
|
}
|
|
8716
|
-
function getNextIndex(
|
|
8717
|
-
return
|
|
8716
|
+
function getNextIndex(index2) {
|
|
8717
|
+
return index2 === vertexCount - 1 ? 0 : index2 + 1;
|
|
8718
8718
|
}
|
|
8719
|
-
function isConvex(
|
|
8720
|
-
const prev = getPrevIndex(
|
|
8721
|
-
const next = getNextIndex(
|
|
8719
|
+
function isConvex(index2) {
|
|
8720
|
+
const prev = getPrevIndex(index2);
|
|
8721
|
+
const next = getNextIndex(index2);
|
|
8722
8722
|
const va = vertices[prev];
|
|
8723
|
-
const vb = vertices[
|
|
8723
|
+
const vb = vertices[index2];
|
|
8724
8724
|
const vc = vertices[next];
|
|
8725
8725
|
const leftArm = va.sub(vb);
|
|
8726
8726
|
const rightArm = vc.sub(vb);
|
|
@@ -8776,15 +8776,15 @@ class PolygonCollider extends Collider {
|
|
|
8776
8776
|
}
|
|
8777
8777
|
return 0;
|
|
8778
8778
|
}
|
|
8779
|
-
function cutEarTip(
|
|
8780
|
-
const prev = getPrevIndex(
|
|
8781
|
-
const next = getNextIndex(
|
|
8779
|
+
function cutEarTip(index2) {
|
|
8780
|
+
const prev = getPrevIndex(index2);
|
|
8781
|
+
const next = getNextIndex(index2);
|
|
8782
8782
|
const va = vertices[prev];
|
|
8783
|
-
const vb = vertices[
|
|
8783
|
+
const vb = vertices[index2];
|
|
8784
8784
|
const vc = vertices[next];
|
|
8785
8785
|
triangles.push([va, vb, vc]);
|
|
8786
|
-
vertices.splice(
|
|
8787
|
-
convexVertices.splice(
|
|
8786
|
+
vertices.splice(index2, 1);
|
|
8787
|
+
convexVertices.splice(index2, 1);
|
|
8788
8788
|
vertexCount--;
|
|
8789
8789
|
}
|
|
8790
8790
|
while (vertexCount > 3) {
|
|
@@ -9558,11 +9558,11 @@ const _Animation = class _Animation2 extends Graphic {
|
|
|
9558
9558
|
const maxIndex = spriteSheet.sprites.length - 1;
|
|
9559
9559
|
const validIndices = [];
|
|
9560
9560
|
const invalidIndices = [];
|
|
9561
|
-
spriteSheetIndex.forEach((
|
|
9562
|
-
if (
|
|
9563
|
-
invalidIndices.push(
|
|
9561
|
+
spriteSheetIndex.forEach((index2) => {
|
|
9562
|
+
if (index2 < 0 || index2 > maxIndex) {
|
|
9563
|
+
invalidIndices.push(index2);
|
|
9564
9564
|
} else {
|
|
9565
|
-
validIndices.push(
|
|
9565
|
+
validIndices.push(index2);
|
|
9566
9566
|
}
|
|
9567
9567
|
});
|
|
9568
9568
|
if (invalidIndices.length) {
|
|
@@ -10265,7 +10265,7 @@ function circle(ctx, x, y, radius, stroke = Color.White, fill = null) {
|
|
|
10265
10265
|
ctx.stroke();
|
|
10266
10266
|
}
|
|
10267
10267
|
}
|
|
10268
|
-
const
|
|
10268
|
+
const drawUtil = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10269
10269
|
__proto__: null,
|
|
10270
10270
|
circle,
|
|
10271
10271
|
line,
|
|
@@ -11913,9 +11913,9 @@ class GraphicsSystem extends System {
|
|
|
11913
11913
|
this.query.entityRemoved$.subscribe((e) => {
|
|
11914
11914
|
const tx = e.get(TransformComponent);
|
|
11915
11915
|
tx.zIndexChanged$.unsubscribe(this._zIndexUpdate);
|
|
11916
|
-
const
|
|
11917
|
-
if (
|
|
11918
|
-
this._sortedTransforms.splice(
|
|
11916
|
+
const index2 = this._sortedTransforms.indexOf(tx);
|
|
11917
|
+
if (index2 > -1) {
|
|
11918
|
+
this._sortedTransforms.splice(index2, 1);
|
|
11919
11919
|
}
|
|
11920
11920
|
});
|
|
11921
11921
|
}
|
|
@@ -13684,8 +13684,8 @@ const _Shader = class _Shader2 {
|
|
|
13684
13684
|
*/
|
|
13685
13685
|
setUniformBuffer(name, data, bindingPoint = 0) {
|
|
13686
13686
|
const gl = this._gl;
|
|
13687
|
-
const
|
|
13688
|
-
if (
|
|
13687
|
+
const index2 = gl.getUniformBlockIndex(this.program, name);
|
|
13688
|
+
if (index2 === gl.INVALID_INDEX) {
|
|
13689
13689
|
this._logger.warnOnce(`Invalid block name ${name}`);
|
|
13690
13690
|
}
|
|
13691
13691
|
let uniformBuffer;
|
|
@@ -13700,7 +13700,7 @@ const _Shader = class _Shader2 {
|
|
|
13700
13700
|
});
|
|
13701
13701
|
this._uniformBuffers[name] = uniformBuffer;
|
|
13702
13702
|
}
|
|
13703
|
-
gl.uniformBlockBinding(this.program,
|
|
13703
|
+
gl.uniformBlockBinding(this.program, index2, bindingPoint);
|
|
13704
13704
|
gl.bindBufferBase(gl.UNIFORM_BUFFER, bindingPoint, uniformBuffer.buffer);
|
|
13705
13705
|
}
|
|
13706
13706
|
trySetUniformBuffer(name, data, bindingPoint = 0) {
|
|
@@ -13715,8 +13715,8 @@ const _Shader = class _Shader2 {
|
|
|
13715
13715
|
return false;
|
|
13716
13716
|
}
|
|
13717
13717
|
const gl = this._gl;
|
|
13718
|
-
const
|
|
13719
|
-
if (
|
|
13718
|
+
const index2 = gl.getUniformBlockIndex(this.program, name);
|
|
13719
|
+
if (index2) {
|
|
13720
13720
|
this.setUniformBuffer(name, data, bindingPoint);
|
|
13721
13721
|
return true;
|
|
13722
13722
|
}
|
|
@@ -16904,9 +16904,9 @@ If you want to do custom drawing, use Actor.graphics, or any onPreDraw or onPost
|
|
|
16904
16904
|
postprocessor.initialize(this);
|
|
16905
16905
|
}
|
|
16906
16906
|
removePostProcessor(postprocessor) {
|
|
16907
|
-
const
|
|
16908
|
-
if (
|
|
16909
|
-
this._postprocessors.splice(
|
|
16907
|
+
const index2 = this._postprocessors.indexOf(postprocessor);
|
|
16908
|
+
if (index2 !== -1) {
|
|
16909
|
+
this._postprocessors.splice(index2, 1);
|
|
16910
16910
|
}
|
|
16911
16911
|
}
|
|
16912
16912
|
clearPostProcessors() {
|
|
@@ -17889,8 +17889,8 @@ class ActionQueue {
|
|
|
17889
17889
|
* @param action
|
|
17890
17890
|
*/
|
|
17891
17891
|
remove(action) {
|
|
17892
|
-
const
|
|
17893
|
-
this._actions.splice(
|
|
17892
|
+
const index2 = this._actions.indexOf(action);
|
|
17893
|
+
this._actions.splice(index2, 1);
|
|
17894
17894
|
}
|
|
17895
17895
|
/**
|
|
17896
17896
|
* Removes all actions from this sequence
|
|
@@ -21175,9 +21175,9 @@ class HashGridProxy {
|
|
|
21175
21175
|
*/
|
|
21176
21176
|
clear() {
|
|
21177
21177
|
for (const cell of this.cells) {
|
|
21178
|
-
const
|
|
21179
|
-
if (
|
|
21180
|
-
cell.proxies.splice(
|
|
21178
|
+
const index2 = cell.proxies.indexOf(this);
|
|
21179
|
+
if (index2 > -1) {
|
|
21180
|
+
cell.proxies.splice(index2, 1);
|
|
21181
21181
|
}
|
|
21182
21182
|
}
|
|
21183
21183
|
}
|
|
@@ -21750,9 +21750,9 @@ class QuadTree {
|
|
|
21750
21750
|
return;
|
|
21751
21751
|
}
|
|
21752
21752
|
if (!this._isDivided) {
|
|
21753
|
-
const
|
|
21754
|
-
if (
|
|
21755
|
-
this.items.splice(
|
|
21753
|
+
const index2 = this.items.indexOf(item);
|
|
21754
|
+
if (index2 > -1) {
|
|
21755
|
+
this.items.splice(index2, 1);
|
|
21756
21756
|
}
|
|
21757
21757
|
return;
|
|
21758
21758
|
}
|
|
@@ -21790,8 +21790,8 @@ class QuadTree {
|
|
|
21790
21790
|
results = results.concat(this.bottomRight.query(boundingBox));
|
|
21791
21791
|
}
|
|
21792
21792
|
}
|
|
21793
|
-
results = results.filter((item,
|
|
21794
|
-
return results.indexOf(item) >=
|
|
21793
|
+
results = results.filter((item, index2) => {
|
|
21794
|
+
return results.indexOf(item) >= index2;
|
|
21795
21795
|
});
|
|
21796
21796
|
return results;
|
|
21797
21797
|
}
|
|
@@ -21811,8 +21811,8 @@ class QuadTree {
|
|
|
21811
21811
|
results = results.concat(this.bottomLeft.getAllItems());
|
|
21812
21812
|
results = results.concat(this.bottomRight.getAllItems());
|
|
21813
21813
|
}
|
|
21814
|
-
results = results.filter((item,
|
|
21815
|
-
return results.indexOf(item) >=
|
|
21814
|
+
results = results.filter((item, index2) => {
|
|
21815
|
+
return results.indexOf(item) >= index2;
|
|
21816
21816
|
});
|
|
21817
21817
|
return results;
|
|
21818
21818
|
}
|
|
@@ -21874,9 +21874,9 @@ class ArcadeSolver {
|
|
|
21874
21874
|
const epsilon = 1e-4;
|
|
21875
21875
|
for (let i = 0; i < contacts.length; i++) {
|
|
21876
21876
|
const contact = contacts[i];
|
|
21877
|
-
const
|
|
21878
|
-
if (
|
|
21879
|
-
const compositeId = contact.id.substring(
|
|
21877
|
+
const index2 = contact.id.indexOf("|");
|
|
21878
|
+
if (index2 > 0) {
|
|
21879
|
+
const compositeId = contact.id.substring(index2 + 1);
|
|
21880
21880
|
if (this._compositeContactsIds.has(compositeId)) {
|
|
21881
21881
|
contact.cancel();
|
|
21882
21882
|
continue;
|
|
@@ -22114,9 +22114,9 @@ class RealisticSolver {
|
|
|
22114
22114
|
const finishedContactIds = Array.from(this.idToContactConstraint.keys());
|
|
22115
22115
|
for (let i = 0; i < contacts.length; i++) {
|
|
22116
22116
|
const contact = contacts[i];
|
|
22117
|
-
const
|
|
22118
|
-
if (
|
|
22119
|
-
finishedContactIds.splice(
|
|
22117
|
+
const index2 = finishedContactIds.indexOf(contact.id);
|
|
22118
|
+
if (index2 > -1) {
|
|
22119
|
+
finishedContactIds.splice(index2, 1);
|
|
22120
22120
|
}
|
|
22121
22121
|
const contactPoints = (_b = this.idToContactConstraint.get(contact.id)) != null ? _b : [];
|
|
22122
22122
|
let pointIndex = 0;
|
|
@@ -22602,9 +22602,9 @@ class CollisionSystem extends System {
|
|
|
22602
22602
|
if (contact.isCanceled()) {
|
|
22603
22603
|
continue;
|
|
22604
22604
|
}
|
|
22605
|
-
const
|
|
22606
|
-
if (
|
|
22607
|
-
const compositeId = contact.id.substring(
|
|
22605
|
+
const index2 = contact.id.indexOf("|");
|
|
22606
|
+
if (index2 > 0) {
|
|
22607
|
+
const compositeId = contact.id.substring(index2 + 1);
|
|
22608
22608
|
this._currentFrameContacts.set(compositeId, contact);
|
|
22609
22609
|
} else {
|
|
22610
22610
|
this._currentFrameContacts.set(contact.id, contact);
|
|
@@ -23973,7 +23973,7 @@ class NativeSoundProcessedEvent extends MediaEvent {
|
|
|
23973
23973
|
function canPlayFile(file) {
|
|
23974
23974
|
try {
|
|
23975
23975
|
const a = new Audio();
|
|
23976
|
-
const filetype = /.*\.([A-Za-z0-9]+)(
|
|
23976
|
+
const filetype = /.*\.([A-Za-z0-9]+)(?=[?#]|$)/;
|
|
23977
23977
|
const type = file.match(filetype)[1];
|
|
23978
23978
|
if (a.canPlayType("audio/" + type)) {
|
|
23979
23979
|
return true;
|
|
@@ -25051,8 +25051,8 @@ const _Timer = class _Timer2 {
|
|
|
25051
25051
|
* @param action The callback to be removed from the callback list, to be fired after the interval is complete.
|
|
25052
25052
|
*/
|
|
25053
25053
|
off(action) {
|
|
25054
|
-
const
|
|
25055
|
-
this._callbacks.splice(
|
|
25054
|
+
const index2 = this._callbacks.indexOf(action);
|
|
25055
|
+
this._callbacks.splice(index2, 1);
|
|
25056
25056
|
}
|
|
25057
25057
|
/**
|
|
25058
25058
|
* Updates the timer after a certain number of milliseconds have elapsed. This is used internally by the engine.
|
|
@@ -25239,10 +25239,10 @@ class PointerEventsToObjectDispatcher {
|
|
|
25239
25239
|
removeObject(object) {
|
|
25240
25240
|
const proxy = this._objectToProxy.get(object);
|
|
25241
25241
|
if (proxy) {
|
|
25242
|
-
const
|
|
25242
|
+
const index2 = this._proxies.indexOf(proxy);
|
|
25243
25243
|
this._objectToProxy.delete(object);
|
|
25244
|
-
if (
|
|
25245
|
-
this._proxies.splice(
|
|
25244
|
+
if (index2 > -1) {
|
|
25245
|
+
this._proxies.splice(index2, 1);
|
|
25246
25246
|
}
|
|
25247
25247
|
this._proxyPool.return(proxy);
|
|
25248
25248
|
}
|
|
@@ -25715,9 +25715,9 @@ class TileMap extends Entity {
|
|
|
25715
25715
|
*
|
|
25716
25716
|
* Returns null if out of bounds
|
|
25717
25717
|
*/
|
|
25718
|
-
getTileByIndex(
|
|
25718
|
+
getTileByIndex(index2) {
|
|
25719
25719
|
var _a;
|
|
25720
|
-
return (_a = this.tiles[
|
|
25720
|
+
return (_a = this.tiles[index2]) != null ? _a : null;
|
|
25721
25721
|
}
|
|
25722
25722
|
/**
|
|
25723
25723
|
* Returns the {@apilink Tile} by its x and y integer coordinates
|
|
@@ -25995,10 +25995,10 @@ class Tile {
|
|
|
25995
25995
|
* Remove an instance of a {@apilink Graphic} from this tile
|
|
25996
25996
|
*/
|
|
25997
25997
|
removeGraphic(graphic) {
|
|
25998
|
-
const
|
|
25999
|
-
if (
|
|
26000
|
-
this._graphics.splice(
|
|
26001
|
-
this._offsets.splice(
|
|
25998
|
+
const index2 = this._graphics.indexOf(graphic);
|
|
25999
|
+
if (index2 > -1) {
|
|
26000
|
+
this._graphics.splice(index2, 1);
|
|
26001
|
+
this._offsets.splice(index2, 1);
|
|
26002
26002
|
}
|
|
26003
26003
|
}
|
|
26004
26004
|
/**
|
|
@@ -26031,9 +26031,9 @@ class Tile {
|
|
|
26031
26031
|
* @param collider
|
|
26032
26032
|
*/
|
|
26033
26033
|
removeCollider(collider) {
|
|
26034
|
-
const
|
|
26035
|
-
if (
|
|
26036
|
-
this._colliders.splice(
|
|
26034
|
+
const index2 = this._colliders.indexOf(collider);
|
|
26035
|
+
if (index2 > -1) {
|
|
26036
|
+
this._colliders.splice(index2, 1);
|
|
26037
26037
|
}
|
|
26038
26038
|
this.map.flagCollidersDirty();
|
|
26039
26039
|
}
|
|
@@ -26184,9 +26184,9 @@ class IsometricTile extends Entity {
|
|
|
26184
26184
|
return bounds;
|
|
26185
26185
|
}
|
|
26186
26186
|
removeGraphic(graphic) {
|
|
26187
|
-
const
|
|
26188
|
-
if (
|
|
26189
|
-
this._graphics.splice(
|
|
26187
|
+
const index2 = this._graphics.indexOf(graphic);
|
|
26188
|
+
if (index2 > -1) {
|
|
26189
|
+
this._graphics.splice(index2, 1);
|
|
26190
26190
|
}
|
|
26191
26191
|
this._gfx.localBounds = this._recalculateBounds();
|
|
26192
26192
|
}
|
|
@@ -26213,9 +26213,9 @@ class IsometricTile extends Entity {
|
|
|
26213
26213
|
* @param collider
|
|
26214
26214
|
*/
|
|
26215
26215
|
removeCollider(collider) {
|
|
26216
|
-
const
|
|
26217
|
-
if (
|
|
26218
|
-
this._colliders.splice(
|
|
26216
|
+
const index2 = this._colliders.indexOf(collider);
|
|
26217
|
+
if (index2 > -1) {
|
|
26218
|
+
this._colliders.splice(index2, 1);
|
|
26219
26219
|
}
|
|
26220
26220
|
this.map.flagCollidersDirty();
|
|
26221
26221
|
}
|
|
@@ -27501,17 +27501,17 @@ class PointerSystem extends System {
|
|
|
27501
27501
|
this._entityToPointer.delete(e);
|
|
27502
27502
|
const maybeGfx = e.get(GraphicsComponent);
|
|
27503
27503
|
if (maybeGfx) {
|
|
27504
|
-
const
|
|
27505
|
-
if (
|
|
27506
|
-
this._graphics.splice(
|
|
27504
|
+
const index22 = this._graphics.indexOf(maybeGfx);
|
|
27505
|
+
if (index22 > -1) {
|
|
27506
|
+
this._graphics.splice(index22, 1);
|
|
27507
27507
|
}
|
|
27508
27508
|
this._graphicsHashGrid.untrack(maybeGfx);
|
|
27509
27509
|
}
|
|
27510
27510
|
tx.zIndexChanged$.unsubscribe(this._zIndexUpdate);
|
|
27511
|
-
const
|
|
27512
|
-
if (
|
|
27513
|
-
this._sortedTransforms.splice(
|
|
27514
|
-
this._sortedEntities.splice(
|
|
27511
|
+
const index2 = this._sortedTransforms.indexOf(tx);
|
|
27512
|
+
if (index2 > -1) {
|
|
27513
|
+
this._sortedTransforms.splice(index2, 1);
|
|
27514
|
+
this._sortedEntities.splice(index2, 1);
|
|
27515
27515
|
}
|
|
27516
27516
|
});
|
|
27517
27517
|
}
|
|
@@ -27573,9 +27573,9 @@ class ActionsSystem extends System {
|
|
|
27573
27573
|
this.query.entityAdded$.subscribe((e) => this._actions.push(e.get(ActionsComponent)));
|
|
27574
27574
|
this.query.entityRemoved$.subscribe((e) => {
|
|
27575
27575
|
const action = e.get(ActionsComponent);
|
|
27576
|
-
const
|
|
27577
|
-
if (
|
|
27578
|
-
this._actions.splice(
|
|
27576
|
+
const index2 = this._actions.indexOf(action);
|
|
27577
|
+
if (index2 > -1) {
|
|
27578
|
+
this._actions.splice(index2, 1);
|
|
27579
27579
|
}
|
|
27580
27580
|
});
|
|
27581
27581
|
}
|
|
@@ -27739,15 +27739,15 @@ class Gamepads {
|
|
|
27739
27739
|
/**
|
|
27740
27740
|
* Safely retrieves a Gamepad at a specific index and creates one if it doesn't yet exist
|
|
27741
27741
|
*/
|
|
27742
|
-
at(
|
|
27742
|
+
at(index2) {
|
|
27743
27743
|
this._enableAndUpdate();
|
|
27744
|
-
if (
|
|
27745
|
-
for (let i = this._pads.length - 1, max =
|
|
27744
|
+
if (index2 >= this._pads.length) {
|
|
27745
|
+
for (let i = this._pads.length - 1, max = index2; i < max; i++) {
|
|
27746
27746
|
this._pads.push(new Gamepad());
|
|
27747
27747
|
this._oldPads.push(new Gamepad());
|
|
27748
27748
|
}
|
|
27749
27749
|
}
|
|
27750
|
-
return this._pads[
|
|
27750
|
+
return this._pads[index2];
|
|
27751
27751
|
}
|
|
27752
27752
|
/**
|
|
27753
27753
|
* Returns a list of all valid gamepads that meet the minimum configuration requirement.
|
|
@@ -28367,14 +28367,14 @@ class PointerEvent {
|
|
|
28367
28367
|
}
|
|
28368
28368
|
}
|
|
28369
28369
|
class WheelEvent {
|
|
28370
|
-
constructor(x, y, pageX, pageY, screenX, screenY,
|
|
28370
|
+
constructor(x, y, pageX, pageY, screenX, screenY, index2, deltaX, deltaY, deltaZ, deltaMode, ev) {
|
|
28371
28371
|
this.x = x;
|
|
28372
28372
|
this.y = y;
|
|
28373
28373
|
this.pageX = pageX;
|
|
28374
28374
|
this.pageY = pageY;
|
|
28375
28375
|
this.screenX = screenX;
|
|
28376
28376
|
this.screenY = screenY;
|
|
28377
|
-
this.index =
|
|
28377
|
+
this.index = index2;
|
|
28378
28378
|
this.deltaX = deltaX;
|
|
28379
28379
|
this.deltaY = deltaY;
|
|
28380
28380
|
this.deltaZ = deltaZ;
|
|
@@ -28503,13 +28503,13 @@ class PointerEventReceiver {
|
|
|
28503
28503
|
* Locates a specific pointer by id, creates it if it doesn't exist
|
|
28504
28504
|
* @param index
|
|
28505
28505
|
*/
|
|
28506
|
-
at(
|
|
28507
|
-
if (
|
|
28508
|
-
for (let i = this._pointers.length - 1, max =
|
|
28506
|
+
at(index2) {
|
|
28507
|
+
if (index2 >= this._pointers.length) {
|
|
28508
|
+
for (let i = this._pointers.length - 1, max = index2; i < max; i++) {
|
|
28509
28509
|
this._pointers.push(new PointerAbstraction());
|
|
28510
28510
|
}
|
|
28511
28511
|
}
|
|
28512
|
-
return this._pointers[
|
|
28512
|
+
return this._pointers[index2];
|
|
28513
28513
|
}
|
|
28514
28514
|
/**
|
|
28515
28515
|
* The number of pointers currently being tracked by excalibur
|
|
@@ -29988,9 +29988,9 @@ class Clock {
|
|
|
29988
29988
|
}
|
|
29989
29989
|
}
|
|
29990
29990
|
for (const id of this._idsToRemove) {
|
|
29991
|
-
const
|
|
29992
|
-
if (
|
|
29993
|
-
this._scheduledCbs.splice(
|
|
29991
|
+
const index2 = this._scheduledCbs.findIndex(([scheduleId]) => scheduleId === id);
|
|
29992
|
+
if (index2 !== -1) {
|
|
29993
|
+
this._scheduledCbs.splice(index2, 1);
|
|
29994
29994
|
}
|
|
29995
29995
|
}
|
|
29996
29996
|
}
|
|
@@ -31976,9 +31976,9 @@ class ParticleEmitter extends Actor {
|
|
|
31976
31976
|
this.scene.world.remove(this.deadParticles[i], false);
|
|
31977
31977
|
this._particlePool.return(this.deadParticles[i]);
|
|
31978
31978
|
}
|
|
31979
|
-
const
|
|
31980
|
-
if (
|
|
31981
|
-
this._activeParticles.splice(
|
|
31979
|
+
const index2 = this._activeParticles.indexOf(this.deadParticles[i]);
|
|
31980
|
+
if (index2 > -1) {
|
|
31981
|
+
this._activeParticles.splice(index2, 1);
|
|
31982
31982
|
}
|
|
31983
31983
|
}
|
|
31984
31984
|
this.deadParticles.length = 0;
|
|
@@ -32683,9 +32683,9 @@ class SoundManager {
|
|
|
32683
32683
|
if (!maybeConfiguration) {
|
|
32684
32684
|
return;
|
|
32685
32685
|
}
|
|
32686
|
-
const
|
|
32687
|
-
if (
|
|
32688
|
-
maybeConfiguration.sounds.splice(
|
|
32686
|
+
const index2 = maybeConfiguration.sounds.indexOf(sound);
|
|
32687
|
+
if (index2 >= -1) {
|
|
32688
|
+
maybeConfiguration.sounds.splice(index2, 1);
|
|
32689
32689
|
}
|
|
32690
32690
|
this._channelToConfig.set(channel, maybeConfiguration);
|
|
32691
32691
|
}
|
|
@@ -32759,11 +32759,11 @@ class Gif {
|
|
|
32759
32759
|
var _a;
|
|
32760
32760
|
const images = (_a = this._gif) == null ? void 0 : _a.images;
|
|
32761
32761
|
if (images == null ? void 0 : images.length) {
|
|
32762
|
-
const frames = images.map((image,
|
|
32762
|
+
const frames = images.map((image, index2) => {
|
|
32763
32763
|
var _a2;
|
|
32764
32764
|
return {
|
|
32765
|
-
graphic: this._sprites[
|
|
32766
|
-
duration: ((_a2 = this._gif) == null ? void 0 : _a2.frames[
|
|
32765
|
+
graphic: this._sprites[index2],
|
|
32766
|
+
duration: ((_a2 = this._gif) == null ? void 0 : _a2.frames[index2].delayMs) || void 0
|
|
32767
32767
|
};
|
|
32768
32768
|
});
|
|
32769
32769
|
this._animation = new Animation({
|
|
@@ -33645,10 +33645,10 @@ class Slide extends Transition {
|
|
|
33645
33645
|
this._camera.pos.y = lerp(this._startCameraPosition.y, this._destinationCameraPosition.y, time);
|
|
33646
33646
|
}
|
|
33647
33647
|
}
|
|
33648
|
-
const
|
|
33648
|
+
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
33649
33649
|
__proto__: null,
|
|
33650
33650
|
ConsoleAppender,
|
|
33651
|
-
DrawUtil,
|
|
33651
|
+
DrawUtil: drawUtil,
|
|
33652
33652
|
EasingFunctions,
|
|
33653
33653
|
LogLevel,
|
|
33654
33654
|
Logger,
|
|
@@ -33778,7 +33778,7 @@ class Semaphore {
|
|
|
33778
33778
|
this._count += count;
|
|
33779
33779
|
}
|
|
33780
33780
|
}
|
|
33781
|
-
const EX_VERSION = "0.33.0-alpha.
|
|
33781
|
+
const EX_VERSION = "0.33.0-alpha.23+11edff9";
|
|
33782
33782
|
polyfill();
|
|
33783
33783
|
export {
|
|
33784
33784
|
ActionCompleteEvent,
|
|
@@ -33882,7 +33882,7 @@ export {
|
|
|
33882
33882
|
EntityManager,
|
|
33883
33883
|
EventEmitter,
|
|
33884
33884
|
EventTypes,
|
|
33885
|
-
Events,
|
|
33885
|
+
events as Events,
|
|
33886
33886
|
ExResponse,
|
|
33887
33887
|
ExcaliburGraphicsContext2DCanvas,
|
|
33888
33888
|
ExcaliburGraphicsContextWebGL,
|
|
@@ -34089,7 +34089,7 @@ export {
|
|
|
34089
34089
|
TriggerEvents,
|
|
34090
34090
|
TwoPI,
|
|
34091
34091
|
UniformBuffer,
|
|
34092
|
-
|
|
34092
|
+
index as Util,
|
|
34093
34093
|
Vector,
|
|
34094
34094
|
VectorView,
|
|
34095
34095
|
VertexBuffer,
|