cocos2d-iphone
I need to create a timer that has hour, mins, and seconds
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.[详细]
2023-04-09 17:55 分类:问答CCSprite runAction and Remove
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];[详细]
2023-04-09 16:50 分类:问答Where should I go from here? (Cocos2D+UIKit)
Currently I have this code in my UIViewController: //Cocos2D methods -(id) init { if((self=[super init]))[详细]
2023-04-09 16:02 分类:问答How can I get iphone device type?
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?[详细]
2023-04-09 14:29 分类:问答Get the sender touch for ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
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[详细]
2023-04-09 11:40 分类:问答About animating frame by frame with sprite files
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.[详细]
2023-04-09 11:03 分类:问答How to draw Ropes using cocos2d texture programming
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[详细]
2023-04-09 08:58 分类:问答not able to change background using CCLayerColor and initWithColor:cc4(255,255,255,255)
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:[详细]
2023-04-09 08:11 分类:问答Cocos2D: Passing a CGPoint through CCCallFuncND
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[详细]
2023-04-09 07:37 分类:问答Box2D and GameCenter multiplayer
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[详细]
2023-04-09 04:00 分类:问答