2 Star 0 Fork 0

sandman920531 / teach_G5-ECD

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.js 804 Bytes
一键复制 编辑 原始数据 按行查看 历史
Administrator 提交于 2015-08-04 10:30 . 111
cc.game.onStart = function(){
if(!cc.sys.isNative && document.getElementById("cocosLoading")) {
document.body.removeChild(document.getElementById("cocosLoading"));
}
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;
}
cc.view.enableRetina(false);
cc.view.adjustViewPort(true);
cc.view.setDesignResolutionSize(1024, 672, cc.ResolutionPolicy.SHOW_ALL);
cc.view.resizeWithBrowserSize(true);
cc.LoaderScene.preload(g_resources_start, function () {
gg.init();
gg.start_load = true;
$.runScene(new StartScene());
}, this);
};
cc.game.run();
JavaScript
1
https://gitee.com/cxl931004/teach_G5-ECD.git
git@gitee.com:cxl931004/teach_G5-ECD.git
cxl931004
teach_G5-ECD
teach_G5-ECD
master

搜索帮助