copying the great examples for phaser.io