标题有点唬人,但如果还在用2.x的朋友,升级到2.26是有必要的。因为luajit不支持64bit,因此在ios 64bit上只能用lua,不能用luajit了。cocos2d-x2.26为此专门将3.x上的lua加密移植了过来。详细可以看这里:http://www.cocos2d-x.org/news/386
顺便帖一下32bit和64bit的不一样
| Integer data type | ILP32 size | ILP32 alignment | LP64 size | LP64 alignment |
|---|---|---|---|---|
| | 1 byte | 1 byte | 1 byte | 1 byte |
| | 1 byte | 1 byte | 1 byte | 1 byte |
| | 2 bytes | 2 bytes | 2 bytes | 2 bytes |
| | 4 bytes | 4 bytes | 4 bytes | 4 bytes |
| | 4 bytes | 4 bytes | 8 bytes | 8 bytes |
| | 8 bytes | 4 bytes | 8 bytes | 8 bytes |
| pointer | 4 bytes | 4 bytes | 8 bytes | 8 bytes |
| | 4 bytes | 4 bytes | 8 bytes | 8 bytes |
| | 4 bytes | 4 bytes | 8 bytes | 8 bytes |
| | 4 bytes | 4 bytes | 8 bytes | 8 bytes |
| | 4 bytes | 4 bytes | 8 bytes | 8 bytes |
| | 8 bytes | 4 bytes | 8 bytes | 8 bytes |
| | 8 bytes | 4 bytes | 8 bytes | 8 bytes |
| Floating-point type | ILP32 size | LP64 size |
|---|---|---|
| | 4 bytes | 4 bytes |
| | 8 bytes | 8 bytes |
| 4 bytes | 8 bytes |
本文介绍了Cocos2d-x 2.26版本的重要更新内容,包括为解决luajit在iOS 64位设备上无法使用的问题而引入的lua加密功能,并提供了从早期版本手动升级到2.26的方法。
4503

被折叠的 条评论
为什么被折叠?



