cocos2d CCScrollView 解析

cocos2d CCScrollView 解析,第1张

概述CCNode 重要属性: m_obAnchorPoint = CCPointZero m_obPosition = CCPointZero #"whole screen objects. like Scenes and Layers, should set m_bIgnoreAnchorPointForPosition to true"m_bIgnoreAnchorPointForPo

CCNode 重要属性:

m_obAnchorPoint = CCPointZero  m_obposition = CCPointZero #"whole screen objects. like Scenes and Layers,should set m_bIgnoreAnchorPointForposition to true"m_bIgnoreAnchorPointForposition = falsem_obContentSize = CCSizeZero

cclayer 和 CCScene 继承与 CCNode
并更改了上述部分属性:

**cclayer:** m_bIgnoreAnchorPointForposition = true setAnchorPoint = ccp(0.5,0.5) m_obContentSize = winSize#cclayer加入了对外部事件的处理如触摸,重力,菜单按钮。#默认cclayer不处理外部事件 m_btouchEnabled(false),m_bAccelerometerEnabled(false),m_bKeypadEnabled(false),##CCScene:## m_bIgnoreAnchorPointForposition = true setAnchorPoint = ccp(0.5,0.5) m_obContentSize = winSize

CCScrollVIEw 继承自 cclayer ,则继承下来的属性又 锚点为m_obAnchorPoint = ccp(0.5 0.5) 并且ignoreAnchorPointForposition = true

总结

以上是内存溢出为你收集整理的cocos2d CCScrollView 解析全部内容,希望文章能够帮你解决cocos2d CCScrollView 解析所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1051421.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存