0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-01-21 17:14:38 -05:00

Updated Getting started (markdown)

Liam 2015-01-22 19:36:25 +00:00
parent d50205befd
commit e69ae91504

@ -44,7 +44,7 @@ World.add(engine.world, [boxA, boxB, ground]);
Engine.run(engine);
```
Include the above script into a page that has Matter.js installed and then open the page in your browser.
Include the above script into a page that has Matter.js installed and then open the page in your browser. Make sure the script is at the bottom of the page (or otherwise called after DOM is ready).
Hopefully you will see two rectangle bodies fall and then hit each other as they land on the ground.
If you don't, check the browser console to see if there are any errors.