Maison > interface Web > Tutoriel H5 > le corps du texte

HTML5游戏开发开源库件lufylegend1.4.1发布

黄舟
Libérer: 2017-03-02 13:53:25
original
1697 Les gens l'ont consulté

lufylegend.js库件的下载及API文档请点击下面链接

http://lufylegend.com/lufylegend

一,1.4.1版更新内容

1,修正了一些低级bug
2,增加了hitTest方法,用于检测矩形碰撞
3,增加了hitTestArc方法,用于检测圆形碰撞
4,为ie浏览器增加了Array.prototype.indexOf方法
5,增加了LRectangle矩形类
6,增加了LQuadTree四叉树类,用户快速碰撞检测
7,增加了Box2dWeb的一些连接体的封装
8,为LBitmap对象增加了翻转功能,width属性不再可以直接用,改变LBitmap对象的宽度时,应使用scaleX属性,获取宽度时使用getWidth()方法
9,扩展了LAnimation类,增加了静态播放,倒序播放和镜像播放

二,关于新增Box2dWeb连接体的封装,可以看下面的demo,里面添加了各种连接体

http://lufy.netne.net/lufylegend-js/lufylegend-1.4/box2d/sample01/index9.html



三,LRectangle矩形和LQuadTree四叉树的应用举例,可以看下面两个测试,对比一下四叉树的效率

1,没有应用四叉树,200个矩形两两碰撞

http://lufy.netne.net/lufylegend-js/lufylegend-1.4/QuadTree/test.html

2,应用四叉树,400个矩形两两碰撞

http://lufy.netne.net/lufylegend-js/lufylegend-1.4/QuadTree/test2.html

四,最后,做了个开发视频,全长28分钟

视频: html5开发接水果小游戏 一

http://lufy.netne.net/movie.php?m=XNDI4MDM3NjE2

视频: html5开发接水果小游戏 二

http://lufy.netne.net/movie.php?m=XNDI4MDU0MDE2

视频: html5开发接水果小游戏 三

http://lufy.netne.net/movie.php?m=XNDI4MDc1NDky


 以上就是HTML5游戏开发开源库件lufylegend1.4.1发布的内容,更多相关内容请关注PHP中文网(m.sbmmt.com)!


Étiquettes associées:
source:php.cn
Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!