cocos2d-x-3.x guides

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 32位, 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 thisappx -p com.thisappx.app_0 -l cpp -d D:\develop\gamedev\projects\

   cocos new thisappx -p com.thisappx.app_0 -l lua -d D:\develop\gamedev\lua-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\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



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章