xcode - cocos2d Curved Line -


i developing simple basketball game. stuck @ 1 point. when game start, user click on basketball generate curved line (using dot images saved in vector).

so how control curved line? mean, in touchedmoved function. when user move finger (location x) less curved line first dot image (location x) curved line width extend , near basketball ring , vice versa.

this feels poor design, if created class curved line , used event dispatcher add touch events?

https://github.com/cocos2d/cocos2d-x/blob/v3/docs/release_notes.md#user-content-new-eventdispatcher


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -