Use invertY helper function for World.gravity

Just makes the code a little shorter.