diff --git a/CCBoot.js b/CCBoot.js index 8f648d98f9..737c6e1eb0 100644 --- a/CCBoot.js +++ b/CCBoot.js @@ -2360,6 +2360,13 @@ cc.game = /** @lends cc.game# */{ cc.game.onStart(); }, + /** + * End game, it will close the game window + */ + end: function () { + close(); + }, + // @Game loading /** * Prepare game.