2013-11-22 35 views
0

我有cocos2d html5游戏。它在PC上运行良好,所有浏览器都没有错误,但在Tizen平台上它只显示白屏。 它看起来像所有更新循环的作品是正确的,但绘画有问题。状态信息和背景在开始时会闪烁一会儿,但只显示空的白色屏幕。没有JavaScript错误。Cocos2d-html5白屏问题。

此行为自2.2版本开始。用2.1.5我没有这个问题。

任何人都可以帮助我吗?

回答

0

我刚刚检查了cocos2d-html回购(https://github.com/cocos2d/cocos2d-html5/)。

凯明在cocos2d /平台/ 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"; 
}; 

此代码只针对提及的问题移动浏览器和原因执行。