/ecs.js

Entity-Component-System

Primary LanguageJavaScriptMIT LicenseMIT

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