Updated for Phaser 2.2.1.