liabru / matter-js
- воскресенье, 18 сентября 2016 г. в 03:14:51
JavaScript
a 2D rigid body physics engine for the web
Matter.js is a JavaScript 2D rigid body physics engine for the web
Demos - Gallery - Features - Install - Usage - Examples - Docs - Wiki - References - License
See how others are using matter.js physics
Download the edge build (master) or get a stable release and include the script in your web page:
<script src="matter.js" type="text/javascript"></script>
You can also install using the package managers Bower and NPM.
bower install matter-js
npm install matter-js
Visit the Getting started wiki page for a minimal usage example.
Also see the Rendering wiki page, which also shows how to use your own game loop.
See the examples directory which contains the source for all demos.
There are even more examples on codepen.
See the API Documentation and the wiki
To build you must first install node.js and gulp, then run
npm install
This will install the required build dependencies, then run
gulp dev
to spawn a development server. For information on contributing see CONTRIBUTING.md.
To see what's new or changed in the latest version, see the changelog.
See the wiki page on References.
Matter.js is licensed under The MIT License (MIT)
Copyright (c) 2014 Liam Brummitt
This license is also supplied with the release and source code.
As stated in the license, absolutely no warranty is provided.