Code edit (10 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: options is undefined' in or related to this line: 'var imageToScrollRescale = {' Line Number: 748
Code edit (7 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: createRewardImages is not defined' in or related to this line: 'createRewardImages('RewardsCoin', tableauFrom);' Line Number: 469
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: imagesToScrollRescale[i] is undefined' in or related to this line: 'if (imagesToScrollRescale[i].isDestroyedOnEnd) {' Line Number: 725
Code edit (1 edits merged)
Please save this source code
Code edit (5 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: backGroundOptionsZone is not defined' in or related to this line: 'game.addChild(backGroundOptionsZone);' Line Number: 351
Code edit (9 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: setScore is not defined' in or related to this line: 'setScore(0);' Line Number: 396
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: clueWord is not defined' in or related to this line: 'if (clueWord != '') {' Line Number: 601
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: mainGrid.findNclick is not a function' in or related to this line: 'mainGrid.findNclick(firstLetter);' Line Number: 506
Code edit (4 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: setClueButtonWord is not defined' in or related to this line: 'setClueButtonWord('ButtonClue1');' Line Number: 380
Code edit (8 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: clueWord is undefined' in or related to this line: 'var letter = clueWord[clueLevel - 1];' Line Number: 487
Code edit (1 edits merged)
Please save this source code
Code edit (12 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: mainGrid.cells[line] is undefined' in or related to this line: 'if (mainGrid.cells[line][col]) {' Line Number: 453
Code edit (1 edits merged)
Please save this source code
Code edit (9 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -422,18 +422,21 @@
var firstLetter = mainGrid.words[0][0];
var line = -1;
var col = -1;
for (var i = 0; i < mainGrid.gridLines; i++) {
+ //On colorie la première lettre du mot pendant 2 secondes
for (var j = 0; j < mainGrid.gridColumns; j++) {
if (mainGrid.cells[i][j].letter == firstLetter) {
- mainGrid.cells[i][j].setColorToLetter("#00FF00");
+ mainGrid.cells[i][j].setColorToLetter("#FF5500");
line = i;
col = j;
}
}
}
LK.setTimeout(function () {
- mainGrid.cells[line][col].setColorToLetter("#000000");
+ if (mainGrid.cells[line] && mainGrid.cells[line][col]) {
+ mainGrid.cells[line][col].setColorToLetter("#000000");
+ }
}, 2000);
}
if (mainGrid.words.length > 1) {
for (var i = 0; i < mainGrid.gridLines; i++) {
@@ -448,8 +451,14 @@
case 1:
//a definir
break;
} //Fin du switch
+ //Si possible on retranche 2 X le niveau d'indice au score (minimum 0)
+ if (score >= 2 * clueLevel) {
+ score -= 2 * clueLevel;
+ } else {
+ score = 0;
+ }
clueLevel++;
} //Fin de la fonction onClickClueButton
//Fonction setClueButton : permet de définir le bouton d'indice
function setClueButton(asset) {
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.