Some utilities for me to reuse in Flashpunk games.