SkillAgentSearch skills...

PinchToRevealCocos2D

Have a look at the youtube video of the animation in action : (http://www.youtube.com/watch?v=0PfU-3BjBDc&feature=youtu.be) . Krzysztof zablocki (www.merowing.info) wrote a fantastic piece on how to use gesture recognizer in cocos2d and another tutorial on how to create a pinch to reveal animation for UIKit. I have built upon his technique and created this project to use Pinch To Reveal gesture in cocos2d. the Source code is documented well and you are free to use/modify it in any way you please. Through this code you shall learn how to a) Incorporate UIGestureRecognizer in cocos2d (1.0 RC) b) How To Read in a pinch gesture on a CCsprite c) How to split the sprite in two sections based on the pinch gesture's location and move the split sections according to the movement of the pinch gesture.

Install / Use

/learn @sprakshak/PinchToRevealCocos2D
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PinchToRevealCocos2D

(http://www.youtube.com/watch?v=0PfU-3BjBDc&feature=youtu.be)

Krzysztof zablocki (www.merowing.info) wrote a fantastic piece on how to use gesture recognizer in cocos2d and another tutorial on how to create a pinch to reveal animation for UIKit. I have built upon his technique and created this project to use Pinch To Reveal gesture in cocos2d. The Source code is documented well and you are free to use/modify it in any way you please.

Through this code you shall learn how to a) Incorporate UIGestureRecognizer in cocos2d (1.0 RC) b) How To Read in a pinch gesture on a CCsprite c) How to split the sprite in two sections based on the pinch gesture's location and move the split sections according to the movement of the pinch gesture.

View on GitHub
GitHub Stars20
CategoryContent
Updated7y ago
Forks3

Languages

Objective-C

Security Score

60/100

Audited on Mar 4, 2019

No findings