craftyjs.github.com

Crafty.stop

Events

CraftyStop
when the game is stopped

public this Crafty.stop([bool clearState])

clearState
if true the stage and all game state is cleared.

Stops the EnterFrame interval and removes the stage element.

To restart, use Crafty.init().

See Also