Browse Source

fixed bug with cleaning the game name in the main menu
fixed bug in readme formating
added beep sound as feedback for turning audio on

laira 3 years ago
parent
commit
c158d5cae3
3 changed files with 4 additions and 2 deletions
  1. 2 1
      js/globals.js
  2. 1 0
      js/menu.js
  3. 1 1
      php/README.md

+ 2 - 1
js/globals.js

@@ -154,7 +154,7 @@ const colors = {
 	white: '#efeff5',
 	gray: '#708090',
 	black: '#000',
-	yellow: '#fff570'
+	yellow: '#ffef1f'
 };
 
 // Text styles
@@ -407,6 +407,7 @@ const navigationIcons = {
 							navigationIcons.icon_audio.curFrame = 1;
 						} else {
 							audioStatus = true;
+							if (audioStatus) game.audio.beepSound.play();
 							navigationIcons.icon_audio.curFrame = 0;
 						}
 						game.render.all();

+ 1 - 0
js/menu.js

@@ -120,6 +120,7 @@ const menuState = {
         if (flag) {
             document.body.style.cursor = 'pointer';
         } else {
+            self.func_clearTitle();
             document.body.style.cursor = 'auto';
         }
 

+ 1 - 1
php/README.md

@@ -49,7 +49,7 @@ You have to set values for the following variables in **/php/save.php** to match
 
 ## 3) /js/globals.js
 
-There is a global function **postScore() ** inside /js/globals.js. When the information is collected on the current game file, it is sent as a parameter to this function. Here is where all the information collecting is completed, the data is sent to /php/save.php and the connection to the database done.
+There is a global function **postScore()** inside /js/globals.js. When the information is collected on the current game file, it is sent as a parameter to this function. Here is where all the information collecting is completed, the data is sent to /php/save.php and the connection to the database done.
 
 	const data = 's_ip='// INSERT the IP of the machine where the MySQL was set up
 		+ '&s_name=' + //player's name