js-marketplace-2014/index.js

18 lines
435 B
JavaScript
Raw Normal View History

2013-10-17 14:50:51 +00:00
var g = new Ground(function () {
console.log('here');
World.spawn({
step: function () { console.log('step'); },
boot: function () {
console.log('boot');
World.updateRoutes([sub(__), sub(__, 1)]);
World.send({msg: 'hello outer world'}, 1);
World.send({msg: 'hello inner world'}, 0);
},
handleEvent: function (e) {
console.log('handleEvent: ' + JSON.stringify(e));
}
});
});
g.startStepping();