Improve js template documentation

This commit is contained in:
pandamicro 2015-11-24 16:31:14 +08:00
parent 378cfa35b6
commit a6fdd9aa09
3 changed files with 11 additions and 4 deletions

View File

@ -23,8 +23,9 @@
// "frameRate" set the wanted frame rate for your game, but the real fps depends on your game implementation and the running environment. // "frameRate" set the wanted frame rate for your game, but the real fps depends on your game implementation and the running environment.
"noCache" : false, "noCache" : false,
// Set "noCache" to true can make the loader ignoring the html page cache while loading your resources, // "noCache" set whether your resources will be loaded with a timestamp suffix in the url.
// especially useful in Android web browsers. // In this way, your resources will be force updated even if the browser holds a cache of it.
// It's very useful for mobile browser debuging.
"id" : "gameCanvas", "id" : "gameCanvas",
// "gameCanvas" sets the id of your canvas element on the web page, it's useful only on web. // "gameCanvas" sets the id of your canvas element on the web page, it's useful only on web.

View File

@ -23,8 +23,9 @@
// "frameRate" set the wanted frame rate for your game, but the real fps depends on your game implementation and the running environment. // "frameRate" set the wanted frame rate for your game, but the real fps depends on your game implementation and the running environment.
"noCache" : false, "noCache" : false,
// Set "noCache" to true can make the loader ignoring the html page cache while loading your resources, // "noCache" set whether your resources will be loaded with a timestamp suffix in the url.
// especially useful in Android web browsers. // In this way, your resources will be force updated even if the browser holds a cache of it.
// It's very useful for mobile browser debuging.
"id" : "gameCanvas", "id" : "gameCanvas",
// "gameCanvas" sets the id of your canvas element on the web page, it's useful only on web. // "gameCanvas" sets the id of your canvas element on the web page, it's useful only on web.

View File

@ -46,6 +46,11 @@
"frameRate" : 60, "frameRate" : 60,
// "frameRate" set the wanted frame rate for your game, but the real fps depends on your game implementation and the running environment. // "frameRate" set the wanted frame rate for your game, but the real fps depends on your game implementation and the running environment.
"noCache" : false,
// "noCache" set whether your resources will be loaded with a timestamp suffix in the url.
// In this way, your resources will be force updated even if the browser holds a cache of it.
// It's very useful for mobile browser debuging.
"id" : "gameCanvas", "id" : "gameCanvas",
// "gameCanvas" sets the id of your canvas element on the web page, it's useful only on web. // "gameCanvas" sets the id of your canvas element on the web page, it's useful only on web.