Various game loop utilities (mostly extracted from game.LevelMap), for use in boilerplate loop config