I currently have code that can display mins and seconds. But the problem I\'m facing is that when the mins gets to 60, it cou开发者_JAVA百科nts up to 61 and beyond.
I have a ccLayer where I\'m trying to make it rain. On init i schedule the following: [self schedule:@selector(throwRain) interval:0.1f];
Currently I have this code in my UIViewController: //Cocos2D methods -(id) init { if((self=[super init]))
I want to get iphone device type if it is iphone 2 or 3G or 4 in xcode 4.0. Is there any way to get it?
How can i find in a multi touch cocos2d app w开发者_StackOverflow中文版hat was the touch that called ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event ? I can get all the touches using [event
I used to animate my CCSprites by iterating through 30 image files (rather big ones) and on each file I changed the CCSprite\'s texture to that image file.
I am new to cocos2d framework but I have good experience in iPhone application programming. We can draw lines between 2 points using ccDrawLine command. What I need to do is draw a Rope which connects
i am working on very first tutorial on cocos2d understanding basic concept.I am trying to change background color from default(black) to white.here is my code:
What is the appropriate way to call a method with an action, and what should the method itself look like for passing a CGPoint parameter? I\'ve tried to look up examples online without much luck, so I
i have a hockey game with mallets running on iphone/ipad. The server controlls all the physics and send to the other device the server mallet position and the client sends to the server his mallet pos