Use Illuminted.js in your games for real-time lighting effects.

Article by Richard Davey. Posted on 29th Oct 2015.   @phaser_

image

Cudabear announced on the forum: "I noticed Phaser doesn't really have lighting effects, making it difficult to add that extra layer of polish onto your game. With some research I found illuminated.js, which has the capability for making pretty solid lighting effects using 2D canvas. Problem is, this is a low-level library that draws directly to the canvas, meaning the effects you create can't be managed with Phasers sprite system.

To solve this problem I've created a library to interface between illuminated.js and Phaser, allowing you to create illuminated lamp objects that are wrapped as Phaser sprites, allowing you to manage them as such."

Read More