XCode, Assets & Simulators – analysis with display & assets

Assets analysis - Article Thumb

Lets create 3 images named as follows. my_image.png my_image@2x.png my_image@3x.png Dimension of above mentioned images are as follows. my_image.png = 100 pixels width x 100 pixels height my_image@2x.png = 200 pixels width x 200 pixels height my_image@3x.png = 300 pixels … Continue reading

Proper understanding of 1x, 2x, 3x for iDevices

1x 2x 3x iPhone, iPad, iPod Touch display sizes

Device Type iPhone / iPod Touch iPad Scale 1x 2x 3x 1x 2x Size by Points 320 x 480 320 x 480 320 x 568 375 x 667 414 x 736 768 x 1024 768 x 1024 Size by Pixels … Continue reading

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.

Shell script for genrating XCAssets for Projects

Shell script for genrating XCAssets for Projects

Hi All ! In this post, you’ll find a script. This shell script is going to help you to generate XCAssets. Why do we need XCAssets? In earlier XCode5, we’re forced to (or it is more preferable to) manage assets/images … Continue reading