A simple (only 4 events) polygon-based shadowcasting engine, for realistic lighting / line of sight.
Objects which cast shadows must have the qualifier "Shapes".
Also, their first alterable string must contain a list of vertexes which defines the object's shape. Each vertex is separated by semicolons, and X and Y coordinates are separated by commas (x1,y1;x2,y2;,x3,y3...).
eg. "0,0;32,0;32,32;0,32" would represent a 32x32 square.
Note that coordinates are relative to the object's hotspot.