How to incorporate storyboards into a cocos2d 2.0 project?

后端 未结 3 1443
再見小時候
再見小時候 2020-12-30 16:03

I have made a project in cocos2d 2.0 and would like to incorporate a main menu using storyboards.

I have tried Jerrod Putnam\'s tutorial here on tinytimgames.com (

3条回答
  •  伪装坚强ぢ
    2020-12-30 16:22

    Thanks to bagelboy, I have only one update:

        // Create the OpenGL view that Cocos2D will render to.
        CCGLView *glView = [CCGLView viewWithFrame:self.view.frame
                                       pixelFormat:kEAGLColorFormatRGB565
                                       depthFormat:0
                                preserveBackbuffer:NO
                                        sharegroup:nil
                                     multiSampling:NO
                                   numberOfSamples:0];
    

    For my instance, [[[UIApplication sharedApplication] keyWindow] bounds] did not work, and I used self.view.frame

提交回复
热议问题