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
http://lufy.netne.net/movie.php?m=XNDI4MDM3NjE2
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)!