# box2d.ts

[![PayPal donate button](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=H9KUEZTZHHTXQ&lc=US&item_name=box2d.ts&currency_code=USD&bn=PP-DonationsBF:btn_donate_SM.gif:NonHosted "Donate to this project using Paypal")

A [TypeScript](https://github.com/Microsoft/TypeScript) port of [Box2D](https://github.com/erincatto/Box2D).

[Box2D Testbed Demo](https://flyover.github.io/box2d.ts/Testbed) (transpiled into [SystemJS](https://github.com/systemjs/systemjs) modules)

[Box2D Testbed Demo](https://flyover.github.io/box2d.ts/Testbed?transpile) (transpile in the browser into [SystemJS](https://github.com/systemjs/systemjs) modules)

[Box2D Testbed Demo](https://flyover.github.io/box2d.ts/Build/Testbed) (bundled by [Rollup](https://github.com/rollup/rollup) into a [UMD](https://github.com/umdjs/umd) module)

## How to build it

```
git clone git@github.com:flyover/box2d.ts.git && cd box2d.ts
npm install
npm run build
npm run start
```
