Skip to content

Commit db627d4

Browse files
committed
Add cc.game.end
1 parent cb118aa commit db627d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CCBoot.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2360,6 +2360,13 @@ cc.game = /** @lends cc.game# */{
23602360
cc.game.onStart();
23612361
},
23622362

2363+
/**
2364+
* End game, it will close the game window
2365+
*/
2366+
end: function () {
2367+
close();
2368+
},
2369+
23632370
// @Game loading
23642371
/**
23652372
* Prepare game.

0 commit comments

Comments
 (0)