excalibur
Version:
Excalibur.js is a simple JavaScript game engine with TypeScript bindings for making 2D games in HTML5 Canvas. Our mission is to make web game development as simple as possible.
17 lines (16 loc) • 764 B
TypeScript
import { Entity, Query, World } from '../EntityComponentSystem';
import { MotionComponent } from '../EntityComponentSystem/Components/MotionComponent';
import { TransformComponent } from '../EntityComponentSystem/Components/TransformComponent';
import { System, SystemType } from '../EntityComponentSystem/System';
import { PhysicsWorld } from './PhysicsWorld';
export declare class MotionSystem extends System {
world: World;
physics: PhysicsWorld;
static priority: -5;
systemType: SystemType;
private _physicsConfigDirty;
query: Query<typeof TransformComponent | typeof MotionComponent>;
constructor(world: World, physics: PhysicsWorld);
update(elapsed: number): void;
captureOldTransformWithChildren(entity: Entity): void;
}