Should I drawing directly on CCLayer or CCSprite?
- by einverne
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?