Zero Punctuation: Hatfall

Hats are falling from the sky! Your head lacks a hat! Solve the conundrum while avoiding falling obstacles, irritable wizards and experiencing wild minigames.