浏览代码

Update 'src/js/globals/globals_tokens.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 月之前
父节点
当前提交
ac384e0ea3
共有 1 个文件被更改,包括 30 次插入39 次删除
  1. 30 39
      src/js/globals/globals_tokens.js

+ 30 - 39
src/js/globals/globals_tokens.js

@@ -1,12 +1,13 @@
-const baseUrl = 'src/assets/img/'; // Base directory for media
-const fallbackImgUrl = 'src/assets/img/fallback.png';
+//Attention: the files to install "executable" iFractions are all
+//           of them bellow "src/"
 
-/**
- * Preset colors for graphic elements.
- * @type {object}
- */
+const baseUrl = 'assets/img/'; // Base directory for media
+const fallbackImgUrl = 'assets/img/fallback.png';
+
+// Preset colors for graphic elements.
+// @type {object}
 const colors = {
-  // Blues
+  // Blue(s)
   blueDark: '#02277d', // Line color that indicates right and fraction numbers
   blue: '#003cb3', // Subtitle
   blueLight: '#92b3e8', //'#a4c6fc',
@@ -16,14 +17,14 @@ const colors = {
 
   blueMenuLine: '#b7cdf4',
 
-  // Reds
+  // Red(s)
   redLight: '#d27979', // squareTwo figures
   red: '#b30000', // Linecolor that indicates left
   redDark: '#730101', // squareTwo figures and some titles
 
   maroon: '#330000', // squareTwo figures and some titles
 
-  // Greens
+  // Green(s)
   greenLight: '#79d2a1', // squareTwo figures
   green: '#00804d', // Title
   greenDark: '#005231', // squareTwo figures
@@ -50,11 +51,9 @@ const font = {
   },
 };
 
-/**
- * Preset text styles for game text.<br>
- * Contains: font, size, text color and text align.
- * @type {object}
- */
+// Preset text styles for game text.<br>
+// Contains: font, size, text color and text align.
+// @type {object}
 const textStyles = {
   h1_: {
     font: `${font.sizes.h1} ${font.families.default}`,
@@ -100,27 +99,19 @@ const textStyles = {
   },
 };
 
-/**
- * List of URL for all media in the game
- * divided 1st by the 'state' that loads the media
- * and 2nd by the 'media type' for that state.
- *
- * @type {object}
- */
+// List of URL for all media in the game
+// divided 1st by the 'state' that loads the media
+// and 2nd by the 'media type' for that state.
+// @type {object}
 const url = {
-  /**
-   * url.<state>
-   * where <state> can be: boot, menu, squareOne, squareTwo, circleOne.
-   */
+  // url.<state>
+  // where <state> can be: boot, menu, squareOne, squareTwo, circleOne.
   boot: {
-    /**
-     * url.<state>.<media type>
-     * where <media type> can be: image, sprite, audio <br><br>
-     *
-     * image: [ [name, source], ... ] <br>
-     * sprite: [ [name, source, number of frames], ... ] <br>
-     * audio: [ [name, [source, alternative source] ], ... ]
-     */
+    // url.<state>.<media type>
+    // where <media type> can be: image, sprite, audio <br><br>
+    // image: [ [name, source], ... ] <br>
+    // sprite: [ [name, source, number of frames], ... ] <br>
+    // audio: [ [name, [source, alternative source] ], ... ]
     image: [
       ['fallback', fallbackImgUrl],
       // scene new level
@@ -148,7 +139,7 @@ const url = {
       ['flag_BR', baseUrl + 'flags/br.png'],
       ['flag_FR', baseUrl + 'flags/fr.png'],
       ['flag_IT', baseUrl + 'flags/it.png'],
-      ['flag_ES', baseUrl + 'flags/es.png'],
+      ['flag_PE', baseUrl + 'flags/pe.png'],
       ['flag_US', baseUrl + 'flags/us.png'],
       // Navigation icons on the top of the page
       ['back', baseUrl + 'icons_navigation/back.png'],
@@ -220,13 +211,13 @@ const url = {
     ],
     audio: [
       // Sound effects
-      ['beepSound', ['src/assets/audio/beep.ogg', 'src/assets/audio/beep.mp3']],
-      ['okSound', ['src/assets/audio/ok.ogg', 'src/assets/audio/ok.mp3']],
+      ['beepSound', ['assets/audio/beep.ogg', 'assets/audio/beep.mp3']],
+      ['okSound', ['assets/audio/ok.ogg', 'assets/audio/ok.mp3']],
       [
         'errorSound',
-        ['src/assets/audio/error.ogg', 'src/assets/audio/error.mp3'],
+        ['assets/audio/error.ogg', 'assets/audio/error.mp3'],
       ],
-      ['popSound', ['', 'src/assets/audio/pop.wav']],
+      ['popSound', ['', 'assets/audio/pop.wav']],
     ],
   },
   squareOne: {
@@ -286,4 +277,4 @@ const url = {
     ],
     audio: [],
   },
-};
+};