Static
Protected
_cancelStatic
Protected
_frameStatic
Protected
_requestStatic
createStatic
runStatic
startStatic
stopEnds execution of Runner.run
on the given runner
, by canceling the animation frame request event loop.
If you wish to only temporarily pause the runner, see runner.enabled
instead.
stop
Static
tickGenerated using TypeDoc
The
Matter.Runner
module is an optional utility which provides a game loop, that handles continuously updating aMatter.Engine
for you within a browser. It is intended for development and debugging purposes, but may also be suitable for simple games. If you are using your own game loop instead, then you do not need theMatter.Runner
module. Instead just callEngine.update(engine, delta)
in your own loop.See the included usage examples.