Should I drawing directly on CCLayer or CCSprite?

Posted by einverne on Game Development See other posts from Game Development or by einverne
Published on 2013-11-25T07:17:45Z Indexed on 2014/06/01 9:43 UTC
Read the original article Hit count: 183

Filed under:
|
|

Now I am a little confused in my cocos2d-x cpp project. I want to draw lines with user's finger touch. Following the screenshot of a CCScene:

In the screen, there are two squares. I want show an animation in the first square and let the second one draw lines with user touch.

Now these two squares are CCSprite. And I can draw dots in the second one on the CCLayer. But I am little confused that I should draw lines on the Sprite or on the Layer.

Or are there other ways to organize the code?

© Game Development or respective owner

Related posts about c++

Related posts about cocos2d-x