ADD TO index.html :::
game.state.add('Boot', BunnyDefender.Boot);
CREATE Boot.js :::
var BunnyDefender = {};
BunnyDefender.Boot = function(game) {};
BunnyDefender.Boot.prototype = {
preload: function() {},
create: function() {
this.input.maxPointers = 1;
this.stage.disableVisibilityChange = false; // pause game on tab change
this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL;
this.scale.minWidth = 270;
this.scale.minHeight = 480;
this.scale.pageAlignHorizontally = true;
this.scale.pageAlignVertically = true;
this.stage.forcePortrait = true; // force portrait mode
this.scale.setScreenSize(true); // true will force screen resize no matter what
this.input.addPointer();
this.stage.backgroundColor = '#171642';
}
};