Category : IOS

Placing b2body(with sprite) at some angle and move it along with the sprite in cocos2dx

Step1:Making the sprite at the angle where we want to place the b2body:Assuming rX and rY are the scaling factors

Step2:Then make the corresponding b2body.Here i am loading the body from the physics editor,therefore adding it using the GB2ShapeCache by adding the plist file.

Step3:Now make some changes in the update function which

Read More →

1,638 total views, no views today

DropBox “Core API” Integration in iOS Application

Steps to Download/include/Use DropBox Core Api into your iOS Project/app Goto “” and download the core Api from there. Adding to existing projects Open your project in Xcode. Navigate to where you uncompressed the SDK and drag the DropboxSDK.framework folder into your project in Xcode. Make sure Copy items into destination group’s folder is selected.

Read More →

1,336 total views, 1 views today

How to get current date,time,month and year in cocos2dx

In order to get the current date,time,we can use 2 methods-either using the localtime of the desktop or using GMT(GREENWICH MEAN TIME) //USING THE LOCAL TIME time_t time; struct tm * timeinfo; time (&time); timeinfo = localtime (&time); CCLog(“year->%d”,timeinfo->tm_year+1900); CCLog(“month->%d”,timeinfo->tm_mon+1); CCLog(“date->%d”,timeinfo->tm_mday); CCLog(“hour->%d”,timeinfo->tm_hour); CCLog(“minutes->%d”,timeinfo->tm_min); CCLog(“seconds->%d”,timeinfo->tm_sec); //USIMG GMT Replace the above line timeinfo = localtime (&time);withtimeinfo =gmtime

Read More →

3,999 total views, 1 views today

How to enable multitouch in cocos2dx

In order to enable multitouch just go to your Then in the function didFinishLaunchingWithOptions after creating the EAGL View add the following line. [__glView setMultipleTouchEnabled:YES]; Then the didfinishlaunchingwithoptions will look like: (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. // Add the view controller’s view to the window and

Read More →

4,061 total views, 1 views today

Integrating Phonegap in Sencha App

Hi readers, In this blog we will be looking at the possibilities that are provided by Sencha in building your Mobile Applications. If you use Sencha to build native mobile applications you have two options: 1. Android 2. ios. For Windows, Blackberry you need to provide phonegap support. Building native application using sencha I expect

Read More →

1,936 total views, 1 views today

1 2 3 4