excalibur
Index
Classes
- ActionContext
- ActionQueue
- ActionSequence
- ActionsComponent
- ActionsSystem
- Actor
- AddedComponent
- AffineMatrix
- Animation
- ArcadeSolver
- AudioContextFactory
- Blink
- BodyComponent
- BoundingBox
- BrowserComponent
- BrowserEvents
- Camera
- Canvas
- Circle
- CircleCollider
- Clock
- Collider
- ColliderComponent
- CollisionContact
- CollisionGroup
- CollisionGroupManager
- CollisionSystem
- Color
- ColorBlindFlags
- ColorBlindnessPostProcessor
- Component
- CompositeCollider
- ContactConstraintPoint
- CrossFade
- Debug
- DebugConfig
- DebugGraphicsComponent
- DebugSystem
- DebugText
- DefaultLoader
- Delay
- Detector
- Die
- Director
- DynamicTree
- DynamicTreeCollisionProcessor
- EaseBy
- EaseTo
- EdgeCollider
- ElasticToActorStrategy
- Engine
- Entity
- EntityManager
- EventDispatcher
- EventEmitter
- ExResponse
- ExcaliburGraphicsContext2DCanvas
- ExcaliburGraphicsContextWebGL
- Fade
- FadeInOut
- Flags
- Follow
- Font
- FontCache
- FontSource
- FpsSampler
- FrameStats
- Future
- Gif
- GlobalCoordinates
- Graphic
- GraphicsComponent
- GraphicsGroup
- GraphicsSystem
- HashColliderProxy
- HashGridCell
- HashGridProxy
- ImageSource
- InputHost
- InputMapper
- IsometricEntityComponent
- IsometricEntitySystem
- IsometricMap
- IsometricTile
- Label
- LimitCameraBoundsStrategy
- Line
- LineSegment
- Loader
- LockCameraToActorAxisStrategy
- LockCameraToActorStrategy
- Material
- Matrix
- MediaEvent
- Meet
- MotionComponent
- MotionSystem
- MoveBy
- MoveTo
- NativeSoundEvent
- NativeSoundProcessedEvent
- OffscreenSystem
- Pair
- ParallaxComponent
- ParallelActions
- ParseGif
- Particle
- ParticleEmitter
- Physics
- PhysicsStats
- PhysicsWorld
- PointerAbstraction
- Polygon
- PolygonCollider
- Pool
- PreLoadEvent
- Projection
- QuadIndexBuffer
- QuadTree
- Query
- QueryManager
- RadiusAroundActorStrategy
- Random
- Raster
- Ray
- RealisticSolver
- Rectangle
- RemovedComponent
- Repeat
- RepeatForever
- Resolution
- Resource
- RotateBy
- RotateTo
- ScaleBy
- ScaleTo
- Scene
- Screen
- ScreenElement
- ScreenShader
- Semaphore
- Shader
- Shape
- Sound
- SparseHashGrid
- SparseHashGridCollisionProcessor
- Sprite
- SpriteFont
- SpriteSheet
- StandardClock
- StateMachine
- Stream
- System
- SystemManager
- TagQuery
- TestClock
- Text
- TextureLoader
- Tile
- TileMap
- Timer
- Toaster
- Transform
- TransformComponent
- Transition
- TreeNode
- Trigger
- Vector
- VectorView
- VertexBuffer
- VertexLayout
- WebAudio
- WebAudioInstance
- World
Enumerations
- AnimationDirection
- AnimationStrategy
- Axis
- BaseAlign
- BroadphaseStrategy
- CollisionType
- ColorBlindnessMode
- ContactSolveBias
- CoordPlane
- DegreeOfFreedom
- Direction
- DisplayMode
- EmitterType
- FontStyle
- FontUnit
- ImageFiltering
- ImageWrapping
- Integrator
- MatrixLocations
- ParticleTransform
- RotationType
- ScrollPreventionMode
- Side
- SolverStrategy
- SpatialPartitionStrategy
- SystemType
- TextAlign
Functions
- DeprecatedStaticToConfig
- canonicalizeAngle
- clamp
- coroutine
- createId
- frac
- hasGraphicsTick
- hasOnInitialize
- hasOnPostUpdate
- hasOnPreUpdate
- hasPostDraw
- hasPreDraw
- has_postupdate
- has_preupdate
- isActor
- isAddedComponent
- isComponentCtor
- isLoaderConstructor
- isRemovedComponent
- isSceneConstructor
- isScreenElement
- isSystemConstructor
- nextActionId
- obsolete
- parseImageFiltering
- parseImageWrapping
- randomInRange
- randomIntInRange
- range
- resetObsoleteCounter
- sign
- toDegrees
- toRadians
- vec
Interfaces
- Action
- ActionContextMethods
- Actionable
- AnimationOptions
- AntialiasOptions
- Audio
- AudioImplementation
- BodyComponentOptions
- BoundingBoxOptions
- CameraStrategy
- CanActivate
- CanBeKilled
- CanDeactivate
- CanDraw
- CanInitialize
- CanUpdate
- CanvasOptions
- CircleColliderOptions
- CircleOptions
- ClockOptions
- Clonable
- ColliderProxy
- CollisionProcessor
- CollisionSolver
- ContactBias
- CoroutineOptions
- CrossFadeOptions
- DebugDraw
- DebugStats
- DefaultLoaderOptions
- DetectedFeatures
- DirectorNavigationEvent
- DynamicTreeConfig
- EdgeColliderOptions
- EngineOptions
- EntityComponent
- EntityOptions
- Eventable
- ExResponseTypesLookup
- ExcaliburGraphicsContext
- ExcaliburGraphicsContext2DOptions
- ExcaliburGraphicsContextOptions
- ExcaliburGraphicsContextState
- ExcaliburGraphicsContextWebGLOptions
- FadeOptions
- FontOptions
- FontSourceOptions
- FpsSamplerOptions
- Frame
- FrameActorStats
- FrameDurationStats
- FrameEvent
- FrameStatistics
- FromSpriteSheetOptions
- FullScreenChangeEvent
- GetSpriteOptions
- GifFrame
- GoToOptions
- GraphicOptions
- GraphicsComponentOptions
- GraphicsGrouping
- GraphicsGroupingOptions
- GraphicsShowOptions
- GraphicsStatistics
- HasTick
- ImageSourceOptions
- ImageWrapConfiguration
- InputHostOptions
- InputsOptions
- IsometricEntityComponentOptions
- IsometricMapOptions
- LabelOptions
- LegacyWebAudioSource
- LineGraphicsOptions
- LineOptions
- Loadable
- LoaderOptions
- MaterialImageOptions
- MaterialOptions
- Motion
- NativeEventable
- ObsoleteOptions
- OnInitialize
- OnPostDraw
- OnPostUpdate
- OnPreDraw
- OnPreUpdate
- ParticleArgs
- ParticleEmitterArgs
- PhysicsConfig
- PhysicsStatistics
- PixelRatioChangeEvent
- PointGraphicsOptions
- PointerEvents
- PolygonColliderOptions
- PolygonOptions
- PostProcessor
- QuadTreeItem
- QuadTreeOptions
- RasterOptions
- RayCastHit
- RayCastOptions
- RectGraphicsOptions
- RectangleOptions
- SceneActivationContext
- SceneWithOptions
- ScreenOptions
- ScreenResizeEvent
- ShaderOptions
- SparseHashGridConfig
- SpriteFontOptions
- SpriteOptions
- SpriteSheetGridOptions
- SpriteSheetOptions
- SpriteSheetSpacingDimensions
- SpriteSheetSparseOptions
- StartOptions
- State
- StateMachineDescription
- StateMachineState
- Subscription
- SystemCtor
- TestClockOptions
- TextOptions
- TileMapOptions
- TileOptions
- TimerOptions
- TransitionOptions
- TriggerOptions
- UniformDefinition
- VectorViewOptions
- VertexAttributeDefinition
- VertexBufferOptions
- VertexLayoutOptions
- ViewportDimension
- WebGLGraphicsContextInfo
- _initialize
- _postupdate
- _preupdate
Namespaces
References
- ActionCompleteEvent
- ActionStartEvent
- ActivateEvent
- Appender
- Axes
- Buttons
- CapturePointerConfig
- CollisionEndEvent
- CollisionPostSolveEvent
- CollisionPreSolveEvent
- CollisionStartEvent
- ConsoleAppender
- ContactEndEvent
- ContactStartEvent
- DeactivateEvent
- EasingFunction
- EasingFunctions
- EnterTriggerEvent
- EnterViewPortEvent
- EventTypes
- ExitTriggerEvent
- ExitViewPortEvent
- GameEvent
- GameStartEvent
- GameStopEvent
- Gamepad
- GamepadAxisEvent
- GamepadButtonEvent
- GamepadConnectEvent
- GamepadDisconnectEvent
- Gamepads
- HiddenEvent
- InitializeEvent
- KeyEvent
- Keyboard
- KeyboardInitOptions
- Keys
- KillEvent
- LogLevel
- Logger
- MaybeObserver
- Message
- NativeMouseEvent
- NativePointerButton
- NativePointerEvent
- NativeTouchEvent
- NativeWheelEvent
- Observable
- Observer
- PointerButton
- PointerComponent
- PointerEvent
- PointerEventReceiver
- PointerInitOptions
- PointerScope
- PointerSystem
- PointerType
- PostCollisionEvent
- PostDebugDrawEvent
- PostDrawEvent
- PostFrameEvent
- PostKillEvent
- PostTransformDrawEvent
- PostUpdateEvent
- PreCollisionEvent
- PreDebugDrawEvent
- PreDrawEvent
- PreFrameEvent
- PreKillEvent
- PreTransformDrawEvent
- PreUpdateEvent
- ScreenAppender
- ScreenAppenderOptions
- VisibleEvent
- WheelDeltaMode
- WheelEvent
- activate
- axis
- button
- cancel
- collisionend
- collisionstart
- connect
- deactivate
- disconnect
- down
- enter
- entertrigger
- enterviewport
- exittrigger
- exitviewport
- hidden
- hold
- initialize
- kill
- leave
- move
- pointercancel
- pointerdown
- pointerdragend
- pointerdragenter
- pointerdragleave
- pointerdragmove
- pointerdragstart
- pointerenter
- pointerleave
- pointermove
- pointerup
- pointerwheel
- postcollision
- postdebugdraw
- postdraw
- postframe
- postkill
- postupdate
- precollision
- predebugdraw
- predraw
- preframe
- prekill
- press
- preupdate
- release
- start
- stop
- subscribe
- unsubscribe
- up
- visible
- wheel
Type Aliases
- ActorArgs
- ActorEvents
- AnimationEvents
- CameraEvents
- ComponentCtor
- ComponentInstance
- Constructor
- CoroutineGenerator
- DestinationSize
- DirectorEvents
- EngineEvents
- EntityEvents
- EventKey
- EventMap
- ExResponseType
- HTMLImageSource
- Handler
- Id
- IsometricTilePointerEvents
- LoaderConstructor
- LoaderEvents
- MaybeKnownComponent
- PossibleStates
- ResourceEvents
- SceneConstructor
- SceneEvents
- SceneMap
- ScheduledCallbackTiming
- ScreenEvents
- SoundEvents
- SourceView
- TileMapEvents
- TilePointerEvents
- TriggerEvents
- UniformTypeNames
- ViewportUnit
- WithRoot
Variables
- ActorEvents
- AnimationEvents
- CameraEvents
- ClosestLineJumpTable
- CollisionJumpTable
- DefaultAntialiasOptions
- DefaultPhysicsConfig
- DefaultPixelArtOptions
- DirectorEvents
- EX_VERSION
- EngineEvents
- EntityEvents
- HorizontalFirst
- ImageSourceAttributeConstants
- LoaderEvents
- None
- ParticlePool
- ResourceEvents
- SceneEvents
- ScreenEvents
- SoundEvents
- SystemPriority
- TileMapEvents
- TriggerEvents
- TwoPI
- VerticalFirst
- maxMessages
- pixelSnapEpsilon
References
ActionCompleteEvent
ActionStartEvent
ActivateEvent
Appender
Axes
Buttons
CapturePointerConfig
CollisionEndEvent
CollisionPostSolveEvent
CollisionPreSolveEvent
CollisionStartEvent
ConsoleAppender
ContactEndEvent
ContactStartEvent
DeactivateEvent
EasingFunction
EasingFunctions
EnterTriggerEvent
EnterViewPortEvent
EventTypes
ExitTriggerEvent
ExitViewPortEvent
GameEvent
GameStartEvent
GameStopEvent
Gamepad
GamepadAxisEvent
GamepadButtonEvent
GamepadConnectEvent
GamepadDisconnectEvent
Gamepads
HiddenEvent
InitializeEvent
KeyEvent
Keyboard
KeyboardInitOptions
Keys
KillEvent
LogLevel
Logger
MaybeObserver
Message
NativeMouseEvent
NativePointerButton
NativePointerEvent
NativeTouchEvent
NativeWheelEvent
Observable
Observer
PointerButton
PointerComponent
PointerEvent
PointerEventReceiver
PointerInitOptions
PointerScope
PointerSystem
PointerType
PostCollisionEvent
PostDebugDrawEvent
PostDrawEvent
PostFrameEvent
PostKillEvent
PostTransformDrawEvent
PostUpdateEvent
PreCollisionEvent
PreDebugDrawEvent
PreDrawEvent
PreFrameEvent
PreKillEvent
PreTransformDrawEvent
PreUpdateEvent
ScreenAppender
ScreenAppenderOptions
VisibleEvent
WheelDeltaMode
WheelEvent
activate
axis
button
cancel
collisionend
collisionstart
connect
deactivate
disconnect
down
enter
entertrigger
enterviewport
exittrigger
exitviewport
hidden
hold
initialize
kill
leave
move
pointercancel
pointerdown
pointerdragend
pointerdragenter
pointerdragleave
pointerdragmove
pointerdragstart
pointerenter
pointerleave
pointermove
pointerup
pointerwheel
postcollision
postdebugdraw
postdraw
postframe
postkill
postupdate
precollision
predebugdraw
predraw
preframe
prekill
press
preupdate
release
start
stop
subscribe
unsubscribe
up
visible
wheel
Type Aliases
ActorArgs
ActorEvents
AnimationEvents
Type declaration
end: Animation
frame: FrameEvent
loop: Animation
CameraEvents
Type declaration
initialize: InitializeEvent<Camera>
postupdate: PostUpdateEvent<Camera>
preupdate: PreUpdateEvent<Camera>
ComponentCtor
ComponentInstance
Type parameters
- T
Constructor
Type parameters
- T
Type declaration
Parameters
rest...args: any[]
Returns T
CoroutineGenerator
Type declaration
Returns Generator<number | Promise<any> | undefined, void, number>
DestinationSize
Type declaration
height: number
width: number
DirectorEvents
Type declaration
navigation: DirectorNavigationEvent
navigationend: DirectorNavigationEvent
navigationstart: DirectorNavigationEvent
EngineEvents
Type declaration
fallbackgraphicscontext: ExcaliburGraphicsContext2DCanvas
hidden: HiddenEvent
initialize: InitializeEvent<Engine>
postdraw: PostDrawEvent
postframe: PostFrameEvent
postupdate: PostUpdateEvent<Engine>
predraw: PreDrawEvent
preframe: PreFrameEvent
preupdate: PreUpdateEvent<Engine>
start: GameStartEvent
stop: GameStopEvent
visible: VisibleEvent
EntityEvents
Built in events supported by all entities
Type declaration
initialize: InitializeEvent
kill: KillEvent
postupdate: PostUpdateEvent
preupdate: PreUpdateEvent
EventKey
Type parameters
- T: EventMap
EventMap
ExResponseType
HTMLImageSource
Handler
Type parameters
- EventType
Type declaration
Parameters
event: EventType
Returns void
Id
Type parameters
- T: string
Type declaration
type: T
value: number
IsometricTilePointerEvents
Type declaration
pointercancel: PointerEvent
pointerdown: PointerEvent
pointermove: PointerEvent
pointerup: PointerEvent
LoaderConstructor
Type declaration
Parameters
rest...args: any[]
Returns DefaultLoader
LoaderEvents
MaybeKnownComponent
Type parameters
- Component
- TKnownComponents
PossibleStates
Type parameters
- TMachine
ResourceEvents
Type declaration
complete: any
error: ProgressEvent<XMLHttpRequestEventTarget>
load: ProgressEvent<XMLHttpRequestEventTarget>
loadstart: ProgressEvent<XMLHttpRequestEventTarget>
progress: ProgressEvent<XMLHttpRequestEventTarget>
SceneConstructor
Type declaration
Parameters
rest...args: any[]
Returns Scene
SceneEvents
Type declaration
activate: ActivateEvent
deactivate: DeactivateEvent
initialize: InitializeEvent<Scene>
postdebugdraw: PostDebugDrawEvent
postdraw: PostDrawEvent
postupdate: PostUpdateEvent
predebugdraw: PreDebugDrawEvent
predraw: PreDrawEvent
preload: PreLoadEvent
preupdate: PreUpdateEvent
SceneMap
Type parameters
- TKnownScenes: string = any
ScheduledCallbackTiming
ScreenEvents
Built in events supported by all entities
Type declaration
fullscreen: FullScreenChangeEvent
Fires when the browser fullscreen api is successfully engaged or disengaged
pixelratio: PixelRatioChangeEvent
Fires when the pixel ratio changes, useful to know if you've moved to a hidpi screen or back
resize: ScreenResizeEvent
Fires when the screen resizes, useful if you have logic that needs to be aware of resolution/viewport constraints
SoundEvents
Type declaration
pause: NativeSoundEvent
playbackend: NativeSoundEvent
playbackstart: NativeSoundEvent
processed: NativeSoundProcessedEvent
resume: NativeSoundEvent
stop: NativeSoundEvent
volumechange: NativeSoundEvent
SourceView
Type declaration
height: number
width: number
x: number
y: number
TileMapEvents
TilePointerEvents
Type declaration
pointercancel: PointerEvent
pointerdown: PointerEvent
pointermove: PointerEvent
pointerup: PointerEvent
TriggerEvents
UniformTypeNames
List of the possible glsl uniform types
ViewportUnit
WithRoot
Type parameters
- TScenes
Variables
ActorEvents
Type declaration
ActionComplete: string
ActionStart: string
CollisionEnd: string
CollisionStart: string
EnterViewPort: string
ExitViewPort: string
Kill: string
PointerCancel: string
PointerDown: string
PointerDrag: string
PointerDragEnd: string
PointerDragEnter: string
PointerDragLeave: string
PointerDragMove: string
PointerEnter: string
PointerLeave: string
PointerMove: string
PointerUp: string
PostCollision: string
PostDebugDraw: string
PostDraw: string
PostKill: string
PostTransformDraw: string
PreCollision: string
PreDebugDraw: string
PreDraw: string
PreKill: string
PreTransformDraw: string
Wheel: string
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
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
constDefaultPhysicsConfig
constDefaultPixelArtOptions
DirectorEvents
Type declaration
Navigation: string
NavigationEnd: string
NavigationStart: string
constEX_VERSION
The current Excalibur version string
EngineEvents
Type declaration
readonlyFallbackGraphicsContext: fallbackgraphicscontext
readonlyHidden: hidden
readonlyInitialize: initialize
readonlyPostDraw: postdraw
readonlyPostFrame: postframe
readonlyPostUpdate: postupdate
readonlyPreDraw: predraw
readonlyPreFrame: preframe
readonlyPreUpdate: preupdate
readonlyStart: start
readonlyStop: stop
readonlyVisible: visible
EntityEvents
Type declaration
readonlyInitialize: initialize
readonlyKill: kill
readonlyPostUpdate: postupdate
readonlyPreUpdate: preupdate
constHorizontalFirst
Horizontal First contact solve bias Used by the [[ArcadeSolver]] to sort contacts
constImageSourceAttributeConstants
Type declaration
readonlyFiltering: filtering
readonlyWrappingX: wrapping-x
readonlyWrappingY: wrapping-y
LoaderEvents
Type declaration
AfterLoad: string
BeforeLoad: string
LoadResourceEnd: string
LoadResourceStart: string
UserAction: string
constNone
None value, [[ArcadeSolver]] sorts contacts using distance by default
constParticlePool
Used internally by Excalibur to manage all particles in the engine
ResourceEvents
Type declaration
Complete: string
Error: string
Load: string
LoadStart: string
Progress: string
SceneEvents
Type declaration
Activate: string
Deactivate: string
Initialize: string
PostDebugDraw: string
PostDraw: string
PostUpdate: string
PreDebugDraw: string
PreDraw: string
PreLoad: string
PreUpdate: string
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
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