axmol/docs/RELEASE_NOTES.md

2.7 KiB

Table of Contents generated with DocToc

Cocos2d-x 3.14 Release Notes

Misc Information

v3.14

New features

  • Adds Spine binary file format support
  • Uses luajit 2.1.0-beta2 for all platforms
  • Adds new actions: ResizeBy and ResizeTo
  • Can disable multi-touch on Android
  • Sprite supports slice9 feature
  • Action adds a method to get the number of actions running on a given node with specific tag
  • Can set Button's title label
  • EditBox adds horizontal text alignment
  • Supports game controller on Mac

Features in detail

Uses luajit 2.1.0-beta2 for all platforms

In previous it is not convenient to generate luajit 64bit bytecode. You need to generate the bytecode in real devices, which means you should generate luajit 64bit bytecode on iOS 64bit devices.

Now, we can generate luajit 64bit bytecode on Mac OS X, windows or linux, so we change to use luajit for all platforms. If you use cocos command with -m release, it will generate bytecode automatically. And it will put 64bit bytecode into 64-bit folder. One exception is that, it doesn't generate luajit bytecode on linux, we don't know whether to generate 32bit or 64bit byte codes. So you should generate luajit bytecode yourself by using cocos luacompile command. Please refer to the help information of cocos luacompile -h for detail usage.

The generated bytecodes architecture are:

Platform generate 32bit luajit bytecode generate 64bit luajit bytecode
iOS yes yes
Android yes if APP_ABI not only includes arm64-v8a, such as APP_ABI := arm64-v8a yes if APP_ABI includes arm64-v8a
Mac not yes
Windows yes no
Linux no no

Sprite supports slice9 feature

Now Sprite supports slice9 feature, you can use it like:

auto sprite = Sprite::create(...);
// set center rect
// the origin is top-left
sprite->setCenterRectNormalized(Rect(x, y, width, heigh));

More detail information please refer to the comments of Sprite::setCenterNormalized().