game-engine

game-engine

Generic Entity Component System (ECS) style game engine with systems for PIXI and Box2D.

@quicksave/game-engine

Classes

Interfaces

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