The popular Match 3 JavaScript class is updated to support drag and match games.

Posted on 28th Apr 2020. Follow @phaser_ and get the Phaser World newsletter.

image

Emanuele writes, in his new tutorial: "My pure JavaScript class to handle Match3 games is being downloaded a lot of times, and it’s easy to figure out why:

Match3 class handles everything happening under the hood and tells the framework how to move items on the screen, so you only need to manage input and animations.

Moreover, the class has been written in pure JavaScript, so it can be used together with any HTML5 framework and follows ECMAScript6 syntax.

I already built a Bejeweled and a Turnellio prototype using the class, so today I extended it a bit to manage Drag and Match games.

Drag and Match games are a little more complex to handle than Match3 games because you move an entire row or an entire column each time, but thanks to my class, I reduced the number of lines from almost 500 of the original prototype to about 250."

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