debug Class
Module: cc
An object to boot the game.
Index
Methods
getErrorGets error message with the error id and possible parameters.isDisplayStatsReturns whether or not to display the FPS informations.setDisplayStatsSets whether display the FPS on the bottom-left corner.
Details
Methods
getError
Gets error message with the error id and possible parameters.
| meta | description |
|---|---|
| Returns | String |
| Defined in | cocos2d/core/CCDebug.js:345 |
Parameters
errorIdStringparamAny
isDisplayStats
Returns whether or not to display the FPS informations.
| meta | description |
|---|---|
| Returns | Boolean |
| Defined in | cocos2d/core/CCDebug.js:355 |
setDisplayStats
Sets whether display the FPS on the bottom-left corner.
| meta | description |
|---|---|
| Defined in | cocos2d/core/CCDebug.js:365 |
Parameters
displayStatsBoolean