How to create light and darkness using ray casting and polygon visibility.
Emanuele Feronato writes: "I always try to be responsive to the feedback from my readers, so when I saw one of you was in trouble with the porting of light and dark using ray casting and visibility polygons to Phaser 3, I decided to update the script.
With ray casting you can play with light and shadow in real time. Look at this HTML5 example powered by Phaser and Byron Knoll‘s visibility polygon script. Commented source code available."
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