/* var langState = { create: function(){}, --------------------------------------- end of phaser functions func_setLang: function(){} //calls loadState }; var loadState = { preload: function(){}, create: function(){} //calls nameState -------------------------------------- end of phaser functions }; var nameState = { create: function(){}, ------------------------------------------------ end of phaser functions func_checkEmptyName: function(){} func_savename: function(){} //calls menu.js -> menuState }; var buttonSettings = { func_addButtons: function(_,_,_,_,_,_,_,_,_){}, loadState: function(){} }; */ // "choose language" screen var langState = { create: function() { if(this.game.world.width != defaultWidth) this.game.world.setBounds(0, 0, defaultWidth, this.game.world.height); // AUX var style = { font: '28px Arial', fill: '#00804d', align: 'center' }; // AUDIO beepSound = game.add.audio('sound_beep'); // game sound okSound = game.add.audio('sound_ok'); // correct answer sound errorSound = game.add.audio('sound_error'); // wrong answer sound // BACKGROUND game.stage.backgroundColor = '#cce5ff'; // LANGUAGES var flagObjList = []; var langNameList= ['FRAÇÕES ', 'FRAZIONI ', 'FRACTIONS ', 'FRACCIONES ', 'FRACTIONS ' ]; var flagList = ['flag_BR', 'flag_IT', 'flag_US', 'flag_PE', 'flag_FR' ]; var langList = ['pt_BR', 'it_IT', 'en_US', 'es_PE', 'fr_FR' ]; var x1List = [-220, -220, -220, 200, 200]; var x2List = [-120, -120, -120, 300, 300]; var yList = [-180, 0, 180, -100, 100]; for(var i=0; i