Class cc.game
- Defined in: CCBoot.js
Constructor Attributes | Constructor Name and Description |
---|---|
cc.game()
An object to boot the game.
|
Method Summary
Class Detail
cc.game()
An object to boot the game.
Field Detail
config
Config of game
<constant>
CONFIG_KEY
Key of config
onStart
Callback when the scripts of engine have been load.
onStop
Callback when game exits.
Method Detail
-
prepare(cb)Prepare game.
- Parameters:
- cb
-
restart()Restart game.
-
run(id)Run game.
- Parameters:
- id
-
setFrameRate(frameRate)Set frameRate of game.
- Parameters:
- frameRate