Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: imageBackGround is not defined' in or related to this line: 'var backGround = imageBackGround;' Line Number: 484
Code edit (2 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: this.children[e].setStageReference is not a function' in or related to this line: 'game.update = function () {' Line Number: 1100
Code edit (8 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: object.addChild is not a function' in or related to this line: 'object.addChild(nameGrid);' Line Number: 620
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: object.addChild is not a function' in or related to this line: 'object.addChild(nameGrid);' Line Number: 618
Code edit (8 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: t is undefined' in or related to this line: 'backGroundImage = LK.getAsset(image, {' Line Number: 539
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'length')' in or related to this line: 'var nbWords = mainListsList[i].length;' Line Number: 468
Code edit (19 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'length')' in or related to this line: 'var nbWords = mainListsList[i].length;' Line Number: 468
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (6 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Cannot read properties of null (reading 'resetGrid')' in or related to this line: 'mainGrid.resetGrid();' Line Number: 592
Code edit (12 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught ReferenceError: setHelpButtons is not defined' in or related to this line: 'setHelpButtons('ButtonHelp');' Line Number: 471
Code edit (1 edits merged)
Please save this source code
Code edit (8 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -438,15 +438,15 @@
onClick: onClickMiniBackGround
});
var oneCell = new GridCell('', 'cell'); // Define oneCell variable
var nbWords = mainListsList[i].length;
- //displayText(name + "(" + nbWords + ")", 'cellWord', nbWords * oneCell.width + oneCell.width / 2, miniBackGrounds[i].height / 2 + 2.5 * oneCell.height);
- var nameGrid = makeNameGrid(name + "(" + nbWords + ")", 'cellWord');
- nameGrid.y = miniBackGrounds[i].height / 2 - 2.5 * nameGrid.height;
- nameGrid.width = miniBackGrounds[i].width - 2 * oneCell.width;
- nameGrid.height = 2 * miniBackGrounds[i].height;
- nameGrid.x = -nameGrid.width / 2 + oneCell.width / 2;
- miniBackGrounds[i].addChild(nameGrid);
+ displayText(name + "(" + nbWords + ")", 'cellWord', nbWords * oneCell.width + oneCell.width / 2, miniBackGrounds[i].height / 2 + 2.5 * oneCell.height);
+ //var nameGrid = makeNameGrid(name + "(" + nbWords + ")", 'cellWord');
+ //nameGrid.y = miniBackGrounds[i].height / 2 - 2.5 * nameGrid.height;
+ //nameGrid.width = miniBackGrounds[i].width - 2 * oneCell.width;
+ //nameGrid.height = 2 * miniBackGrounds[i].height;
+ //nameGrid.x = -nameGrid.width / 2 + oneCell.width / 2;
+ //miniBackGrounds[i].addChild(nameGrid);
game.addChild(miniBackGrounds[i]);
setHelpButton('ButtonHelp');
}
} //Fin de la fonction displayminiBackGrounds
@@ -584,13 +584,18 @@
nameGrid.x = x;
nameGrid.y = y + i / 4 * cellHeight * 2 + j / 2 * cellHeight;
nameGrid.width /= 2;
nameGrid.height /= 2;
+ //if (object instanceof Container) {
+ //scoreTest = "Container valide! ";
if (object instanceof Container) {
object.addChild(nameGrid);
} else {
- console.error("The provided object is not a valid Container instance.");
+ game.addChild(nameGrid);
}
+ //} else {
+ //scoreTest = "Container non valide! ";
+ //game.addChild(nameGrid);
textsGrid.push(nameGrid);
}
}
return textsGrid;
@@ -1067,9 +1072,8 @@
* Main loop
****/
game.update = function () {
//scoreTest = wordsMainList.length;
- scoreTest = "Game is started: " + isGameStarted;
updateScoreTest(scoreTest);
//Choix du thème
if (!isThemaSelected) {
return;
An empty cell.
Drapeau national des USA en fond d'un patchwork des États américains.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Une jeton de scrabble sans lettre.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Un bouton arrondi suggérant une validation mais sans texte écrit dessus.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A round button with a cyan interrogation mark.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A round cyan button with a yellow lamp bulb.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Planetes.
Remove the white square and the red lines.
A patchwork of european countries with the european unio flag in back ground.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A yellow coin wher we can see '+10' written on it.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A red coin wher we can see '-10' written on it... Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Patchwork of heads of plenty animals.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
The periodic table of the elements.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Patchwork de mots sur un fond cyan.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Patchwork of scene extracted from video games.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
It is written "COOL QUIZZ".
A cyan circle button with a home silhouette in the center. The button means "go back to start window". Avoid white color.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.