Proper cocos2d scene restart?
问题 How do I restart cocos2d scene and clean memory after the previous one? [director replaceScene:s] is displaying pink screen. Can't get it to work. The work-around I made is below, however after closing scene this way app runs very slow and slowly reacts to touch. MainViewController.m : - (IBAction)startScene { [CCTexture2D setDefaultAlphaPixelFormat:kTexture2DPixelFormat_RGBA8888]; if ([director runningScene]) { [director end]; works = NO; } if (!works) { EAGLView *glview = [EAGLView