Cocos2d-JS 3.2 發布,開源 2D 游戲框架

jopen 9年前發布 | 11K 次閱讀 Cocos2d-JS

Cocos2d-JS 3.2 發布了,該版本值得關注的改進內容包括:

  • 分離渲染邏輯重構 Web 引擎,目前已經完成架構級別的重構,帶來非常好的性能提升,特別是在移動瀏覽器上

  • 重構 Web 引擎的分辨率適配和音頻引擎的 polyfilled 適配邏輯,帶來更好的兼容性和可擴展性

  • 支持和 JSB 模塊化

  • 增加重啟游戲的特性和修復 AssetsManager 嚴重 bug,可輕松更新資源和腳本

  • Bound all missed chipmunk API in JSB, this greatly improved physics game support in Cocos2d-JS.

Canvas 渲染模型性能測試

注意

使用 JSB 構建有如下限制:

  • [Android build] 建議 NDK 版本 r10c, 如果你無需兼容 Android 5.0,則可使用 r9d,其他 NDK 不支持

  • [iOS build] Xcode 版本必須是 5.1.1 +

  • [Web code obfuscation] JRE 或者 JDK 版本必須是 1.6 or 1.7

下載

工作流

  • Cross platforms developers can use Cocos Console to create projects, boost their development with web version engine and deploy games onto all native platforms and all browsers with Cocos Console.

  • Casual web game developers can download the Lite Version and start to develop just like using other web frameworks (e.g. jQuery).

更多信息

升級已有項目

  1. Download the Cocos2d-JS v3.2 package.

  2. Upgrade cocos command withsetup.py.

  3. Create a new project withcocos newcommand.

  4. Replace the "src", "res", "index.html", "project.json", "main.js" etc with your old project.

  5. Then you may need to refer to the upgrade guide to solve some API change issues.

關于 Cocos2d 家族

  • Cocos2d-JS v3.2 uses Cocos2d-x v3.3 as base of JSB solution

  • Cocos2d-JS v3.2 is compatible with Cocos Code IDE v1.1.0

  • Cocos2d-JS v3.2 is compatible with Cocos Studio v1.2 - v1.6, Cocos Studio 2 support have been removed because flat buffer binary file can't be parsed in JS, we will support Cocos Studio 2 in v3.3 with a JSON format parser.

其他鏈接:

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!