Przeglądaj źródła

Update 'src/js/menus/preMenu_boot.js'

Adjusts to remove directory "./src" (it does not make sense in installation of iFractions)
Removed /* */ comments from internal code (they are reserve to isolate long blocks during depuration process)
leo 8 miesięcy temu
rodzic
commit
e2b989dab9
1 zmienionych plików z 5 dodań i 8 usunięć
  1. 5 8
      src/js/menus/preMenu_boot.js

+ 5 - 8
src/js/menus/preMenu_boot.js

@@ -7,9 +7,8 @@
  * @namespace
  */
 const bootState = {
-  /**
-   * Preloads media for current state
-   */
+
+  /// Preloads media for current state
   preload: function () {
     // FOR MOODLE
     if (moodle) {
@@ -34,7 +33,7 @@ const bootState = {
         default:
           langString = 'en_US';
       }
-      game.load.lang('src/assets/lang/' + langString);
+      game.load.lang('assets/lang/' + langString); // deploy of iFraction must use only files under "./src" from Git
     }
     // LOADING MEDIA
     if (isDebugMode) {
@@ -47,9 +46,7 @@ const bootState = {
     game.load.sprite(url.boot.sprite);
   },
 
-  /**
-   * Main code
-   */
+  /// Main code
   create: function () {
     // Calls first screen seen by the player
 
@@ -60,4 +57,4 @@ const bootState = {
       game.state.start('lang');
     }
   },
-};
+};