box2dweb-commonjs

Box2dweb as a Common JS module

Usage no npm install needed!

<script type="module">
  import box2dwebCommonjs from 'https://cdn.skypack.dev/box2dweb-commonjs';
</script>

README

box2dweb-commonjs

web component logo

CommonJS version of Box2dWeb both for npm and component(1)
The patch to support Node.js was prepared by Christoph Schulz

Usage

Both in component(1) or node.js just

var box2d = require('box2dweb-commonjs');
var world = new box2d.b2World(....)