One thing I don't like about having an external library for assertions is that it increases the barrier to entry. We want to encourage people to pepper their code with assertions, but if you have to import the assert module in every file that uses them, people might just get lazy and avoid doing it. So it's not clear what the best setup would be.
Font#getTextSize(text[, width]);
var joy = Joystick.devices[0];if (joy.isPressed(0)) { /* talk */ }if (joy.getPosition(0) > 0.5) { /* move right */ }// etc.
var updateJob = system.recur(Dispatch.Update, myUpdateFunc);var renderJob = system.recur(Dispatch.Render, myRenderFunc);
updateJob.cancel();renderJob.cancel();
var updateJob = system.recur(Dispatch.Update, myUpdateFunc);var anotherUpdateJob = system.recur(Dispatch.Update, someOtherFunc);
// these are all recurring:Dispatch.onUpdate(updateThis);Dispatch.onUpdate(updateThat);Dispatch.onUpdate(updateSomeOtherThing);Dispatch.onFlip(renderItAll);// these are one-shots:Dispatch.now(resolvePromise);Dispatch.later(2.0, getEatenBy.bind(you, maggie));