2

I am developing a puzzle game.

In this game I have to draw custom lines on touch began to touch end points. For this I searched a lot, but all tutorials or links only tell us that how can we use drawLine method for line drawing.

Drawing line on touches moved in COCOS2D is one of them, but I want to draw custom lines over my background sprite. So any one can tell me that is there any method in cocos2d so that i could use my texture image for line drawing.

If this is possible then please refer me link.

4

1 回答 1

0

尝试使用CCribbon绘制纹理线

编辑以展开

以为我以前研究过这个:-)这段代码应该可以适应你的需要,也不是CCRibbon 方法(虽然它不会像多个 CCRibbon 那样平滑)

于 2012-07-02T15:27:39.617 回答