Category : cocos2d-x

Sqlite integration in cocos2d-x with wp8 in visual studio2012.

Hello Friends, There are some steps for integration of sqlite in cocos2d-x with wp8  in visual studio 2012 given bellow: Step 1. First create a default HelloWorld project and in your HelloWorldScene.cpp , delete the lines in init function after these lines upto return true statement. if(!CCLayer::init()) { return false; } Don’t delete return true.

Read More →

2,186 total views, 1 views today

How to drag a sprite in cocos2d-x

Hi friends. In this tutorial we will learn how to drag a sprite in cocos2d-x Step 1 Create a new project and delete everything in init() function of HelloWorldScene.cpp Step 2 In your HelloWorldScene.h write #include “cocos2d.h” using namespace cocos2d;

Step 3 Write the following code in your init function and add any sprite

Read More →

5,431 total views, 1 views today

How to make plist and read data from plist in cocos2d-x

Depending on the conditions,if it is required to store small piece of data(mostly when tabular) and to retrieve that data in your project,then it is not wise to use sqlite,plist is best to use conditionally. For making and add data to plist,just go to ios folder in your project,right click and select new file option,window

Read More →

2,989 total views, 1 views today

How to integrate GoogleAdmob in cocos2d-x (Portrait mode)

In order to integrate the google admob to your existing project,firstly copy the following banner view classes and GoogleAdMobAdsSDK in proj.ios folder of your project Banner View Classes GoogleAdMobAdsSDK After copying,the folder will look like this: Now your project folder is ready for the integration,go to your Xcode project,open it,add these classes of banner view

Read More →

1,502 total views, 1 views today

How to call objective C from c++ in cocos2d-x

Hi friends. In this tutorial we will learn to call objective C methods from a c++ class in mac OS Step 1 Create a new Hello World Project. By default you will have HelloWorldScene.cpp, HelloWorldScene.h, AppDelegate.cpp and AppDelegate.h Step 2 Now create a new File in your classes folder and name it as ObjCCalls or

Read More →

4,476 total views, 1 views today

1 2