我制作了一张地图。并在cocos2d-js上使用了它。
刚刚添加
this._map = new cc.TMXTiledMap(res.tilemap);
this.addChild(this._map, 0, 1);
在图层中。
但是当我使用这张图片时
http://i.imgur.com/f5VG0Nr.png,
http://i.imgur.com/Ugg9GNq.png
发生此错误。
[.WebGLRenderingContext]RENDER WARNING: texture bound to texture
unit 0 is not renderable. It maybe non-power-of-2 and have incompatible
texture filtering or is not 'texture complete'
但是当我使用其他图像时,它可以工作。喜欢
http://i.imgur.com/Grv0srJ.png,
http://i.imgur.com/v1eWdkE.png,
http://i.imgur.com/BXKRbVx.png
我用该图像多次更改了tilemap,但结果相同。我不知道这些图像有什么不同。请帮我。
您是否尝试过,我相信我曾经遇到过此错误:
您是否尝试过将所有图像文件添加到文件中resources.js
?
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句