Repeating background in cocos2d has black edges!

前端 未结 2 1249
你的背包
你的背包 2021-01-03 03:26

I am attempting to setup a tiled/repeating background for my iPhone app.

The code \"works\" in that the background is repeating like it should be but I seem to have

2条回答
  •  情书的邮戳
    2021-01-03 04:13

    Textures should always be in power of two... like 16,32,64,128,256,512,1024.

    Try resizing the image to 256x256 or 128x128.

提交回复
热议问题