I intent to use this on my planets in my game: http://54.77.31.219/ looking for this kind of stuff for some time. glad it appeared on hn (: thanks
var terra = require('./terra.min.js');
should work in any CommonJS environment. terra.creatureFactory.register({type: 'firstCreature'});
this is stored in the global `terra` variable... Would be better IMO var terra = new Terra();terra.creatureFactory.register({type: 'firstCreature'});