game-engine
game-engine
Generic Entity Component System (ECS) style game engine with systems for PIXI and Box2D.
@quicksave/game-engine
Classes
- Animatable
- AnimateSystem
- DebugDrawSystem
- Engine
- InterpolatedPosition
- Layout
- LayoutSystem
- Music
- ParticleEmitter
- ParticleSystem
- PhysicsBox
- PhysicsChain
- PhysicsCircle
- PhysicsObject
- PhysicsPolygon
- PhysicsSystem
- Position
- PositionSystem
- RenderSystem
- Renderable
- SpineRenderable
- Spring
- SpringSystem
- SpriteRenderable
- System
- Trail
- TrailSystem
Interfaces
- AnimatableConfig
- DebugDrawSystemConfig
- EngineConfig
- LayoutConfig
- MusicConfig
- ParticleEffectConfig
- ParticleEmitterConfig
- ParticleSystemConfig
- PhysicsBoxConfig
- PhysicsChainConfig
- PhysicsCircleConfig
- PhysicsObjectConfig
- PhysicsPolygonConfig
- PhysicsSystemConfig
- SpineRenderableConfig
- SpringConfig
- SpriteRenderableConfig
- TrailConfig
Type Aliases
AnimateCallback
Ƭ AnimateCallback: (position
: Position
, animationTime
: number
) => void
Animation callback. Should update the position
reference based on animationTime
.
Type declaration
▸ (position
, animationTime
): void
Parameters
Name | Type |
---|---|
position |
Position |
animationTime |
number |
Returns
void
BodyType
Ƭ BodyType: "static"
| "dynamic"
| "kinematic"
Entity
Ƭ Entity: string
Entity is just an identifier.
IPosition
Ƭ IPosition: Object
Type declaration
Name | Type |
---|---|
rotation |
number |
x |
number |
y |
number |