Pretend to be Spider-Man in this updated tutorial with Matter Physics constraints you can shoot out.

Posted on 15th Aug 2019. Follow @phaser_ and get the Phaser World newsletter.

image

Emanuele Feronato returns to Matter Physics in a new tutorial: "This week I showed you a HTML5 prototype of “Fling” game built with Phaser and Matter.js but it was flawed by various Matter.js issues.

Actually we can’t talk about “issues” because it was me trying to force the way Matter.js handles the constraints, but in the end I wasn’t satisfied.

So I studied a bit how constraints work and wrote about three ways to deal with constraints.

Finally I sorted out things and now I got something enjoyable.

Click the mouse to fire the hook towards mouse pointer, click again when swinging to release it, then click again to fire another hook and pretend to be Spider-Man."

Read More


The first book on the creation of HTML5 cross platform games using Phaser 3 and other free software.
  • By Emanuele Feronato
  • 155 Pages
  • 28 Source Code Examples
  • Build a complete game from start to finish
  • Cross Platform
  • Scaling for devices
Buy Now
$19