Lines 11-17 determine the angle with trigonometry. This concept is explained in the tutorial called Create a flash draw game like Line Rider or others - part 3.
Line 5: call to a place_enemy function that will... uh... something like placing an enemy...