JSFiddle - React, Tailwind, and code Playground

by markus636

JavaScript

var Phaser = Phaser || {
	VERSION: '2.6.2'
}

Phaser.Game = function(){
	this.world = null;
};

Phaser.Game.prototype = {};

Phaser.Game.prototype.constructor = Phaser.Game;

Phaser.Math = {
	PI2: Math.PI * 2
};

var game = new Phaser.Game();

console.log(Phaser.Math.PI2);
console.log(game.Math.PI2);