This is similar to my other tile-based lighting engine, but it is optimized for tile-based side-scrolling games. Click to add light sources, and click on light sources to remove them.