我做了个地图。用在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,但结果是一样的。我不知道有什么不同的图像。请帮帮我。
发布于 2014-12-01 12:32:21
你试过吗?我想我曾经遇到过这样的错误:
您是否尝试过将所有图像文件添加到resources.js文件中?
https://stackoverflow.com/questions/27200336
复制相似问题