excalibur
Index
Classes
- ActionCompleteEvent
- ActionContext
- ActionQueue
- ActionsComponent
- ActionSequence
- ActionsSystem
- ActionStartEvent
- ActivateEvent
- Actor
- AddedComponent
- AddEvent
- AffineMatrix
- Animation
- ArcadeSolver
- AudioContextFactory
- BezierCurve
- Blink
- BodyComponent
- BoundingBox
- BrowserComponent
- BrowserEvents
- Camera
- Canvas
- ChannelCollection
- Circle
- CircleCollider
- Clock
- Collider
- ColliderComponent
- CollisionContact
- CollisionEndEvent
- CollisionGroup
- CollisionGroupManager
- CollisionPostSolveEvent
- CollisionPreSolveEvent
- CollisionStartEvent
- CollisionSystem
- Color
- ColorBlindFlags
- ColorBlindnessPostProcessor
- Component
- CompositeCollider
- ConsoleAppender
- ContactConstraintPoint
- ContactEndEvent
- ContactStartEvent
- CrossFade
- CurveBy
- CurveTo
- DeactivateEvent
- Debug
- DebugConfig
- DebugGraphicsComponent
- DebugSystem
- DebugText
- DefaultLoader
- Delay
- Detector
- Die
- Director
- DynamicTree
- DynamicTreeCollisionProcessor
- EaseBy
- EaseTo
- EasingFunctions
- Edge
- EdgeCollider
- ElasticToActorStrategy
- Engine
- EnterTriggerEvent
- EnterViewPortEvent
- Entity
- EntityManager
- EventEmitter
- ExcaliburGraphicsContext2DCanvas
- ExcaliburGraphicsContextWebGL
- ExitTriggerEvent
- ExitViewPortEvent
- ExResponse
- Fade
- FadeInOut
- Flags
- Flash
- Follow
- Font
- FontCache
- FontSource
- FpsSampler
- FrameStats
- Future
- GameEvent
- Gamepad
- GamepadAxisEvent
- GamepadButtonEvent
- GamepadConnectEvent
- GamepadDisconnectEvent
- Gamepads
- GameStartEvent
- GameStopEvent
- GarbageCollector
- Gif
- GifParser
- GlobalCoordinates
- GpuParticleEmitter
- GpuParticleRenderer
- Graph
- Graphic
- GraphicsComponent
- GraphicsGroup
- GraphicsSystem
- HashColliderProxy
- HashGridCell
- HashGridProxy
- HiddenEvent
- ImageSource
- InitializeEvent
- InputHost
- InputMapper
- IsometricEntityComponent
- IsometricEntitySystem
- IsometricMap
- IsometricTile
- Keyboard
- KeyEvent
- KillEvent
- Label
- LimitCameraBoundsStrategy
- Line
- LineSegment
- Loader
- LockCameraToActorAxisStrategy
- LockCameraToActorStrategy
- Logger
- Material
- Matrix
- MediaEvent
- Meet
- MotionComponent
- MotionSystem
- MoveBy
- MoveByWithOptions
- MoveTo
- MoveToWithOptions
- NativeSoundEvent
- NativeSoundProcessedEvent
- NineSlice
- Node
- Observable
- OffscreenSystem
- Pair
- ParallaxComponent
- ParallelActions
- Particle
- ParticleEmitter
- ParticleRenderer
- PauseComponent
- PauseEvent
- PauseSystem
- PhysicsStats
- PhysicsWorld
- PointerAbstraction
- PointerComponent
- PointerEvent
- PointerEventReceiver
- PointerSystem
- Polygon
- PolygonCollider
- Pool
- PositionNode
- PostCollisionEvent
- PostDebugDrawEvent
- PostDrawEvent
- PostFrameEvent
- PostKillEvent
- PostTransformDrawEvent
- PostUpdateEvent
- PreCollisionEvent
- PreDebugDrawEvent
- PreDrawEvent
- PreFrameEvent
- PreKillEvent
- PreLoadEvent
- PreTransformDrawEvent
- PreUpdateEvent
- Projection
- QuadIndexBuffer
- QuadTree
- Query
- QueryManager
- RadiusAroundActorStrategy
- Random
- Raster
- Ray
- RealisticSolver
- Rectangle
- RemovedComponent
- RemoveEvent
- RentalPool
- Repeat
- RepeatForever
- Resolution
- Resource
- ResourceLoadingError
- ResumeEvent
- RotateBy
- RotateByWithOptions
- RotateTo
- RotateToWithOptions
- ScaleBy
- ScaleByWithOptions
- ScaleTo
- ScaleToWithOptions
- Scene
- Screen
- ScreenAppender
- ScreenElement
- ScreenShader
- Semaphore
- SeparatingAxis
- SeparationInfo
- Serializer
- Shader
- Shape
- Slide
- Sound
- SoundManager
- SparseHashGrid
- SparseHashGridCollisionProcessor
- Sprite
- SpriteFont
- SpriteSheet
- StandardClock
- StateMachine
- Stream
- System
- SystemManager
- TagQuery
- TestClock
- Text
- TextureLoader
- Tile
- TiledAnimation
- TiledSprite
- TileMap
- Timer
- Toaster
- Transform
- TransformComponent
- Transition
- TreeNode
- Trigger
- UniformBuffer
- Vector
- VectorView
- VertexBuffer
- VertexLayout
- VisibleEvent
- WebAudio
- WebAudioInstance
- WheelEvent
- World
Enumerations
- AnimationDirection
- AnimationStrategy
- Axes
- Axis
- BaseAlign
- Buttons
- CollisionType
- ColorBlindnessMode
- ContactSolveBias
- CoordPlane
- DegreeOfFreedom
- Direction
- DisplayMode
- EmitterType
- EventTypes
- FontStyle
- FontUnit
- ImageFiltering
- ImageWrapping
- Keys
- LogLevel
- MatrixLocations
- NativePointerButton
- NineSliceStretch
- ParticleTransform
- PointerButton
- PointerScope
- PointerType
- RotationType
- ScrollPreventionMode
- Side
- SolverStrategy
- SpatialPartitionStrategy
- SystemType
- TextAlign
- WheelDeltaMode
Functions
- angleDifference
- approximatelyEqual
- assert
- canonicalizeAngle
- clamp
- coroutine
- createId
- easeInBack
- easeInBounce
- easeInCirc
- easeInCubic
- easeInElastic
- easeInExpo
- easeInOutBack
- easeInOutBounce
- easeInOutCirc
- easeInOutCubic
- easeInOutElastic
- easeInOutExpo
- easeInOutQuad
- easeInOutQuart
- easeInOutQuint
- easeInOutSine
- easeInQuad
- easeInQuart
- easeInQuint
- easeInSine
- easeOutBack
- easeOutBounce
- easeOutCirc
- easeOutCubic
- easeOutElastic
- easeOutExpo
- easeOutQuad
- easeOutQuart
- easeOutQuint
- easeOutSine
- frac
- glTypeToUniformTypeName
- has_add
- has_postupdate
- has_preupdate
- has_remove
- hasGraphicsTick
- hasOnAdd
- hasOnInitialize
- hasOnPostUpdate
- hasOnPreUpdate
- hasOnRemove
- hasPostDraw
- hasPreDraw
- inverseLerp
- inverseLerpVector
- isActor
- isAddedComponent
- isComponentCtor
- isLegacyEasing
- isLoaderConstructor
- isMoveByOptions
- isMoveToOptions
- isRemovedComponent
- isRotateByOptions
- isRotateToOptions
- isScaleByOptions
- isScaleToOptions
- isSceneConstructor
- isScreenElement
- isSystemConstructor
- lerp
- lerpAngle
- lerpVector
- linear
- nextActionId
- obsolete
- parseImageFiltering
- parseImageWrapping
- randomInRange
- randomIntInRange
- range
- remap
- remapVector
- resetObsoleteCounter
- sign
- smootherstep
- smoothstep
- toDegrees
- toRadians
- vec
Interfaces
- _add
- _initialize
- _postupdate
- _preupdate
- _remove
- Action
- Actionable
- ActionContextMethods
- ActorEvents
- AnimationEvents
- AnimationOptions
- AntialiasOptions
- Appender
- Audio
- AudioImplementation
- BezierCurveOptions
- BodyComponentData
- BodyComponentOptions
- BoundingBoxOptions
- BoxColliderData
- CameraEvents
- CameraStrategy
- CanActivate
- CanAdd
- CanBeKilled
- CanDeactivate
- CanDraw
- CanInitialize
- CanRemove
- CanUpdate
- CanvasOptions
- CapsuleColliderData
- CapturePointerConfig
- ChannelSoundsConfiguration
- CircleColliderData
- CircleColliderOptions
- CircleOptions
- ClockOptions
- Clonable
- ColliderComponentData
- ColliderProxy
- CollisionProcessor
- CollisionSolver
- ComponentData
- CompositeColliderData
- ContactBias
- CoroutineInstance
- CoroutineOptions
- CrossFadeOptions
- CurveByOptions
- CurveToOptions
- DataWithId
- DebugDraw
- DebugStats
- DefaultLoaderOptions
- DetectedFeatures
- DirectorEvents
- DirectorNavigationEvent
- DynamicTreeConfig
- EasingFunction
- EdgeColliderData
- EdgeColliderOptions
- EngineEvents
- EngineOptions
- EntityComponent
- EntityData
- EntityEvents
- EntityOptions
- Eventable
- ExcaliburGraphicsContext
- ExcaliburGraphicsContext2DOptions
- ExcaliburGraphicsContextOptions
- ExcaliburGraphicsContextState
- ExcaliburGraphicsContextWebGLOptions
- ExResponseTypesLookup
- FadeOptions
- FontOptions
- FontSourceOptions
- FpsSamplerOptions
- Frame
- FrameActorStats
- FrameDurationStats
- FrameEvent
- FrameStatistics
- FromSpriteSheetOptions
- FullScreenChangeEvent
- GamepadEvents
- GarbageCollectionOptions
- GarbageCollectorOptions
- GetSpriteOptions
- GifFrame
- GoToOptions
- GpuParticleConfig
- GraphicOptions
- GraphicsComponentData
- GraphicsComponentOptions
- GraphicsGrouping
- GraphicsGroupingOptions
- GraphicsShowOptions
- GraphicsStatistics
- HasTick
- ImageSourceOptions
- ImageWrapConfiguration
- InputHostOptions
- InputsOptions
- IsometricEntityComponentOptions
- IsometricMapOptions
- IsometricTilePointerEvents
- KeyboardInitOptions
- LabelOptions
- LegacyWebAudioSource
- LineGraphicsOptions
- LineOptions
- Loadable
- LoaderEvents
- LoaderOptions
- MaterialImageOptions
- MaterialOptions
- Message
- Motion
- MoveByOptions
- MoveToOptions
- NativeEventable
- Observer
- ObsoleteOptions
- OnAdd
- OnInitialize
- OnPostDraw
- OnPostUpdate
- OnPreDraw
- OnPreUpdate
- OnRemove
- ParticleConfig
- ParticleEmitterArgs
- PauseComponentInterface
- PhysicsConfig
- PhysicsStatistics
- PixelRatioChangeEvent
- PlayOptions
- PointerEvents
- PointerInitOptions
- PointGraphicsOptions
- PolygonColliderData
- PolygonColliderOptions
- PolygonOptions
- PostProcessor
- QuadTreeItem
- QuadTreeOptions
- QueryParams
- RasterOptions
- RayCastHit
- RayCastOptions
- RectangleOptions
- RectGraphicsOptions
- RendererPlugin
- ResourceEvents
- RotateByOptions
- RotateToOptions
- ScaleByOptions
- ScaleToOptions
- SceneActivationContext
- SceneEvents
- SceneWithOptions
- ScreenAppenderOptions
- ScreenEvents
- ScreenOptions
- ScreenResizeEvent
- SerializedData
- ShaderOptions
- SlideOptions
- SoundConfig
- SoundEvents
- SoundManagerApi
- SoundManagerOptions
- SoundOptions
- SparseHashGridConfig
- SpriteFontOptions
- SpriteOptions
- SpriteSheetGridOptions
- SpriteSheetOptions
- SpriteSheetSpacingDimensions
- SpriteSheetSparseOptions
- StartOptions
- State
- StateMachineDescription
- StateMachineState
- Subscription
- SystemCtor
- TestClockOptions
- TextOptions
- TiledAnimationOptions
- TiledSpriteOptions
- TileMapEvents
- TileMapOptions
- TileOptions
- TilePointerEvents
- TimerEvents
- TimerOptions
- TransformComponentData
- TransitionOptions
- TriggerEvents
- TriggerOptions
- UniformBufferOptions
- UniformDefinition
- VectorViewOptions
- VertexAttributeDefinition
- VertexBufferOptions
- VertexLayoutOptions
- ViewportDimension
- WebGLGraphicsContextInfo
Namespaces
Type Aliases
- activate
- ActorArgs
- add
- AnyString
- axis
- BodyConfig
- button
- cancel
- ColliderCreationData
- ColliderType
- collisionend
- collisionstart
- ComponentCtor
- ComponentInstance
- CompositeStrategy
- connect
- CoroutineGenerator
- deactivate
- DestinationSize
- disconnect
- DistributeEntity
- down
- Easing
- enter
- entertrigger
- enterviewport
- EventKey
- EventMap
- exittrigger
- exitviewport
- ExResponseType
- G_UUID
- Handler
- hidden
- hold
- HTMLImageSource
- Id
- initialize
- kill
- leave
- LoaderConstructor
- MaybeKnownComponent
- MaybeObserver
- move
- NativeMouseEvent
- NativePointerEvent
- NativeTouchEvent
- NativeWheelEvent
- NineSliceConfig
- pointercancel
- pointerdown
- pointerdragend
- pointerdragenter
- pointerdragleave
- pointerdragmove
- pointerdragstart
- pointerenter
- pointerleave
- pointermove
- pointerup
- pointerwheel
- PossibleChannels
- PossibleSounds
- PossibleStates
- postcollision
- postdebugdraw
- postdraw
- postframe
- postkill
- postupdate
- precollision
- predebugdraw
- predraw
- preframe
- prekill
- press
- preupdate
- QueryEntity
- release
- remove
- SceneConstructor
- SceneMap
- ScheduledCallbackTiming
- ScheduleId
- SourceView
- start
- stop
- subscribe
- UniformDictionary
- UniformTypeNames
- unsubscribe
- up
- ViewportUnit
- visible
- wheel
- WithRoot
Variables
- ActorEvents
- AnimationEvents
- CameraEvents
- ClosestLineJumpTable
- CollisionJumpTable
- DefaultAntialiasOptions
- DefaultGarbageCollectionOptions
- DefaultPixelArtOptions
- DirectorEvents
- EngineEvents
- EntityEvents
- EX_VERSION
- GamepadEvents
- getDefaultPhysicsConfig
- HorizontalFirst
- ImageSourceAttributeConstants
- LoaderEvents
- maxMessages
- None
- PauseComponentTag
- pixelSnapEpsilon
- ResourceEvents
- SceneEvents
- ScreenEvents
- SoundEvents
- SystemPriority
- TileMapEvents
- TimerEvents
- TriggerEvents
- TwoPI
- VerticalFirst
Type Aliases
activate
ActorArgs
add
AnyString
axis
BodyConfig
button
cancel
ColliderCreationData
ColliderType
collisionend
collisionstart
ComponentCtor
ComponentInstance
Type parameters
- T
CompositeStrategy
connect
CoroutineGenerator
Type declaration
Returns Generator<any | number | Promise<any> | undefined, void, number>
deactivate
DestinationSize
height
width
disconnect
DistributeEntity
Turns Entity<A | B> into Entity<A> | Entity<B>
Type parameters
- T
down
Easing
Type declaration
Parameters
currentTime: number
time value between 0 and 1
rest...args: number[]
Returns number
scale of the final value between 0 and 1
enter
entertrigger
enterviewport
EventKey
Type parameters
- T: EventMap
EventMap
exittrigger
exitviewport
ExResponseType
G_UUID
A unique identifier for a graph node or edge.
Handler
Type parameters
- EventType
Type declaration
Parameters
event: EventType
Returns void
hidden
hold
HTMLImageSource
Id
Type parameters
- T: string
type
value
initialize
kill
leave
LoaderConstructor
Type declaration
Parameters
rest...args: any[]
Returns DefaultLoader
MaybeKnownComponent
Type parameters
- Component
- TKnownComponents
MaybeObserver
Defines an interface for something that might be an observer if a notify() is present
Type parameters
- T
move
NativeMouseEvent
NativePointerEvent
NativeTouchEvent
NativeWheelEvent
NineSliceConfig
pointercancel
pointerdown
pointerdragend
pointerdragenter
pointerdragleave
pointerdragmove
pointerdragstart
pointerenter
pointerleave
pointermove
pointerup
pointerwheel
PossibleChannels
Type parameters
- TSoundManagerOptions
PossibleSounds
Type parameters
- TSoundMangerOptions
PossibleStates
Type parameters
- TMachine
postcollision
postdebugdraw
postdraw
postframe
postkill
postupdate
precollision
predebugdraw
predraw
preframe
prekill
press
preupdate
QueryEntity
Type parameters
- TAllComponentCtors: ComponentCtor<Component> = never
- TAnyComponentCtors: ComponentCtor<Component> = never
release
remove
SceneConstructor
Type declaration
Parameters
rest...args: any[]
Returns Scene
SceneMap
Type parameters
- TKnownScenes: string = any
ScheduledCallbackTiming
ScheduleId
Unique identifier for a scheduled callback
SourceView
height
width
x
y
start
stop
subscribe
UniformDictionary
UniformTypeNames
unsubscribe
up
ViewportUnit
visible
wheel
WithRoot
Type parameters
- TScenes
Variables
ActorEvents
Type declaration
readonlyActionComplete: actioncomplete
readonlyActionStart: actionstart
readonlyCollisionEnd: collisionend
readonlyCollisionStart: collisionstart
readonlyEnterViewPort: enterviewport
readonlyExitViewPort: exitviewport
readonlyKill: kill
readonlyPointerCancel: pointercancel
readonlyPointerDown: pointerdown
readonlyPointerDrag: pointerdragstart
readonlyPointerDragEnd: pointerdragend
readonlyPointerDragEnter: pointerdragenter
readonlyPointerDragLeave: pointerdragleave
readonlyPointerDragMove: pointerdragmove
readonlyPointerEnter: pointerenter
readonlyPointerLeave: pointerleave
readonlyPointerMove: pointermove
readonlyPointerUp: pointerup
readonlyPostCollision: postcollision
readonlyPostDebugDraw: postdebugdraw
readonlyPostDraw: postdraw
readonlyPostKill: postkill
readonlyPostTransformDraw: posttransformdraw
readonlyPreCollision: precollision
readonlyPreDebugDraw: predebugdraw
readonlyPreDraw: predraw
readonlyPreKill: prekill
readonlyPreTransformDraw: pretransformdraw
readonlyWheel: pointerwheel
AnimationEvents
Type declaration
End: string
Frame: string
Loop: string
CameraEvents
Type declaration
Initialize: string
PostUpdate: string
PreUpdate: string
constClosestLineJumpTable
Type declaration
CircleCircleClosestLine: function
Parameters
circleA: CircleCollider
circleB: CircleCollider
Returns LineSegment
CircleEdgeClosestLine: function
Parameters
circle: CircleCollider
edge: EdgeCollider
Returns LineSegment
EdgeEdgeClosestLine: function
Parameters
edgeA: EdgeCollider
edgeB: EdgeCollider
Returns LineSegment
PolygonCircleClosestLine: function
Parameters
polygon: PolygonCollider
circle: CircleCollider
Returns LineSegment
PolygonEdgeClosestLine: function
Parameters
polygon: PolygonCollider
edge: EdgeCollider
Returns LineSegment
PolygonPolygonClosestLine: function
Parameters
polygonA: PolygonCollider
polygonB: PolygonCollider
Returns LineSegment | null
constCollisionJumpTable
Type declaration
CollideCircleCircle: function
Parameters
circleA: CircleCollider
circleB: CircleCollider
Returns CollisionContact[]
CollideCircleEdge: function
Parameters
circle: CircleCollider
edge: EdgeCollider
Returns CollisionContact[]
CollideCirclePolygon: function
Parameters
circle: CircleCollider
polygon: PolygonCollider
Returns CollisionContact[]
CollideEdgeEdge: function
Returns CollisionContact[]
CollidePolygonEdge: function
Parameters
polygon: PolygonCollider
edge: EdgeCollider
Returns CollisionContact[]
CollidePolygonPolygon: function
Parameters
polyA: PolygonCollider
polyB: PolygonCollider
Returns CollisionContact[]
FindContactSeparation: function
Parameters
contact: CollisionContact
localPoint: Vector
Returns number
constDefaultAntialiasOptions
constDefaultGarbageCollectionOptions
constDefaultPixelArtOptions
DirectorEvents
Type declaration
readonlyNavigation: navigation
readonlyNavigationEnd: navigationend
readonlyNavigationStart: navigationstart
EngineEvents
Type declaration
readonlyFallbackGraphicsContext: fallbackgraphicscontext
readonlyHidden: hidden
readonlyInitialize: initialize
readonlyNavigation: navigation
readonlyNavigationEnd: navigationend
readonlyNavigationStart: navigationstart
readonlyPostDraw: postdraw
readonlyPostFrame: postframe
readonlyPostUpdate: postupdate
readonlyPreDraw: predraw
readonlyPreFrame: preframe
readonlyPreUpdate: preupdate
readonlyStart: start
readonlyStop: stop
readonlyVisible: visible
EntityEvents
Type declaration
readonlyAdd: add
readonlyInitialize: initialize
readonlyKill: kill
readonlyPostUpdate: postupdate
readonlyPreUpdate: preupdate
readonlyRemove: remove
constEX_VERSION
The current Excalibur version string
GamepadEvents
Type declaration
GamepadAxis: string
GamepadButton: string
GamepadButtonDown: string
GamepadButtonUp: string
GamepadConnect: string
GamepadDisconnect: string
constgetDefaultPhysicsConfig
Type declaration
Returns DeepRequired<PhysicsConfig>
constHorizontalFirst
Horizontal First contact solve bias Used by the ArcadeSolver to sort contacts
constImageSourceAttributeConstants
Type declaration
readonlyFiltering: filtering
readonlyForceUpload: forceUpload
readonlyWrappingX: wrapping-x
readonlyWrappingY: wrapping-y
LoaderEvents
Type declaration
AfterLoad: string
BeforeLoad: string
LoadResourceEnd: string
LoadResourceStart: string
UserAction: string
constmaxMessages
constNone
None value, ArcadeSolver sorts contacts using distance by default
constPauseComponentTag
constpixelSnapEpsilon
ResourceEvents
Type declaration
Complete: string
Error: string
Load: string
LoadStart: string
Progress: string
SceneEvents
Type declaration
readonlyActivate: activate
readonlyDeactivate: deactivate
readonlyInitialize: initialize
readonlyPause: pause
readonlyPostDebugDraw: postdebugdraw
readonlyPostDraw: postdraw
readonlyPostUpdate: postupdate
readonlyPreDebugDraw: predebugdraw
readonlyPreDraw: predraw
readonlyPreLoad: preload
readonlyPreUpdate: preupdate
readonlyResume: resume
readonlyTransitionEnd: transitionend
readonlyTransitionStart: transitionstart
ScreenEvents
Type declaration
readonlyFullScreenChange: fullscreen
readonlyPixelRatioChange: pixelratio
readonlyScreenResize: resize
SoundEvents
Type declaration
Pause: string
PlaybackEnd: string
PlaybackStart: string
Processed: string
Resume: string
Stop: string
VolumeChange: string
constSystemPriority
Higher priorities run earlier than others in the system update
Type declaration
readonlyAverage: 0
readonlyHigher: -5
readonlyHighest: number
readonlyLower: 5
readonlyLowest: number
TileMapEvents
Type declaration
PointerCancel: string
PointerDown: string
PointerMove: string
PointerUp: string
PostDraw: string
PostUpdate: string
PreDraw: string
PreUpdate: string
TimerEvents
Type declaration
readonlyAction: action
readonlyCancel: cancel
readonlyComplete: complete
readonlyPause: pause
readonlyResume: resume
readonlyStart: start
readonlyStop: stop
TriggerEvents
Type declaration
EnterTrigger: string
ExitTrigger: string
constTwoPI
Two PI constant
constVerticalFirst
Vertical First contact solve bias Used by the ArcadeSolver to sort contacts
Actor constructor options