Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source: Category For Easily Adding Gesture Recognizers In Cocos2D v1 and v2

  •  
  •  
  •  
  •  
  •  

Cocos2D is a great iOS game framework, and there are several wrappers out there for adding functionality contained within the UIKit into Cocos2D games.

Shortly after gesture recognizers were added to the iOS SDK some wrapper code was released so Cocos2D developers could use gesture recongizers within their games, but this required using a different syntax, and modifying Cocos2D code.

Today I came across a nice category from Krystof Zablocki that can be used with CCNode in both Cocos2D for adding gesture recognizers in Cocos2D games while using the same syntax as a UIGestureRecognizer.

The code works in Cocos2D versions 1 and V2.

You can read more about the category on Kryztof’s website here.

You can find the category and an example project on Github here.

Added to the Cocos2D tutorial and example page.

 


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments