上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 43 下一页
摘要: 以前看过一本关于精简工作内容的书,要把工作中重复的东西都简化今天我就来简化cocos3建立.h文件和.cpp文件ClassName="TestSprite"Type="Sprite"#.h file writefile = open(ClassName+'.h', 'w')str='''#pragm... 阅读全文
posted @ 2014-12-10 23:32 yufenghou 阅读(224) 评论(0) 推荐(0)
摘要: Scene* HelloWorld::createScene(){ auto scene = Scene::createWithPhysics(); scene->getPhysicsWorld()->setDebugDrawMask(PhysicsWorld::DEBUGDRAW_AL... 阅读全文
posted @ 2014-12-10 08:19 yufenghou 阅读(160) 评论(0) 推荐(0)
摘要: Scene* HelloWorld::createScene(){ // 'scene' is an autorelease object auto scene = Scene::createWithPhysics(); scene->getPhysicsWorld()->setD... 阅读全文
posted @ 2014-12-09 20:59 yufenghou 阅读(125) 评论(0) 推荐(0)
摘要: // on "init" you need to initialize your instancebool HelloWorld::init(){ ////////////////////////////// // 1. super init first if ( !Layer::... 阅读全文
posted @ 2014-12-09 15:27 yufenghou 阅读(136) 评论(0) 推荐(0)
摘要: // on "init" you need to initialize your instancebool HelloWorld::init(){ ////////////////////////////// // 1. super init first if ( !Layer::... 阅读全文
posted @ 2014-12-07 08:28 yufenghou 阅读(167) 评论(0) 推荐(0)
摘要: // on "init" you need to initialize your instancebool HelloWorld::init(){ ////////////////////////////// // 1. super init first if ( !Layer::... 阅读全文
posted @ 2014-12-07 08:26 yufenghou 阅读(296) 评论(0) 推荐(0)
摘要: bool HelloWorld::init(){ ////////////////////////////// // 1. super init first if ( !Layer::init() ) { return false; } Si... 阅读全文
posted @ 2014-12-07 08:21 yufenghou 阅读(207) 评论(0) 推荐(0)
摘要: helloworld.cpp#include "HelloWorldScene.h"USING_NS_CC;Scene* HelloWorld::createScene(){ // 'scene' is an autorelease object auto scene = Scene::... 阅读全文
posted @ 2014-12-07 08:19 yufenghou 阅读(235) 评论(0) 推荐(0)
摘要: >d:\program files (x86)\microsoft visual studio 11.0\vc\include\xrefwrap(431): error C2440: “return”: 无法从“void”转换为“bool” (..\Classes\HelloWorldScene.c... 阅读全文
posted @ 2014-12-05 12:37 yufenghou 阅读(485) 评论(0) 推荐(0)
摘要: #include#include using namespace std;int main(){ //为了在以后便于区分,我这段main()代码叫做main1 auto func = [] { printf("%d\n",1989); }; f... 阅读全文
posted @ 2014-12-02 16:52 yufenghou 阅读(175) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 43 下一页