开发者

Sprite reflection?

开发者 https://www.devze.com 2023-01-28 08:43 出处:网络
I am new in cocos2d..I have a sprite that is traveling in some direction,when this s开发者_如何学Goprite hits a wall by an angle, I want it to change the direction and continue in that path..?? can an

I am new in cocos2d..I have a sprite that is traveling in some direction, when this s开发者_如何学Goprite hits a wall by an angle, I want it to change the direction and continue in that path..?? can any one give a sample code??


Have a look at this code: iPhone Cocos2d Bouncing Ball.

0

精彩评论

暂无评论...
验证码 换一张
取 消