上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 33 下一页
  2016年3月10日
摘要: 发现问题:监听代码部分不能在onEnter()段书写 bool HelloWorld::init() { if ( !Layer::init() ) { return false; } visibleSize=Director::getInstance()->getVisibleSize(); au 阅读全文
posted @ 2016-03-10 16:23 baraka 阅读(122) 评论(0) 推荐(0) 编辑
摘要: bool HelloWorld::init() { if ( !Layer::init() ) { return false; } visibleSize = Director::getInstance()->getVisibleSize(); Vec2 origin = Director::get 阅读全文
posted @ 2016-03-10 11:29 baraka 阅读(285) 评论(0) 推荐(0) 编辑
  2016年3月9日
摘要: bool HelloWorld::init() { if ( !Layer::init() ) { return false; } Size visibleSize = Director::getInstance()->getVisibleSize(); Vec2 origin = Director 阅读全文
posted @ 2016-03-09 23:08 baraka 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 发现问题:update()函数不能用virtual前缀 主: bool HelloWorld::init() { if ( !LayerColor::initWithColor(Color4B(255,255,255,255))) { return false; } for (int i=0;i<1 阅读全文
posted @ 2016-03-09 10:16 baraka 阅读(163) 评论(0) 推荐(0) 编辑
  2016年3月8日
摘要: MoveBalls.hpp: #ifndef MoveBalls_hpp #define MoveBalls_hpp #include <stdio.h> #include "cocos2d.h" #include "Ball.hpp" USING_NS_CC; class MoveBalls:pu 阅读全文
posted @ 2016-03-08 20:45 baraka 阅读(186) 评论(0) 推荐(0) 编辑
  2016年3月1日
摘要: rapidjson::Document d; d.Parse<0>(FileUtils::getInstance()->getStringFromFile("data_2.json").c_str()); log("%s",d[(int)0]["name"].GetString()); 阅读全文
posted @ 2016-03-01 23:05 baraka 阅读(354) 评论(0) 推荐(0) 编辑
摘要: auto doc=new tinyxml2::XMLDocument(); doc->Parse(FileUtils::getInstance()->getStringFromFile("data_1.xml").c_str()); auto root=doc->RootElement(); for 阅读全文
posted @ 2016-03-01 22:48 baraka 阅读(192) 评论(0) 推荐(0) 编辑
摘要: bool HelloWorld::init() { if ( !Layer::init() ) { return false; } FileUtils *fu=FileUtils::getInstance(); ValueMap vm=fu->getValueMapFromFile("data.pl 阅读全文
posted @ 2016-03-01 22:29 baraka 阅读(273) 评论(0) 推荐(0) 编辑
摘要: bool HelloWorld::init() { if ( !Layer::init() ) { return false; } auto fu=FileUtils::getInstance(); //FILE *f=fopen(fu->fullPathFromRelativeFile("data 阅读全文
posted @ 2016-03-01 22:10 baraka 阅读(391) 评论(0) 推荐(0) 编辑
摘要: bool HelloWorld::init() { if ( !Layer::init() ) { return false; } Size visibleSize = Director::getInstance()->getVisibleSize(); UserDefault::getInstan 阅读全文
posted @ 2016-03-01 21:43 baraka 阅读(171) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 33 下一页