I am developing a cocos2d IPhone app using the SimpleAudioEngine to play some mp3 sounds. My problem is that when I resume the app after a long time it is in background some sounds are no longer playe
ON the simulator everything works gre开发者_运维技巧at when i call [sprite boundingbox] the results are different in cocos2d.
When I import SimpleAudioEngine.h: #import \"SimpleAudioEngine.h\" I get six errors. 3 开发者_JS百科of them are related to CVPixelBuffer.h and 3 are related to CMFormatDescription.h.
I am new to cocos2d and I\'m trying to build a simple word game. I am stuck with some doubts. I have arranged the letter\'s images at bottom of the screen. I\'ve used CCMenuItemImage as buttons and a
so i have code like this CCLabelTTF *label = [CCLabelTTF labelWithString:[NSString stringWithFormat:@\"%@\", SomeString] fontName:@\"Marker Felt\" fontSize:25];
I\'m making a game in cocos2d that uses \"old-school\" style graphics, and I don\'t want the sprites to be antialiased in any way. I can use [[sprite texture] setAliasTexParameters] to disable th开发者
I would like to simulate \"gravity\" for one sprite. I defined a CGPoint which holds the gravity values. And I have tick method.
I am trying to simulate a modal view in cocos2d by displaying a few sprites over my scene and showing a menuitemsprite as a continue button.In the code below, i show my game over modal and have the me
is it just my version of xcode or am I missing something. I am following a tutorial and it is telling me to right click Classes and select new file which i can do. it then says select iOS\\CocoaTouch\
I am using cocos2d to draw custom shapes for a game. I have an array of polygon points that I use to plot the border of a polygon using the below opengl code.