Tommy Leung from Ourcade shares an excellent tutorial on how you can create a reveal or scratch off effect in Phaser 3!

Posted on 3rd Aug 2020. Follow @phaser_ and get the Phaser World newsletter.


Tommy Leung from Ourcade has released another great tutorial for Phaser 3. In this tutorial, you get to learn how you can use the RenderTexture and ERASE blend mode in Phaser 3 to create the scratch off effect.

From the article: "A reveal or scratch-off effect is where a top layer gets removed to reveal something hidden under it.

Like a scratch-off lottery ticket or a “Pick Your Bonus” mini-game.

There's more than one way to achieve this effect and we are going to look at one simple and performant approach using the Phaser 3 RenderTexture and ERASE blend mode."


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