A trebuchet simulation using matter-js
See - https://crisward.github.io/treb/
Run the following in your terminal.
git clone git@github.com:crisward/treb.git
cd treb
npm install
npm run build
open index.html
All the code is in src/index.js
To update the build as you change the src just run
npm run watch