01 2014 档案

摘要://WidgetSlideListView.hclass WidgetEaseInListView : public cocos2d::gui::UIListView{public: static WidgetEaseInListView* create(cocos2d::gui::UIListView* pAnthor=NULL); void doEaseIn(bool bRight2Left=true);protected: virtual void copySpecialProperties(cocos2d::gui::Widget* model);protected: virtual 阅读全文
posted @ 2014-01-26 14:30 MrBlue 阅读(1610) 评论(0) 推荐(0) 编辑
摘要:效果图//ShadowLayer.hclass ShadowLayer : public CCLayer{protected: ShadowLayer() :m_pRender(NULL) ,m_pShadow(NULL) {} ~ShadowLayer() { CC_SAFE_RELEASE(m_pRender); CC_SAFE_RELEASE(m_pShadow); }public: static ShadowLayer* create(CCNode* pRender,const CCPoint& ptOffse... 阅读全文
posted @ 2014-01-26 13:32 MrBlue 阅读(2924) 评论(4) 推荐(0) 编辑
摘要:昨天吃饭看见同事演示他做的翻牌效果,感觉不错,我心血来潮也来搞个,很简单直接上代码。class FlipCard : public CCNode{public: CREATE_FUNC(FlipCard); virtual bool init() { if (CCNode::init()) { m_pFront = CCNode::create(); m_pBack =CCNode::create(); m_pBack->setVisible(false); a... 阅读全文
posted @ 2014-01-12 21:12 MrBlue 阅读(403) 评论(0) 推荐(0) 编辑