OwlCyberSecurity - MANAGER
Edit File: boot.js
var boot = function(game) { console.log("%cGame Initializing...", "color:black;background:red"); } boot.prototype = { preload: function() { //load the images/assets that you wanted to appear in the loading screen this.load.image("background","img/background.png"); this.load.image("background2","img/background2.png"); this.load.image("logo","img/starsue_logo.png"); }, create: function() { /*these will handle all the screen resizing thing, this is pretty musch self explanatory as phaser is a very straight forward framework.*/ this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; this.scale.pageAlignHorizontally = true; this.scale.pageAlignVertically = true; this.scale.setMinMax(this.width/2,this.height/2,this.width,this.height); /*this will start the preload/loading screen*/ this.state.start("Preload"); } }