pressing the keys 1,2 and 3 will set positions to either triangle or line. if you click 3 at all it will be a triangle, if not it will be a line. when you click space it puts it in also the x,y's are at the bottom.
best shadow casting code. adding a 3d one soon. uh so if light source y is equal to something casting a shadow you should probably change the light y a tiny bit because I'm not sure what bugs it will cause