0

I am creating a Catapult game in Cocos2d in which the catapult is at the bottom center of the screen and we throw stones on the objects falling from the top of the screen. I tried using Bezier curves for this purpose but problem is that I am not able to calculate control points for drawing bezier curve. I need to move sprite of the stone on a curved path when released from the catapult. Can anyone please guide me how can I achieve it? Thanks and Best Regards

4

1 回答 1

0

why you don't use physics for that?

use box2D is integrate with cocos2D, config the world, gravity, and physics budies,so.. the effect of catapult is automatic when you shot a bullet.

于 2013-08-01T22:29:09.693 回答