Phaser current version test environment

Basic Phaser setup for testing

HTML

<script src="https://rawgit.com/photonstorm/phaser/master/build/phaser.min.js"></script>
<script src="http://code.jquery.com/jquery-3.1.1.min.js"></script>
<script src="http://code.jquery.com/jquery-3.1.1.min.js"></script>
<div id="test"></div>

JavaScript

// Phaser current version test environment
// Mouse position
this.game = new Phaser.Game(500, 400, Phaser.WebGL, 'test');

window.onclick = function(){
	$("#test").html("");
	this.game = new Phaser.Game(500, 400, Phaser.WebGL, 'test');
  this.game.state.add('Boot', BasicGame.Boot);
	this.game.state.start('Boot');
};

var BasicGame = function(game) {};

BasicGame.Boot = function (game) {
    // nothing here
};

// initialise up our endTime var
var endTime = 0;

BasicGame.Boot.prototype = 
{
    preload: function() {
      this.game.time.advancedTiming = true;
    },
	create: function() 
	{

    },
    update: function() 
    {

    }, 
    render: function()
    {        
        this.game.debug.text(game.time.fps || '--', 2, 14, "#00ff00");
       this.game.debug.text(Phaser.VERSION, game.world.width - 55, 14, "#ffff00");
        var pos = game.input.activePointer.position;
        this.game.debug.text("x:" + pos.x + " y:" + pos.y, 180, 200);
    }
};