Tip: When determining a time limit, remember that players won't be as familiar with the level as you are. If you normally complete the level with the timer around 100, others might run out of time on their first try.
Updated to use shared subroutines; also added tags and screenshots.
Note: I removed a suboffscreen call since pixi's version appears to be broken.
I replaced it with a simple offscreen check which /should/ do the same. If it doesn't I'll fix it once pixi's version is fixed.