Tommy Leung from Ourcade shares an excellent tutorial on how you can create a reveal or scratch off effect in Phaser 3!
Tommy Leung from Ourcade has released another great tutorial for Phaser 3. In this tutorial, you get to learn how you can use the
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."