Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 398 Bytes

README.md

File metadata and controls

34 lines (21 loc) · 398 Bytes

ECS.js

Entity-Component-System

Install

npm install ecs.js

Usage

let app = new App();

class Foo extends Component {}
class FooSystem extends System {}

app.registerClass('Foo', Foo);
app.registerSystem('foo.sys', FooSystem, 'Foo');

let ent = app.createEntity();
ent.addComp('Foo');

app.tick();

Documentation

TODO

License

MIT © 2017 Johnny Wu