CodingTrain / CodingTrain/Suggestion-Box

Using matter.js -- a Wrapper Class for ease of use

Open
#569 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
570
Forks
85
PR merge metrics
No merged PRs in 30d

Description

[2D Physics Wrapper Class repository](https://github.com/RedHenDev/RedHen_2DPhysics)

For those interested in using Liam Brummit's brilliant [matter.js](http://brm.io/matter-js/index.html), the above 'wrapper' allows you to set things up, including removing lost bodies, mouse/touch interaction, texturing bodies, and detecting collision events, with very few lines of code.

So, you can have realistic 2D Physics and interaction working in your artwork/simulation/game very quickly. Eg. [No Man's Flappycraft](http://www.redhendev.com/NoMansFlappyCraft)

![screen shot 2017-05-26 at 20 40 52](https://cloud.githubusercontent.com/assets/24874180/26553236/b015d8f2-4482-11e7-8be7-49f85f51cf20.png)

The code for the wrapper follows from where Dan Sheeeefmahn left off in his matter.js tutorial series.

P.s. I learned A LOT about ES6 classes and inheritance through coding this wrapper :) -- I'd recommend coding a similar thing yourself if wanting to learn!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.