JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://rawgit.com/photonstorm/phaser/master/build/phaser.min.js"></script>
<div id="test"></div>
JavaScript
var game = new Phaser.Game(400, 400, Phaser.AUTO, 'test');
var BasicGame = function(game) {};
BasicGame.Boot = function (game) {};
BasicGame.Boot.prototype = {
init: function(){
this.game.canvas.style.cursor = 'url(http://triplanetary.github.io/cursor.png),auto';
},
preload: function() {
},
create: function() {
},
update: function() {
}
}
game.state.add('Boot', BasicGame.Boot);
game.state.start('Boot');