I’m happy to say I’ve got the first major building block of lighting and shadows into the game. Here’s an example of the final result:
There were quite a few stages involved in getting these lights working, with a lot of thanks to Amit Patel’s excellent article on 2D visibility. Amit’s brilliant interactive tutorials helped me a great deal and I’m not sure I would have achieved these results without them. I also need to thank Wholehog Game’s article on lighting a 2D game for the clear explanation of using normal maps in 2D and lights as geometry.