Cocos2D-x : Create Sprite and Create Label

Cocos2D-x Add Scrollview

Following lines of code gives an example of how to create a sprite in Cocos2D-x. Similarly, Following lines of code gives an example of how to create a label in Cocos2D-x.

Cocos2D-x : File Template for Creating a new Game Scene

Cocos2D-x Add Scrollview

Hi All ! I have found that, in cocos2D-x, developer has to copy and paste GameScene files & then modify it again and again for each scene you create for your game. Using following source code, one does not need … Continue reading

Cocos2D-X : How to register touch events?

Cocos2D-x Add Scrollview

In this tutorial, I’ll illustrate how to register touch events in Cocos2D-x for iOS. Just go through the following code snip with the explainations as comments within in.

Cocos2D-x : How to create Menu in Cocos2D-X?

Cocos2D-x Add Scrollview

Hi All ! using this post, I’ll provide you code-snip for creating Menu in Cocos2D-x. Just go through the following code snip for more brief. Hope that helps.

Manage assests for iOS Devices in Cocos2D-x

Cocos2D-x Add Scrollview

Using this post, I would like to illustrate how to manage assests for iOS Devices in Cocos2D-X. Just go throuh the following source-code with the comments.

Add a scrollView in Cocos2D-x

Cocos2D-x Add Scrollview

Please go through the following lines of the code with the comments to understand each line. Hope that helps.

Create an image using color and size supplied in arguments

In this post, I’ll illustrate how to create an image with the help of color specified and size specified. Sometimes, during development, you might need to create an image with specific color. As an example, if you wish to have … Continue reading

UIPopOver Illustrations – Part 2

sugartin uipopover illustration part 2 - 3

Using this post, I am going to discuss following topics. Adding a Navigation bar in the popOver Adding Bar-button Items in the PopOver-navigation bar Pushing a view-controller in the PopOver Poping a view-controller in the PopOver Setting the size of … Continue reading