CCScene(是一个ccnode 一个抽象概念 除了 锚点 =(0.5f, 0.5f) ContentSize = WinSize 和ccnode没有不同 )
来源:互联网 发布:美工学徒主要干什么 编辑:程序博客网 时间:2024/05/21 17:51
#ifndef __CCSCENE_H__
#define __CCSCENE_H__
#include "base_nodes/CCNode.h"
NS_CC_BEGIN
/**
* @addtogroup scene
* @{
*/
/** @brief CCScene is a subclass of CCNode that is used only as an abstract(抽象) concept(概念).
CCScene an CCNode are almost identical(一样的) with the difference that CCScene has it's
anchor point (by default) at the center of the screen. //ccscene 锚点在屏幕中心
For the moment(重要) CCScene has no other logic(逻辑) than that, but in future releases it might have
additional(附加的) logic.
It is a good practice(实践) to use and CCScene as the parent of all your nodes.
*/
class CC_DLL CCScene : public CCNode
{
public:
CCScene();
{
m_bIgnoreAnchorPointForPosition = true;
setAnchorPoint(ccp(0.5f, 0.5f));
}
virtual ~CCScene();
bool init();
{
bool bRet = false;
do
{
CCDirector * pDirector;
CC_BREAK_IF( ! (pDirector = CCDirector::sharedDirector()) );
this->setContentSize(pDirector->getWinSize());
// success
bRet = true;
} while (0);
return bRet;
}
static CCScene *create(void);
};
NS_CC_END
#endif // __CCSCENE_H__
- CCScene(是一个ccnode 一个抽象概念 除了 锚点 =(0.5f, 0.5f) ContentSize = WinSize 和ccnode没有不同 )
- cocos2d-iphone的各种层CCNode CCScene CCLayer CCSprite的锚点及宽高位置。
- CCNode
- CCNode
- CCNode
- CCNode
- CCNode
- CCNode
- CCNode
- CCNode
- cocos2d-x 中CCScene CCLayer CCSprite CCNode
- 【cocos2d-x】CCScene CCLayer CCSprite CCNode 描述
- cocos2d-x 中CCScene CCLayer CCSprite CCNode
- cocos2d-x CCNode,CCLayer,CCScene分析
- Cocos2d-x CCNode,CCLayer,CCScene分析
- cocos2d-x 中CCScene CCLayer CCSprite CCNode
- cocos2d-x 中CCScene CCLayer CCSprite CCNode
- 一道面试题目【构造一个函数f(n)使得f(f(n))=-n】
- mpstat使用祥情
- CCTransition(scene切换时会用到 产生特效 渐隐 碎片 翻页 钟摆 涡轮 渐远 左移 百叶窗。。。)
- Map集合笔记1
- Android解析XML
- struts2下配置velocity
- CCScene(是一个ccnode 一个抽象概念 除了 锚点 =(0.5f, 0.5f) ContentSize = WinSize 和ccnode没有不同 )
- Android之Adapter用法总结
- 在AD10输出BOM表中按元件值来分类
- CCLayer(集中了触摸键盘重力消息的委托处理 子类:CCLayerRGBA、Color、Gradient-渐变颜色层 CCLayerMultiplex-内部有一个层数组可以方便的切换显示层)
- NSString去掉所有换行及空格
- 如何让自己写好的javaEE项目随tomcat的启动而启动
- jsp中的mvc开发
- Singleton(单例)
- java socket参数详解:SO_REUSEADDR