3 Star 0 Fork 0

sandman920531 / teach_chem008

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.js 827 Bytes
一键复制 编辑 原始数据 按行查看 历史
Administrator 提交于 2015-08-26 15:38 . 最新
cc.game.onStart = function(){
if(!cc.sys.isNative && document.getElementById("cocosLoading"))
document.body.removeChild(document.getElementById("cocosLoading"));
cc.view.enableRetina(false);
cc.view.adjustViewPort(true);
cc.view.setDesignResolutionSize(1280, 768, cc.ResolutionPolicy.SHOW_ALL);
cc.view.resizeWithBrowserSize(true);
gg.userId = cc.sys.localStorage.getItem("userId");
if (cc.sys.platform == cc.sys.DESKTOP_BROWSER) {
var userId = $.getQueryString("userId");
gg.userId = userId;
} else {
// 移动
var userId = cc.sys.localStorage.getItem("userId");
gg.userId = userId;
}
gg.init();
_ = new PlayMusic();
cc.LoaderScene.preload(g_resources_start, function () {
$.runScene(new StartScene());
}, this);
};
cc.game.run();
JavaScript
1
https://gitee.com/cxl931004/teach_chem008.git
git@gitee.com:cxl931004/teach_chem008.git
cxl931004
teach_chem008
teach_chem008
master

搜索帮助