【版本发布】Cocos2d-x v3.3正式发布!

这个帖子:http://www.cocoachina.com/bbs/read.php?tid-237712.html

子龙已回复。

版主有没有3.3在mac下如何搭建的教程,打算进入cocos2dx

报个Bug,3.3Final中CPP代码中调整了键盘按键的枚举(EventKeyboard::KeyCode),但是Lua中的常量(cocos2d-x-3.3\cocos\scripting\lua-bindings\script\cocos2d\Cocos2dConstants.lua)没有修改,坑了我一个晚上!

置顶帖就是了。

抱歉,对您造成了困扰,此bug已修复,十分感谢您的反馈。

https://github.com/cocos2d/cocos2d-x/pull/9531

版主你好,有时间帮忙看看这个帖子的问题吗
http://www.cocoachina.com/bbs/read.php?tid=277615

报个bug

auto a = MenuItemFont::create(“A”);
a->setFontNameObj(“fonts/disneyjuniorg.ttf”);
a->setFontSizeObj(200);
a->setPosition(200,200);

ios 平台上 MenuItemFont 设置字体无效,windows 平台确认可以,请确认此问题,谢谢!

Cocos2dx3.3 AudioEngine 在android上偶尔无声音

用3.3新的声音引擎接口:AudioEngine::play2d ,在安卓上播放音效,开始是有声音的,有时候突然就没有声音了,log如下:

12-23 12:58:49.335: D/GC(16563): <tid=16583> gcoOS_Open: create file /proc/16563/cmdline failed.
12-23 12:58:49.343: D/v_gal(16563): gcmONERROR: status=-7(gcvSTATUS_GENERIC_IO) @ gcoOS_DetectProcessByNamePid(7198)
12-23 12:58:49.343: D/GC(16563): <tid=16583> gcoOS_Open: create file /proc/16563/cmdline failed.
12-23 12:58:49.343: D/v_gal(16563): gcmONERROR: status=-7(gcvSTATUS_GENERIC_IO) @ gcoOS_DetectProcessByNamePid(7198)
12-23 12:58:49.343: D/GC(16563): <tid=16583> gcoOS_Open: create file /proc/16563/cmdline failed.
12-23 12:58:49.343: D/v_gal(16563): gcmONERROR: status=-7(gcvSTATUS_GENERIC_IO) @ gcoOS_DetectProcessByNamePid(7198)
12-23 12:58:49.343: D/GC(16563): <tid=16583> gcoOS_Open: create file /proc/16563/cmdline failed.
12-23 12:58:49.343: D/v_gal(16563): gcmONERROR: status=-7(gcvSTATUS_GENERIC_IO) @ gcoOS_DetectProcessByNamePid(7198)
12-23 12:58:49.343: D/GC(16563): <tid=16583> gcoOS_Open: create file /proc/16563/cmdline failed.
12-23 12:58:49.343: D/v_gal(16563): gcmONERROR: status=-7(gcvSTATUS_GENERIC_IO) @ gcoOS_DetectProcessByNamePid(7198)
12-23 12:58:49.367: D/GC(16563): <tid=16583> gcoOS_Open: create file /proc/16563/cmdline failed.
12-23 12:58:49.367: D/v_gal(16563): gcmONERROR: status=-7(gcvSTATUS_GENERIC_IO) @ gcoOS_DetectProcessByNamePid(7198)
12-23 12:58:49.367: D/GC(16563): <tid=16583> gcoOS_Open: create file /proc/16563/cmdline failed.
12-23 12:58:49.367: D/v_gal(16563): gcmONERROR: status=-7(gcvSTATUS_GENERIC_IO) @ gcoOS_DetectProcessByNamePid(7198)
12-23 12:58:49.367: D/GC(16563): <tid=16583> gcoOS_Open: create file /proc/16563/cmdline failed.
12-23 12:58:49.367: D/v_gal(16563): gcmONERROR: status=-7(gcvSTATUS_GENERIC_IO) @ gcoOS_DetectProcessByNamePid(7198)
12-23 12:58:49.367: D/GC(16563): <tid=16583> gcoOS_Open: create file /proc/16563/cmdline failed.
12-23 12:58:49.367: D/v_gal(16563): gcmONERROR: status=-7(gcvSTATUS_GENERIC_IO) @ gcoOS_DetectProcessByNamePid(7198)
12-23 12:58:49.367: D/GC(16563): <tid=16583> gcoOS_Open: create file /proc/16563/cmdline failed.
12-23 12:58:49.367: D/v_gal(16563): gcmONERROR: status=-7(gcvSTATUS_GENERIC_IO) @ gcoOS_DetectProcessByNamePid(7198)
12-23 12:58:49.406: D/GC(16563): <tid=16583> gcoOS_Open: create file /proc/16563/cmdline failed.
12-23 12:58:49.406: D/v_gal(16563): gcmONERROR: status=-7(gcvSTATUS_GENERIC_IO) @ gcoOS_DetectProcessByNamePid(7198)
12-23 12:58:49.406: D/GC(16563): <tid=16583> gcoOS_Open: create file /proc/16563/cmdline failed.
12-23 12:58:49.406: D/v_gal(16563): gcmONERROR: status=-7(gcvSTATUS_GENERIC_IO) @ gcoOS_DetectProcessByNamePid(7198)
12-23 12:58:49.406: D/GC(16563): <tid=16583> gcoOS_Open: create file /proc/16563/cmdline failed.
12-23 12:58:49.406: D/v_gal(16563): gcmONERROR: status=-7(gcvSTATUS_GENERIC_IO) @ gcoOS_DetectProcessByNamePid(7198)
12-23 12:58:49.406: D/GC(16563): <tid=16583> gcoOS_Open: create file /proc/16563/cmdline failed.
12-23 12:58:49.406: D/v_gal(16563): gcmONERROR: status=-7(gcvSTATUS_GENERIC_IO) @ gcoOS_DetectProcessByNamePid(7198)
12-23 12:58:49.406: D/GC(16563): <tid=16583> gcoOS_Open: create file /proc/16563/cmdline failed.
12-23 12:58:49.406: D/v_gal(16563): gcmONERROR: status=-7(gcvSTATUS_GENERIC_IO) @ gcoOS_DetectProcessByNamePid(7198)
12-23 12:58:49.429: D/cocos2d-x debug info(16563): int cocos2d::experimental::AudioEngineImpl::play2d(const string&, bool, float),243 message:create player for GetGold.mp3 fail

请问是怎么回事?谢谢!!

模块化:由C++链接器自动减小包大小,简化至只有2个库,一个是C++,一个是Lua。
怎么设置的呢?没有找到相关文档。。。。

环境:Mac XCode 6.1
平台:iOS
引擎版本:Cocos2d-x 3.3

HelloWorld:

代码和你一致。
切换字体Arial和Marker Felt,正常
切换字体大小和尺寸,正常

请确认字体文件是否正常,是否能找到。

不用开发者设置。

不用设置??? 那实现方法有相关文档吗? 学习一下。

ps:
我直接修改的 (工程路径)\frameworks\runtime-src\Classes\lua_module_register.h 把不用的都注释掉,只留下
register_cocosdenshion_module(L);
register_ui_moudle(L);
register_audioengine_moudle(L);
register_cocostudio_module(L);
再用命令行cocos deploy得到的release apk是3.05M

但是 如果我lua_module_register.h里全部都register的话,生成的apk就是4.18M

师姐,文档的“3D文档”部分 连接404了~~~

嗯。lua是这么处理的。

https://github.com/cocos2d/cocos2d-x/blob/cocos2d-x-3.3/docs/RELEASE_NOTES.md

最后一段。

心累啊:12::12::12:

请教下版主
现在创建lua新工程,android目录找不到build_native.py这个文件了,要怎么编译.so

Cocos compile或者Cocos run。

1、win32-msvc-2013-x86.bat会由于在windows7下使用cmake不能自动找出glew的include和library(居然能找出来一个libraries)而不能cmake成功,需要使用者自己手动指定这两个变量
2、unzip找不到zlib的头文件,需要使用者在项目中指定
3、有关于cocos2d-x-3.3\external\win32-specific\OpenalSoft\include这个路径,至于到底包含不包含AL这一层到底能不能出来一个主事儿来搞定这个问题的~!!!
4、即使指定了glew的include路径也会在构建cpp-tests等等项目的时候找不到GL/glew.h
5、luasocket成员重定义~!!!!(话说虽然我不用lua,但是我也想留着啊……)

VS2013社区版本使用Cocos2d-x V3.3Final的问题

ui::Scale9Sprite 为什么中间没有了:3: