cocos2d-iphone
CCSprite not rendering when made in a method from an external class
I\'m sure this is really obvious to someone, but this simple thing is really frustrating me. I have a class I made called Class_Sprite, which is a sub-class of CCSprite.[详细]
2023-04-10 15:18 分类:问答White screen to load cocos2d scene
I am new in cocos 2d game development anddeveloping a game where I need to reload scenes fr开发者_Python百科om view controller many times.For this i remove the scene and run it again.After 2 or more t[详细]
2023-04-10 09:36 分类:问答create a CCMenuItemLabel with a custom font file
I have a CCMenuitemLabel CCMenuItemLabel *startGame = [CCMenuItemLabel itemWithLabel:str target:self selector:@selector(startGamefn)];[详细]
2023-04-10 07:29 分类:问答Is there any API to fetch an iPhone's internal data?
With iPhone\'s internal data I meant, for example, in general setting we have an option called usage which shows the amount of bytes that has been sent and received. I want 开发者_运维问答to fetch the[详细]
2023-04-10 04:42 分类:问答A function is not being called
I got a CCNode subclass, and it eventually calls a function located on its parent. First, my class will do this:[详细]
2023-04-10 01:36 分类:问答How to custom init an EAGLView?
In my iOS project, glView ends up with height=0 and width=0 even though CGRect frame correctly gets the screen\'s dimensions in the previous line.[详细]
2023-04-10 00:54 分类:问答How to customize Cocos2D page turn effect with back side texture and shadow?
I want to make nicer effect of page turn transition in my Cocos2D based application. There\'s CCTransitionPageTurn, but I\'d like to add custom texture on back side and dynamic shadow, so it would loo[详细]
2023-04-09 23:28 分类:问答how to detect touch on rotated sprite in cocos2d
I have rotated sprite to 90. I checked the touch location of the rotated sprite as follows: matchsprite.rotation=90;[详细]
2023-04-09 23:01 分类:问答How to do shake the iPhone using Cocos 2d
I can detect shake in iPhone using Cocos 2D when I use: -(void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration[详细]
2023-04-09 20:33 分类:问答Saving lots of dictionaries and arrays
My game comes with lots of .plist files containing many dictionaries, arrays, etc. They are about each party member\'s stats, info, etc.[详细]
2023-04-09 19:37 分类:问答