Pretend to be Spider-Man in this updated tutorial with Matter Physics constraints you can shoot out.
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."
Learn to code and lead your intrepid crew on a mission to save The Cloud in TwilioQuest, a PC role-playing game inspired by classics of the 16-bit era. Free forever, and available now for Windows, Mac, and Linux.
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