摘要: #include "cocos-ext.h"USING_NS_CC_EXT; //框中需要显示的label CCLabelTTF *label = CCLableTTF::create(...); label->setAnchorPoint(ccp(0.5f,0.5f)); CCScale9Sprite* base = CCScale9Sprite::create("jiaoxue_duihuaqipao.png"); base->addChild(label); base->setContentSize(CCSizeMake( lab 阅读全文
posted @ 2014-01-17 15:34 、拂晓 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 首先去下载JsonCpp这个库,放到项目的Class目录下,再在项目中添加进来。然后、、、然后看图。。。//JsonTestLayer.h#pragma once#include "json/json.h"#include "cocos2d.h"USING_NS_CC;class JsonTestLayer : public CCLayer{public: CREATE_FUNC(JsonTestLayer); bool init();protected:}; //JsonTestLayer.cpp#include "JsonTestLayer 阅读全文
posted @ 2014-01-17 15:19 、拂晓 阅读(1024) 评论(0) 推荐(0) 编辑
摘要: #include "cocos-ext.h"using namespace cocos2d::extension;class TableViewTestLayer: public CCTableViewDataSource, public CCTableViewDelegate{public: /////////////////////////////////////////////////////////////////////////////////////////// // CCScrollViewDelegate virtual void scrollViewDid 阅读全文
posted @ 2014-01-17 15:05 、拂晓 阅读(1552) 评论(0) 推荐(0) 编辑
摘要: static CCOrbitCamera* create(float t, float radius, float deltaRadius, float angleZ, float deltaAngleZ, float angleX, float deltaAngleX);旋转的时间,起始半径,半径差,起始z角,旋转z角差,起始x角,旋转x角差 //正面卡牌开始翻转 BaseSprite *openedCard = (BaseSprite*)cardItem->getChildByTag(Tag_CardOpened); openedCard->runAction(CCSequen 阅读全文
posted @ 2014-01-17 14:42 、拂晓 阅读(874) 评论(0) 推荐(0) 编辑