cocos2d-x-3.0 guides.txt
1.设置wp8 屏幕方向(网上找了好久没找到怎么设置,最后自己试出来了)
Director::getInstance()->getOpenGLView()->UpdateOrientation(Windows::Graphics::Display::DisplayOrientations::Portrait);
2.坑爹的WP8必须设置字体名
3.CCLabelTTF可以退休了, 我写的CCImage For Win32也可以退休了,必须直接使用Label, 新的Label可在Win32下可直接获取
到字体名,其他平台尚未测试
4.CCControlSwitch.cpp bug fixed
5.FileUtils依然需要手动加密
6.Label, 指定字符串创建后setDimensions后定位有问题。方案不使用setDimensions,每当文字发生变化时便重新定位
(origin:277.000000,909.500000, size:526.000000,101.000000)
7.Windows下直接用Visual Studio 2012编译即可。
8.创建跨平台工程:
create cross platform project:
(0)tools: python-2.7.6.amd64.msi, apache-ant-1.9.3-bin.zip
(1)install phtyon2.7.6
(2)run setup.py to setup env: COCOS_CONSOLE_ROOT, NDK_ROOT, ANDROID_SDK_ROOT, ANT_ROOT
and add COCOS_CONSOLE_ROOT to path manually.
(3)WIN+R cmd Enter
cocos new theapp -p com.unknow.theapp -l cpp -d D:\develop\game_develop\projects\
android build: step 1. run build_native.py to build c++
step 2. run eclipse to run android app
android env pitfalls:
(1)ANDROID_SDK_HOME=D:\develop\game_develop\android_devenv\adt-bundle-windows-x86_64-20131030\sdk
the android virtual device‘s Preference Path
(2)when import android project use ADT, please select project root directory, and unselect all plugin projects
at next dialog, then press ‘finish‘ button.
9.Mac OS X下编译ios工程注意:在Windows下用cocos命令创建的跨平台工程,
目前需手动自己拷贝prebuild\ios目录的库文件: curl,freetype2,jpeg,png,tiff,webp,websockets
原文地址:http://blog.csdn.net/xseekerj/article/details/39482769