Create a rope/swing prototype in less than 100 lines of code using Phaser and Matter.js.

Posted on 23rd Jul 2019. Follow @phaser_ and get the Phaser World newsletter.

image

Emanuele Feronato starts a new series of Matter Physics related tutorials: "Mikey Hooks is a great game. Fullstop.

I liked so much the way the player used the hook, and I built prototypes using Flash + Box2D, Flash + Nape (Nape seems to be discontinued), Phaser + Box2D and Unity.

No matter the language, engine or framework you are using to build your hooks, they will all rely on a constraint called distance joint.

A constraint on a system is a parameter that the system must obey. In this case, the constraint is a distance joint which says “no matter what happens, there must be a given distance between two bodies”.

And that’s all:"

Read More

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