Skip to content

gamedev-js/ecs.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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