用cocose2d-js 创建一个 tilemap,在 Mac 上看是好着的,但是在 iphone 上就显示黑屏
其他的sprite、menu 等等 用图片加载,在 iphone 上都能显示正常,事件响应也正常
我用的是 网页方式,不是 jsb,不知道有谁解决过这种问题吗?
添加地图的代码如下,我的显示
this._backgroundMap = new cc.TMXTiledMap(res.map_tmx);
//To show map at top-left of the window, the anchor should be set to top-left of the map
this._backgroundMap.setPosition(cc.p(0,winSize.height));
this._backgroundMap.setAnchorPoint(cc.p(0,1));
this._mapLandLayer = this._backgroundMap.getLayer("LandLayer");
this._mapLandLayer.setVisible(false);
this.addChild(this._backgroundMap);
```
LandLayer是其中一层,其他层是设置可见的
project.json 里"renderMode" 设置0和1都试过,但是都不行