Hot answers tagged cocos2d-iphone
The difficulty of an endless runner is dependent on a few things, first of all the size of the obstacles and different types of obstacles, typically it's best to just hardcode when different obstacles can appear and use a formula for sizes (especially when you can only use a given dodge ability for a certain amount of time). A good formula for the size of ...
Regarding the info found here, currently there is no official way to achieve this but they are working on it. Meanwhile you can download the "standalone template" found in the same link.
As I recall, as from Cocos2Dv3 you can only create cocos2d projects via SpriteBuilder. If you insist to work without SB, What I'd recommend is to create a new SpriteBuilder project and delete all the SB files from there. Another option would be to copy all the source files from the sb project to the new Xcode project. Hope it helped.
If you have sleeping allowed (and the b2_timeToSleep is sufficiently short for your needs) you can use the b2Body::isAwake function to test if a rock is settled. Pseudo-code: For body in bodies: If(body is rock and not body->isAwake()) Then //Apply impulse End If End loop
That error occurs on this line: CCTexture *texture = [CCTexture textureWithFile:image]; And this is the right way to do this: CCTexture *texture = [[CCTexture alloc] initWithCGImage:image.CGImage contentScale:image.scale];
Only top voted, non community-wiki answers of a minimum length are eligible