html5开源引擎lufylegend1.8.0版发布,下载包内含开发示例已超过30个。
lufylegend.js引擎官网
http://lufylegend.com/lufylegend
lufylegend.js引擎在线api文档链接
http://lufylegend.com/lufylegend/api
github项目地址
https://github.com/lufylegend/lufylegend.js
一,1.8.0版更新内容
引擎部分
1,解决了android4.0智能手机loading页面无法清除的bug
2,增加了lanimation的子类lanimationtimeline,并提供了setlabel,play,stop,gotoandplay,gotoandstop函数
3,增加了ltweenlite删除
4,增加了连续缓动
5,完善了全屏效果,增加了exact_fit,show_all等全屏时的缩放模式,详细用法请看api文档
6,增加了lglobal.setstagesize,将canvas缩放为规定大小
7,为lsprite对象增加了getchildindex和setchildindex函数
8,为lsprite对象和lbitmap对象增加了blendmode属性
9,增加了2个loading效果
引擎目前的几个loading效果如下
10,增加了ltransitionmanager,内含9钟画面切换效果
效果连接http://lufylegend.com/demo/examples/ltransitionmanager.html
11,完善了lsprite类的getwidth和getheight函数
12,优化了lmedia的事件
13,整理了引擎结构lobject和lsprite之间,增加了leventdispatcher,ldisplayobject,linteractiveobject等类,为leventdispatcher类增加了dispatchevent函数,利用dispatchevent可以方便实现自定义事件
14,重写了lsprite类和ltextfield的缩放,透明,旋转的核心部分代码,修改了三种效果逻辑上的一些bug,使得三种效果更完善。
15,考虑到canvas位置,将手机的touchmove对象变换为canvas,之前是document
16,将非核心部分代码与引擎分离,提供了多种版本
ui部分
1,增加了可拖动窗口
2,增加了range
目前引擎自带ui共有如下几种
最后,完善了api文档
二,lufylegend.js引擎开发举例1,gemgem宝石碰碰
http://lufylegend.com/demo/gemgem
2,数独游戏http://lufylegend.com/demo/sudoku
3,推箱子游戏http://lufylegend.com/demo/box
4,愤怒的小鸟http://lufylegend.com/demo/angrybirds/index.html
5,接水果小游戏http://lufylegend.com/demo/getfruit/index.html
6,rpghttp://lufylegend.com/demo/rpg/index.html
更多游戏demo请看下面的连接
http://lufylegend.com/lufylegend/demo
三,讨论交流如果你在使用该引擎的时候发现了问题,或者对引擎有什么好的建议,欢迎到官方论坛发帖,或者通过博客跟我留言
以上就是html5开源游戏引擎lufylegend1.8.0发布的内容。