@@ -2081,46 +2081,46 @@ cc.initEngine = function (config, cb) {
2081
2081
*
2082
2082
*/
2083
2083
cc . game = /** @lends cc.game# */ {
2084
- /**
2085
- * Debug mode: No debugging. {@static }
2086
- * @const {Number}
2087
- * @static
2088
- */
2084
+ /**
2085
+ * Debug mode: No debugging. {@static }
2086
+ * @const {Number}
2087
+ * @static
2088
+ */
2089
2089
DEBUG_MODE_NONE : 0 ,
2090
- /**
2091
- * Debug mode: Info to console.
2092
- * @const {Number}
2093
- * @static
2090
+ /**
2091
+ * Debug mode: Info, warning, error to console.
2092
+ * @const {Number}
2093
+ * @static
2094
2094
*/
2095
2095
DEBUG_MODE_INFO : 1 ,
2096
- /**
2097
- * Debug mode: Warning to console.
2098
- * @const {Number}
2099
- * @static
2096
+ /**
2097
+ * Debug mode: Warning, error to console.
2098
+ * @const {Number}
2099
+ * @static
2100
2100
*/
2101
2101
DEBUG_MODE_WARN : 2 ,
2102
- /**
2102
+ /**
2103
2103
* Debug mode: Error to console.
2104
- * @const {Number}
2105
- * @static
2104
+ * @const {Number}
2105
+ * @static
2106
2106
*/
2107
2107
DEBUG_MODE_ERROR : 3 ,
2108
- /**
2109
- * Debug mode: Info to web page.
2110
- * @const {Number}
2111
- * @static
2108
+ /**
2109
+ * Debug mode: Info, warning, error to web page.
2110
+ * @const {Number}
2111
+ * @static
2112
2112
*/
2113
2113
DEBUG_MODE_INFO_FOR_WEB_PAGE : 4 ,
2114
- /**
2115
- * Debug mode: Warning to web page.
2116
- * @const {Number}
2117
- * @static
2114
+ /**
2115
+ * Debug mode: Warning, error to web page.
2116
+ * @const {Number}
2117
+ * @static
2118
2118
*/
2119
2119
DEBUG_MODE_WARN_FOR_WEB_PAGE : 5 ,
2120
- /**
2120
+ /**
2121
2121
* Debug mode: Error to web page.
2122
- * @const {Number}
2123
- * @static
2122
+ * @const {Number}
2123
+ * @static
2124
2124
*/
2125
2125
DEBUG_MODE_ERROR_FOR_WEB_PAGE : 6 ,
2126
2126
@@ -2156,21 +2156,19 @@ cc.game = /** @lends cc.game# */{
2156
2156
_eventShow : null ,
2157
2157
2158
2158
/**
2159
- * Keys found in config .json.
2159
+ * Keys found in project .json.
2160
2160
*
2161
2161
* @constant
2162
2162
* @type {Object }
2163
2163
*
2164
- * @prop {String } width
2165
- * @prop {String } height
2166
- * @prop {String } engineDir
2167
- * @prop {String } modules
2168
- * @prop {String } debugMode
2169
- * @prop {String } showFPS
2170
- * @prop {String } frameRate
2171
- * @prop {String } id
2172
- * @prop {String } renderMode
2173
- * @prop {String } jsList
2164
+ * @prop {String } engineDir - In debug mode, if you use the whole engine to develop your game, you should specify its relative path with "engineDir".
2165
+ * @prop {String } modules - Defines which modules you will need in your game, it's useful only on web
2166
+ * @prop {String } debugMode - Debug mode, see DEBUG_MODE_XXX constant definitions.
2167
+ * @prop {String } showFPS - Left bottom corner fps information will show when "showFPS" equals true, otherwise it will be hide.
2168
+ * @prop {String } frameRate - Sets the wanted frame rate for your game, but the real fps depends on your game implementation and the running environment.
2169
+ * @prop {String } id - Sets the id of your canvas element on the web page, it's useful only on web.
2170
+ * @prop {String } renderMode - Sets the renderer type, only useful on web, 0: Automatic, 1: Canvas, 2: WebGL
2171
+ * @prop {String } jsList - Sets the list of js files in your game.
2174
2172
*/
2175
2173
CONFIG_KEY : {
2176
2174
width : "width" ,
@@ -2232,14 +2230,6 @@ cc.game = /** @lends cc.game# */{
2232
2230
*/
2233
2231
onStop : null ,
2234
2232
2235
- /**
2236
- * Callback when game frame has been sized or resized. called
2237
- * once on game startup.
2238
- *
2239
- * @type {Function|null }
2240
- */
2241
- onResize : null ,
2242
-
2243
2233
//@Public Methods
2244
2234
2245
2235
// @Game play control
0 commit comments