/* let menuState = { create: function(){}, ---------------------------- end of phaser functions func_loadGame: function(){}, func_showTitle: function(){}, func_clearTitle: function(){}, } */ let menuState = { inputStartPosition: null, inputEndPosition: null, isCameraMoving: false, extraWidth: null, title: null, lbl_game: null, player_info: null, // creating game menu screen assets create: function() { if(loadAssets.levelSpriteList.length > 8){ let aux = loadAssets.levelSpriteList.length-8; this.extraWidth = (aux%2==0) ? (aux/2)*235 : ((aux+1)/2)*235; }else{ this.extraWidth = 0; } // CAMERA this.game.world.setBounds(0, 0, this.game.world.width + this.extraWidth, this.game.world.height); // Floor for(let i=0;i