Sprite reflection?
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.
精彩评论