I am using following code: // Add the stuff from below! CCSprite* background = [CCSprite spriteWithFile:@\"background-1.png\"];
My iphone game that I am currently working was developed using cocos2d. The game crashes with the error:
I am using following code for sprite animation in cocos2d [[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFrame开发者_开发问答sWithFile:
I have created an animation like [[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:
So I have this class called a Cell which is a subclass of CCSprite then I have three other subclasses of Cell.
I have iPad game application. Now I want it for the Mac OS x. This application is using Cocos2D and Gamekit开发者_高级运维 framework. How can I create Mac OS X application. Gamekit framework is only a
I am creating a rain scene in my game. I want to show the lightning effect. How to do it in cocos2d? i used partical sysytem to s开发者_JS百科how the rain. how to do the lightning?
I have installed cocos 2d templates using below开发者_运维百科 document: http://www.i2links.net/i2/showthread.php?t=26284
I am new in cocos2d i have created a simple example CGSize winSize = [[CCDirector sharedDirector] winSize];
I have added some sprite by using the following code and then by checking the rect intersection I want to replace these sprites with another one.Can you help me out by providing code