Wanted! Duel – Free iPhone & iPad Game
Draw lines & shapes using ccDrawLine & glColor4f
Basic Tutorial – Flying Planes
Hello All ! I am glad to tell you that this post will add some basic actions & sound effects. Just follow the steps to have output as shown in video. Step 1) Create a new project using Cocos2D Project Template. Step 2) Open HelloWorldLayer.m file & replace with following code. +(CCScene *) scene { [...]
Detecting Touches in Cocos2D
This post will help you to enable touches detection & handling. Step 1) Go to layer & open implementation file. Step 2) set isTouchesEnabled to YES in your layer’s init method. Example. -(id) init { if( (self=[super initWithColor:ccc4(255, 255, 255, 255)])) { self.isTouchEnabled=YES; // this line is important spritePlayer = [CCSprite spriteWithFile:@"Player.png"]; [spritePlayer setPosition:ccp(spritePlayer.contentSize.width/2,WINSIZE.height/2)]; [self [...]
Learning basic actions
Using this tutorial, I am going to describe following points. Scheduling Scheduling a method Unscheduling a method Actions CCMoveTo CCMoveBy Reversing an action Creating a sequence of actions using CCSequence First place following code in your HelloWorldLayer.m file (Also, replace init method) // on “init” you need to initialize your instance -(id) init { if( [...]
Introduction to Cocos2D for iPhone/iPad
Hello ! All, This would be my first post for Cocos2D game development. Using this post, I am going to describe following things. Downloading Cocos2D framework Installing project templates for Cocos2D Understanding HelloWorld Application of Cocos2D Downloading Cocos2D framework To download Cocos2D framework click here. Installing Project Template. Extract the downloaded Cocos2D framework. Open the [...]


