Pārlūkot izejas kodu

update game feedback when isDebugMode is true

lairaalmas 1 gadu atpakaļ
vecāks
revīzija
13ac0e1575
2 mainītis faili ar 10 papildinājumiem un 2 dzēšanām
  1. 6 2
      src/js/menus/menu_custom.js
  2. 4 0
      src/js/menus/menu_main.js

+ 6 - 2
src/js/menus/menu_custom.js

@@ -127,10 +127,14 @@ const customMenuState = {
         if (isDebugMode) {
           console.log(
             '------------------------------' +
-              '\nGame State: ' +
-              gameName +
               '\nGame Mode: ' +
               gameMode +
+              '\nGame Operation: ' +
+              gameOperation +
+              '\nGame Difficulty: ' +
+              gameDifficulty +
+              '\nDisplay Fraction Labels: ' +
+              fractionLabel +
               '\n------------------------------'
           );
         }

+ 4 - 0
src/js/menus/menu_main.js

@@ -191,9 +191,13 @@ const menuState = {
         gameId = icon.gameId;
         gameName = gameList[gameId].gameName;
         gameShape = gameList[gameId].gameShape;
+
         if (!gameList.find((game) => game.gameName === gameName))
           console.error('Game error: the name of the game is not valid.');
+        if (isDebugMode) console.log('Game Name: ' + gameName);
+
         self.menuIcons = self.lbl_game.name;
+
         game.state.start('customMenu');
         break;
     }