Do the math and draw a polygon for the shadow. Using set alpha you can make it blend into the floor.
Do something like...
drawfloor()
drawshadows()
drawplayersenemiestreasurewallsetcetcetc()
Do something like...
drawfloor()
drawshadows()
drawplayersenemiestreasurewallsetcetcetc()