Repeating background

Repeating background
0.0 0


How to make a repeating background? Cocos2d-iphone uses the GL_REPEAT for textures, but this will not work for the canvas renderer. Should I create multiple sprites with the same texture and different position?


wait for cocos2d-html5 to support Webgl

if you only target html5 platforms, you can do that with canvas fillstyle