Here is the code: ball = [CCSprite spriteWithFile:@\"Ball.png\" rect:CGRectMake(0, 0, 52, 52)]; ball.position = ccp(300, 300);
am having开发者_C百科 uiviewcontroller for some effects using in camera. am using cocos2d lot for this project. i want just how to integrate this UIviewcontroller in cocos2d scene.
I updated my iPhone game with OpenFeint and when I do a ad hoc build I am getting this 开发者_运维问答error (simulator works fine):
We are working on a pixel-art based game for iPhone using Cocos2D. We have a peculiar requirement - we would like users to be able to change the color scheme for some objects. So, for example, we migh
I am developing an iphone game using cocos2d and box2d. I use cococ2d to animate a sprite (using series of png).
I\'ve been porting my cocos2D iOS game to Mac and it works without problems but I don\'t understand why I get two windows open every time I launch the app.
i am trying to understand how to implement the physics of sprite when it hit a wall. lets say i have a wall, and a sprite is is hitting the wall with velocity and gravity using box2d(cocos2d), what is
I have some CCSprites that are children of a CCParallaxNode that scroll horizontally.They are all the same size, i.e, 2048X640 (for the -hd versions, 1024X320 for the non-hd), but they cont开发者_如何
I have total 20 images in NSMutableArray of ccspirit objects, and I want to show them on screen moving moving upward, I add them to as [self addChild:p] as below
I have two classes, both are subclasses of CCLayer, I want to call a meth开发者_如何学Good of first class into second class, what should I code?Your question is not providing much detail, but from my