pass a local reference to Phaser object