¡@

Home 

2014/10/15 ¤U¤È 10:06:48

iphone Programming Glossary: director

Retina and Non Retina Graphics in Cocos2d

http://stackoverflow.com/questions/10793614/retina-and-non-retina-graphics-in-cocos2d

either un commenting or adding the below code into your appDelegate.m .mm file in the applicationDidFinishLaunching if director enableRetinaDisplay YES CCLOG @ Retina Display Not supported Also you need to add hd suffix image files for the retina display..

cocos2d 2.0-rc2: end the director and restart

http://stackoverflow.com/questions/11037134/cocos2d-2-0-rc2-end-the-director-and-restart

2.0 rc2 end the director and restart I have a cocos2d powered game that uses UIKit menues so I only use the framework for one viewcontroller which.. use the framework for one viewcontroller which is the game itself. Also it only has one scene. Since cocos2d 2.0 the director itself is a UIViewController subclass so I just push it in my MenuViewController when the user taps a start button void.. so I just push it in my MenuViewController when the user taps a start button void startGameButtonPressed CCDirectorIOS director CCDirectorIOS CCDirector sharedDirector Create an CCGLView with a RGB565 color buffer and a depth buffer of 0 bits self.glView..

Integrating Cocos2D with UIKit

http://stackoverflow.com/questions/5566055/integrating-cocos2d-with-uikit

uikit cocos2d share improve this question There's a demo in Cocos2d called AttachDemo where it attaches a Cocos2d director to a UIView . If you check the method called void runCocos2d . If you look at its code it does the following void runCocos2d.. if state kStateEnd EAGLView glview EAGLView viewWithFrame CGRectMake 0 0 250 350 mainView addSubview glview CCDirector director CCDirector sharedDirector director setOpenGLView glview CCScene scene CCScene node id node LayerExample node scene addChild.. EAGLView viewWithFrame CGRectMake 0 0 250 350 mainView addSubview glview CCDirector director CCDirector sharedDirector director setOpenGLView glview CCScene scene CCScene node id node LayerExample node scene addChild node director runWithScene scene..

Cocos2d - Setting Device/Screen Orientation

http://stackoverflow.com/questions/5792706/cocos2d-setting-device-screen-orientation

And modify AppDelegate.m as well. #if GAME_AUTOROTATION kGameAutorotationUIViewController director setDeviceOrientation kCCDeviceOrientationPortrait #else director setDeviceOrientation kCCDeviceOrientationLandscapeRight..