Browse Source

refactor: make the game circleOne have 3 difficulties instead of 5

lairaalmas 1 year ago
parent
commit
c42e157736
4 changed files with 6 additions and 6 deletions
  1. 1 1
      js/games/circleOne.js
  2. 1 1
      js/globals/globals_control.js
  3. 3 3
      js/globals/globals_debug.js
  4. 1 1
      js/menus/menu_custom.js

+ 1 - 1
js/games/circleOne.js

@@ -13,7 +13,7 @@
  * .plus.minus.mixed. = gameOperation
  * ......\.|./.......
  * ........|.........
- * ....1,2,3,4,5..... = gameDifficulty
+ * ......1,2,3....... = gameDifficulty
  *
  * Character : kid/balloon
  * Theme : flying in a balloon

+ 1 - 1
js/globals/globals_control.js

@@ -294,7 +294,7 @@ const gameList = [
     gameName: 'circleOne',
     gameMode: ['a', 'b'],
     gameOperation: ['plus', 'minus', 'mixed'],
-    gameDifficulty: 5,
+    gameDifficulty: 3,
     // info
     gameShape: 'circle',
     assets: {

+ 3 - 3
js/globals/globals_debug.js

@@ -3,14 +3,14 @@ const isDebugMode = false;
 const debugState = {
   lang: { skip: true, lang: 'pt_BR' },
   name: { skip: true, name: 'Username' },
-  menu: { skip: true, id: 0, audioStatus: false },
+  menu: { skip: true, id: 1, audioStatus: false },
   customMenu: {
-    skip: true,
+    skip: false,
     getData: () => {
       return { mode: 'a', operation: 'plus', difficulty: 3, label: true };
     },
   },
-  map: { skip: true },
+  map: { skip: false },
   end: { skip: false, stop: false },
   moodle: {
     emulate: false,

+ 1 - 1
js/menus/menu_custom.js

@@ -365,7 +365,7 @@ const customMenuState = {
 
     y = getFrameInfo().y + offsetH / 3;
 
-    if (gameName != 'squareOne') x -= 40;
+    if (gameName === 'squareTwo') x -= 70;
 
     for (let i = 0; i < curGame.gameDifficulty; i++) {
       // Parameters