Working throught the Discover Phaser workbook from www.discoverphaser.com - This is my code from following the book.