Sprite Shading in Tile Based Games


					Light intensity: 
				

Shading algorithm for tile based games

The light intensity on each tile is calculated in realtime and is based on inverse square falloff of light intensity. The script still leaves some room for improvement but works good enough to share. Have fun!

If you like it or have questions, drop me a line at: