基于Cocos2d-x 4.0,打造易用稳定的Cocos2d-x lua引擎。
注意: win32 LuaGameRunner 使用 vs2019 编译,如果你的系统没有安装 vs2019,需要安装 vs2019 运行库方能正确启动。运行库下载地址:Microsoft Visual C++ Redistributable for Visual Studio 2019 x86, Microsoft Visual C++ Redistributable for Visual Studio 2019 x64。 注意: Mac LuaGameRunner需要自行替换app签名:
$ sudo spctl --master-disable $ sudo xattr -rd com.apple.quarantine /xxx/runner/bin/LuaGameRunner.app $ sudo codesign --force --deep --sign - /xxx/runner/bin/LuaGameRunner.app
ccui.Button:setTitleOffset
接口。注意:win32 LuaGameRunner 使用 vs2019 编译,如果你的系统没有安装 vs2019,需要安装 vs2019 运行库方能正确启动。 Mac LuaGameRunner需要自行替换app签名: $ sudo spctl --master-disable $ sudo xattr -rd com.apple.quarantine /xxx/Cocos2d-Lua-Community/tools/runner/bin/LuaGameRunner.app $ sudo codesign --force --deep --sign - /xxx/
[新增] win32 系统字体支持描边。
[改进] Spine 绑定setTimeScale,setTrackTime,getAnimationEnd,getAnimationStart。 [改进] cc.Label 下划线渲染改进,连续的下换线之间至少1像素的间隔。 [改进] win32 重载FileUtils::writeDataToFile,正确设置文件创建时间。 [改进] SpriteFrameCache中正确判断isSpriteFramesWithFileLoaded,优化plist性能。 [改进] fgui的GGraph添加setPolygonPoints实现画多边形。 [改进] TextureCache::addImageAsync添加pixelFormat参数,同时display.addImageAsync添加默认的pixelFormat参数。 [改进] cc.Node去掉无用的_setLocalZOrder。 [改进] fgui 的FUILabel添加letterSpacing支持。 [改进] s_function_ref_id回收池,避免爆掉。 [改进] GuiConstants.lua中的ccui变量统一风格。 [改进] 去掉texturepacker plist的的aliases,eraseFrame缓存数据修正,改进缓存性能。 [改进] Node:setNodeEventEnabled优化,避免重复执行。 [改进] 改名CHANGELOG和VERSION,避免新版mac xcode编译错误。 [改进] FileUtils:getDataFromFile 绑定回调函数。 [改进] 优化AppBase:exit(),不需要os.exit()了。 [改进] Mac的getWritablePath改到 ~/Library/Application Support/BundleIdentifier 下。 [改进] cc.Label TTF 默认关闭抗锯齿,setTTFScaleFactor能提供更好的字体多分辨率适配效果。
[修正] Apple Silicon运行崩溃。 [修正] cc.Sprite 使用自定义shader时,如果没有设置u_texture1,Mac的metal运行错误。 [修正] 同步3.7.x改进,修正事件分发对ProtectedNode顺序不确定的bug。 [修正] fgui进度条和滑动条显示科学计数法的bug。 [修正] fgui的slider在min value不为0时,显示错误的bug。 [修正] lua binding中ResourceData返回值的绑定。 [修正] display.lua中错误的 cc.TEXTURE2D_PIXEL_FORMAT_xxx. [修正] editbox setTTFScaleFactor后nativeFont字体大小不对的问题。 [修正] tolua.fullgc。 [修正] ListView::interceptTouchEvent,正确获取_curSelectedIndex。 [修正] FUISprite::initWithSpriteFrame 没有刷新的bug。 [修正] cc.Label enableBold 错误。 [修正] Tiled map 的ObjectGroup-position-Offset解析错误。 [修正] Android videoplayer bugfix。 [修正] CCSprite没有重置 unflippedOffset的bug。 [修正] win32 宏snprintf修正,避免有可能产生的随机崩溃。 [修正] EditBox build error on Mac OS 12.x。 [修正] fgui UIPackage::loadAtlas 预加载bug。
[新增] add support for mac m1. [新增] audio support mp3 audio file. [新增] add cc.backendProgramType define to RendererConstants.lua. [新增] FairyGUI binding completion.
[改进] addSpriteFramesWithFile binding worning fix. [改进] openssl update to 1.1.0l. [改进] glfw update to 3.3.4. [改进] remove updateShaders, builtinProgram is faster then new a program. [改进] Win32 use VSync, old sleep may make frame skipping. [改进] cc.FileUtils:isFileExistInternal() work with chinese directory. [改进] Win32 LuaGameRunner work with chinese directory. [改进] Spine Allow ownership of AttachmentLoader to be passed to SkeletonBinary and SkeletonJson. [改进] RenderTexture render sync, async may crash in may case with render cmd was freed. [改进] Spine add binding api: setDefaultMix. [改进] TMX add convert for ellipse object. [改进] add display.newSector. [改进] optimized plist loading. [改进] Mat4_translate binding fix, camera's AdditionalTransform fix. [改进] FairyGUI remove windowSizeListener, it may do evil on PC game. [改进] TMX object layer's tile animation key use id, and fix schedule start or stop check. [改进] FairyGUI 优化fgui纹理加载. [改进] Culling work with user camera and fix camera scaled culling error. [改进] add binding for FairyGUI FUISprite. [改进] AsyncTCP support host use domain name. [改进] Android project add PROP_NDK_VERSION and PROP_BUILD_TOOLS_VERSION.
[修正] cc.utils:findChild() & add cc.utils:gettime() binding fix. [修正] revert GLView-desktop fullscreen, center use current monitor. [修正] FairyGUI GLoader3D fix Spine node pos. [修正] FairyGUI official bugfix sync. [修正] binding fix for getBuiltinProgram. [修正] cc.Sprite:setTexture never change custom shader setting. [修正] FontFreeType remove force mono render, it not ok for all ttf font. [修正] fix jpeg header file missmatch. [修正] some bugfix sync from 3.7.x [修正] some bugfix snc from Cocos2d-x. [修正] FairyGUI send move event correctly. [修正] 修复调用display.newScale9Sprite时的参数和新版引擎不兼容的bug. [修正] fix FairyGUI GTreeNode create 接口读取lua参数取值错误. [修正] CCLabel correctly set _maxLineWidth when use TTFScaleFactor. [修正] CCActionTimeline sync 3.7.x bugfix. [修正] TMX getPositionAt use float.
[Overview] First release of Cocos2d-Lua-Community, a improved of Cocos2d-x 4.0, and easy to use Lua game engine. The Lua "frameworks" compatible with Quick-Cocos2dx-Community v3.7.x. [new] New developed "LuaGameRunner", replace old Player. Keep It Simple and Stupid. [new] iOS and Mac support metal. [new] Use CMake for all platforms.
[新增] LuaGameRunner添加Log to File功能。 [新增] 集成lua-protobuf(https://github.com/starwing/lua-protobuf) [新增] TiledMap添加collection of images类型的tileset支持。 [新增] TiledMap添加对编辑器碰撞数据的解析支持。 [新增] Linux支持。(注:EditBox实现不完整) [新增] shader添加setUniformXXX绑定函数。 [新增] 添加LuaLoadChunksFromZIP绑定。 [新增] NodeEx.lua添加对鼠标事件的支持。 [新增] Mac添加系统字体描边支持。 [新增] 新加一个异步tcp的实现,用来替代SimpleTCP和LuaSocket。 [新增] 新加network.createHTTPDownload,直接下载到文件。
[改进] 优化Lua搜索路径,去掉系统路径。 [改进] 同步3.7中Luaj的改进。 [改进] DragonBone的类的public变量改为Lua的set/get封装方式。 [改进] FairyGUI runtime和Luabinding的大量改进。 [改进] Spine runtime同步到3.8最新代码。 [改进] 同步4.7对ccui.RichText的排版修正。 [改进] RenderTexture内存泄漏和crash修正。 [改进] auto batch MaterialID 排序修正。 [改进] Win32 fix for FileUtils::listFilesRecursively returning no results. [改进] Fix Label::draw skips drawing when batchNodes are more than one and have empty quads. [改进] ListView innercontainer size fix, when inner item was scaled [改进] 改进RDAudio::pause(),优化Android下暂停的性能损耗。 [改进] Android 显示刘海区域。 [改进] pb解析double和float再优化,fix android release版本crash. [改进] Mac和Linux使用64位luajit,解决最新mac系统(PANIC: unprotected error in call to Lua API (not enough memory)) [改进] update luajit and tool to luajit master commit 2020.7.13 [改进] FileUtils的writeStringToFile绑定添加异步回调。
[修正] NodeEx.lua的触摸事件点击只调用Node的hitTest,避免调用ccui.Widget的hitTest产生不正确的判断。 [修正] iOS和mac的archive不弹出Organizer 界面的问题。 [修正] ccui.Button 设置字体顺序导致的size不对。 [修正] 部分Android模拟器的Directx模式下,红屏的问题。 [修正] DrawNode和label未响应自定义blendFunc. [修正] lua_spSkeletonData中的内存泄漏。 [修正] Mac的LuaGameRunner可ctrl+c 复制log。 [修正] mac editbox crash fix when dealloc. [修正] Android权限申请crash fix。 [修正] Cocos2d.lua sync fix from 3.7
[新增] FairyGUI UIConfig、UIObjectFactory、GSlider、GProgressBar等lua接口绑定。 [新增] TMXTiledMap绑定getTilesets。 [新增] spine event luabinding 同时导出当前值和默认值。 [新增] Image同步3.7的getColorAt函数绑定。 [新增] 音频输出添加aac支持。 [新增] TTF加入分辨率自适应开关,自动用合适的字体大小进行渲染,保持高清显示。 [新增] LayerColor添加自定义shader支持。 [新增] EventTouch新增setTouches绑定。
[改进] FairyGUI runtime 同步。 [改进] Spine 3.8 runtime 同步。 [改进] 同步3.7 iOS音频被电话打断的恢复处理。 [改进] OpenAL库去dlopen。 [改进] cmake寻找iconv用ICONV_LIBRARY。 [改进] iOS & Mac remove respondsToSelector & performSelector。 [改进] update luajit to 2021.1.12。 [改进] utils绑定captureNode,captureScreen,并支持返回image对象。 [改进] 去framework.protobuf路径修正,注意导出工具也需要对应修改。 [改进] 同步3.7的ClippingRectangleNode嵌套,RenderTexture混用渲染异常修正。
[修正] FairyGUI runtime 各种填坑。 [修正] CocosStudio 骨骼skin 渲染crash fix。 [修正] Android pb 解析crash fix。 [修正] Metal截图回掉crash fix。 [修正] TMX 的tsx嵌套解析修正。 [修正] TMX 帧动画解析以及渲染修正。 [修正] TMX 修改黑线处理方式,防止纹理抖动。 [修正] TMX objectgroup解析修正。 [修正] 修正创建工程时,iOS 横竖屏参数设置无效。 [修正] apple的getPathForDirectory实现修正。 [修正] audio stop潜在内存泄漏修正。 [修正] 修正freetype渲染simsun.ttc的小字体时花屏的bug。 [修正] Luaj 回调lua自动在cocos thread中运行,解决回调crash。