HTML5 game development open source library lufylegend1.4.1 released

黄舟
Release: 2017-03-02 13:53:25
Original
1665 people have browsed it

To download the lufylegend.js library and API documentation, please click the link below

http://lufylegend.com/lufylegend

1. Update content of version 1.4.1

##1, Fixed some low-level bugs2, Added hitTest method, used to detect rectangular collision
3, added hitTestArc method, used to detect circular collision
4, added Array.prototype.indexOf method for IE browser
5, added LRectangle rectangular class
6, added LQuadTree quadtree class, user quick collision detection
7, added some connector encapsulation of Box2dWeb
8, added flip function for LBitmap object, width attribute is not It can be used directly. When changing the width of the LBitmap object, the scaleX attribute should be used. When obtaining the width, use the getWidth() method
9, which extends the LAnimation class and adds static playback, reverse playback and mirror playback

Second, regarding the encapsulation of the new Box2dWeb connector, you can see the demo below, which adds various connectors

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



three , for application examples of LRectangle rectangle andLQuadTree quadtree, you can see the following two tests to compare the efficiency of the quadtree

1, no quadtree is applied, 200 rectangles collide in pairs

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

##2, apply quadtree, 400 rectangles Two collisionhttp://lufy.netne.net/lufylegend-js/lufylegend-1.4/QuadTree/test2.html

Four, finally, I made a development video, which is 28 minutes long

Video:html5 development of fruit picking game

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

##Video:html5 development fruit picking game 2

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

##Video:html5 development fruit picking game threehttp://lufy.netne.net/movie.php?m=XNDI4MDc1NDky


The above is the content released by the HTML5 game development open source library lufylegend1.4.1. For more related content, please pay attention to the PHP Chinese website (m.sbmmt.com)!


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!