How to create a spotlight in Phaser 3?

How can I create a spotlight effect like this one in Darkwood please?

Unity has a spotlight object, is there something like this in Phaser?
All I can see in Google is this tutorial - Creating a Flashlight or Spotlight Effect in Phaser 3 @ Playful Game Developmet Blog by Ourcade - but I have no idea how I’d get the light to fade out over distance, or more importantly, how to intersect correctly with walls and doorways in my Tiled map.

1 Like

that’s awesome exmaple, but my experience does not allow me to change this to such a level that the color is “light” and the shadows are translucent (as in the screenshot in the first post).