Groups
Groups
Sign in
Groups
Groups
iOS development
Conversations
About
Send feedback
Help
《week share》 关于CCDiretor
2 views
Skip to first unread message
没、方向感
unread,
Jan 9, 2012, 6:45:17 AM
1/9/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to iOS development
CCDirector 负责scenes之间的前进或后退。
CCDirector是singleton模式的共享的对象。它知道当前哪个scene是激活。 CCDirector以stack的方式处理
scenes的调用(当另一个scene进入的时候,暂停当前的scene,完成之后再返回原来的 scene),CCDirector 负责更换
CCScene,在 CCLayer 被push的时候,更换或结束当前的scene。另外:CCDirector 负责初始化OpenGL ES。
负责:
创建或更改场景(scenes)
设置cocos2d的configuration细节
获取视图(OpenGL, UIView, UIWindow)
暂停,继续或结束游戏
转换UIKit和OpenGL坐标
获取CCDirector对象
Reply all
Reply to author
Forward
0 new messages