changed to phaser 2.0 branch. Updated api