我有cocos2d html5游戏。它在PC上运行良好,所有浏览器都没有错误,但在Tizen平台上只显示白色屏幕。看起来所有的update循环都正常工作,但是绘图有问题。统计信息和背景闪光灯在开始一段时间,但然后只有空白的白色屏幕显示。没有javascript错误。
此行为从2.2版本开始。在2.1.5中,我没有这个问题。
有人能帮我吗?
发布于 2013-11-23 08:15:19
我刚刚检查了cocos2d-html回购(https://github.com/cocos2d/cocos2d-html5/)。
提交在cocos2d/platform/CCApplication.js中添加的27f140a13bcd2c4920代码
if(cc.Browser.isMobile){
...
cc._addBottomTag();
}
...
cc._addBottomTag = function () {
var bottom = document.createElement("div");
bottom.id = "bottom";
bottom.style.border = bottom.style.margin = bottom.style.padding = bottom.style.height = bottom.style.lineHeight = bottom.style.fontSize = "0px";
document.body.appendChild(bottom);
window.location.href="#bottom";
};此代码仅针对移动浏览器执行,并引起上述问题。
https://stackoverflow.com/questions/20144862
复制相似问题