《Cocos2d-x游戏开发之旅》读书笔记1:开发环境

之所以学习Cocos2d是因为它是开源的,免费,适合个人和团体开发;相比于Unity 3D若干个1500美元的授权费(尽管它也有免费版,但功能有限),价格恐怕是最大的优势了。之所以选择Cocos2d-x是因为它基于C++,在VS环境下开发,对于很多C++开发者来说入门很容易(我也曾经是一个苦逼的C++程序猿,以后也会涉及——Cocos2d-x);另外,它还是由我们中国人搞出来的哟。之所以选择《Cocos2d-x游戏开发之旅》(钟迪龙),是因为其中有个可爱的旁白小若,使得整本书的氛围幽默诙谐,读书不觉其中累,我想这个理由足够了。
其实这里对应的是本书的第一章《开学典礼》,开发环境是:VS2010,Cocos2d-2.1beta3-x-2.1.1。VS2010安装就不用多说了,C++ Coders熟悉得很;另外最好还是安装一下Visual Assist X,没有它我想很多人在VS下都无从下手。Cocos2d-x最新的版本是3.0,为了和书中环境一致(其实Cocos2d就是一个C++开发库,使用高版本应该完全没有问题),我仍然使用的是2.1版本。
再说Cocos2d-x的安装。其实Cocos2d-x是不需要安装的,它只是一个第三方库(我自己的理解),就像是BCG界面库或者TChart库一样,是在VS中安装了一个插件,使得新建项目时候可以选择Cocos2d-x工程,然后通过环境变量(这个很重要)链接相关的(库)文件到项目中的。编译 Cocos2d-x的过程和编译BCG界面库是一样的,可以将目录存放在任何位置,甚至可以在编译完成之后仅仅将需要的文件拷贝出来,直接链接进工程里面。但是在练习例子的时候,你会发现会有非常多的头文件和库文件需要链接到项目里面。不得不说的是,安装完成之后,Cocos2d-x附带有很多Demo 源码,编译之后(需要注意环境变量)会有相关的特效例子,这是非常珍贵的资源,和Qt自带的Demo一样具有很好的学习价值。
http://zhongyi.sina.com/zx/news/305265.shtml http://zhongyi.sina.com/zx/news/305260.shtml http://zhongyi.sina.com/zx/news/305259.shtml http://zhongyi.sina.com/zx/news/305256.shtml http://zhongyi.sina.com/zx/news/305253.shtml
http://zhongyi.sina.com/zx/news/305251.shtml http://zhongyi.sina.com/zx/news/305248.shtml http://zhongyi.sina.com/zx/news/305243.shtml http://zhongyi.sina.com/zx/news/305240.shtml http://zhongyi.sina.com/zx/news/305238.shtml
http://zhongyi.sina.com/zx/news/305232.shtml http://zhongyi.sina.com/zx/news/305230.shtml http://zhongyi.sina.com/zx/news/305227.shtml http://zhongyi.sina.com/zx/news/305223.shtml http://zhongyi.sina.com/zx/news/305219.shtml
http://zhongyi.sina.com/zx/news/305217.shtml http://zhongyi.sina.com/zx/news/305213.shtml http://zhongyi.sina.com/zx/news/305209.shtml http://zhongyi.sina.com/zx/news/305207.shtml http://zhongyi.sina.com/zx/news/305203.shtml
http://zhongyi.sina.com/zx/news/305202.shtml http://zhongyi.sina.com/zx/news/305197.shtml http://zhongyi.sina.com/zx/news/305194.shtml http://zhongyi.sina.com/zx/news/305191.shtml http://zhongyi.sina.com/zx/news/305187.shtml
http://zhongyi.sina.com/zx/news/305183.shtml http://zhongyi.sina.com/zx/news/305176.shtml http://zhongyi.sina.com/zx/news/305171.shtml http://zhongyi.sina.com/zx/news/305167.shtml http://zhongyi.sina.com/zx/news/305163.shtml