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: 'ReferenceError: word is not defined' in or related to this line: 'scoreTest = "firtWord: " + word;' Line Number: 922
Code edit (1 edits merged)
Please save this source code
Code edit (15 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: wordGgrid is not defined' in or related to this line: 'var letter = clueWord[wordGgrid.gridColumns];' Line Number: 633
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: wordOfGrid is undefined' in or related to this line: 'if (notEnoughtMoneyForDrop || clueWord == '' && !wordGrid.isEmpty() || clueWord.length < wordOfGrid.length) {' Line Number: 903
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: wordGrid.words[0] is undefined' in or related to this line: 'return true;' Line Number: 267
Code edit (1 edits merged)
Please save this source code
Code edit (20 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: clueButtonLetter is not defined' in or related to this line: 'scrollCostCoins(clueButtonLetter.x, clueButtonLetter.y, 1, 10);' Line Number: 549
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: 'Timeout.tick error: options is undefined' in or related to this line: 'var imageToScrollRescale = {' Line Number: 775
Code edit (15 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: 775
Code edit (1 edits merged)
Please save this source code
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
===================================================================
--- original.js
+++ change.js
@@ -511,17 +511,16 @@
tableauFrom.push({
x: game.width / 2,
y: MainZone.y - scoreText.height / 2
});
- createImages('CostCoin', tableauFrom);
- if (imagesToScrollRescale.length > 0) {
- imagesToScrollRescale[0].xToReach = clueButton.x;
- imagesToScrollRescale[0].yToReach = clueButton.y;
- imagesToScrollRescale[0].valueToAddToScore = -1;
- imagesToScrollRescale[0].nbTicksLeft = 30;
- imagesToScrollRescale[0].soundOnEnd = 'SoundCostCoin';
- imagesToScrollRescale[0].isDestroyedOnEnd = true;
- }
+ createImages('CostCoin', tableauFrom, {
+ xToReach: clueButton.x,
+ yToReach: clueButton.y,
+ nbTicksLeft: 30,
+ valueToAddToScore: -1,
+ soundOnEnd: 'SoundCostCoin',
+ isDestroyedOnEnd: true
+ });
}
}, 2000);
}
} //Fin de la fonction onClickClueButtonLetter
@@ -710,27 +709,27 @@
return isWordValid;
} //Fin de la fonction validateWord
// Fonction pour créer une image à faire défiler et redimensionner
function createImageToSrollRescale(asset, xFrom, yFrom) {
- var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
+ //var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
// Création d'une nouvelle instance de l'image asset
var assetToScrollRescale = LK.getAsset(asset, {
- anchorX: 0.5 || options.anchorX,
- anchorY: 0.5 || options.anchorY,
- scaleX: 1 || options.scaleX,
- scaleY: 1 || options.scaleY,
- x: xFrom || options.xFrom,
- y: yFrom || options.yFrom
+ anchorX: options.anchorX !== undefined ? options.anchorX : 0.5,
+ anchorY: options.anchorY !== undefined ? options.anchorY : 0.5,
+ scaleX: options.scaleX !== undefined ? options.scaleX : 1,
+ scaleY: options.scaleY !== undefined ? options.scaleY : 1,
+ x: options.xFrom !== undefined ? options.x : xFrom || options.xFrom,
+ y: options.yFrom !== undefined ? options.y : yFrom || options.yFrom
});
var imageToScrollRescale = {
- animate: false || options.animate,
- image: assetToScrollRescale || options.image,
- xToReach: 0 || options.xToReach,
- yToReach: 0 || options.yToReach,
- scaleToReach: 1 || options.scaleToReach,
- nbTicksLeft: 0 || options.nbTicksLeft,
- isDestroyedOnEnd: false || options.isDestroyedOnEnd,
- valueToAddToScore: 0 || options.valueToAddToScore
+ animate: options.animate !== undefined ? options.animate : false,
+ image: options.image !== undefined ? options.image : assetToScrollRescale,
+ xToReach: options.xToReach !== undefined ? options.xToReach : 0,
+ yToReach: options.yToReach !== undefined ? options.yToReach : 0,
+ scaleToReach: options.scaleToReach !== undefined ? options.scaleToReach : 1.0,
+ nbTicksLeft: options.nbTicksLeft !== undefined ? options.nbTicksLeft : 0,
+ isDestroyedOnEnd: options.isDestroyedOnEnd !== undefined ? options.isDestroyedOnEnd : false,
+ valueToAddToScore: options.valueToAddToScore !== undefined ? options.valueToAddToScore : 0
};
game.addChild(assetToScrollRescale);
return imageToScrollRescale;
} //fin createImageToSrollRescale
@@ -781,18 +780,19 @@
} //fin scrollRescaleImages
//Fonction createImages : permet de créer plusieurs images à scrollrescaler
//Chaque image est crée à l'emplacement donnée dans le tableauFrom composé de (x, y)
function createImages(asset, tableauFrom, options) {
+ scoreTest = "nbTicksLeft=" + options.nbTicksLeft;
for (var i = 0; i < tableauFrom.length; i++) {
var image = createImageToSrollRescale(asset, tableauFrom[i].x, tableauFrom[i].y, options);
- image.xToReach = game.width / 2 || options.xToReach;
- image.yToReach = MainZone.y - scoreText.height / 2 || options.yToReach;
- image.scaleToReach = 1.0 || options.scaleToReach;
- image.nbTicksLeft = Math.floor(Math.random() * 30) + 40 || options.nbTicksLeft;
- image.animate = true || options.animate;
- image.isDestroyedOnEnd = true || options.isDestroyedOnEnd;
- image.soundOnEnd = 'SoundRewardCoin' || options.soundOnEnd;
- image.valueToAddToScore = 10 || options.valueToAddToScore;
+ //image.xToReach = game.width / 2 || options.xToReach;
+ //image.yToReach = MainZone.y - scoreText.height / 2 || options.yToReach;
+ //image.scaleToReach = 1.0 || options.scaleToReach;
+ //image.nbTicksLeft = Math.floor(Math.random() * 30) + 40 || options.nbTicksLeft;
+ //image.animate = true || options.animate;
+ //image.isDestroyedOnEnd = true || options.isDestroyedOnEnd;
+ //image.soundOnEnd = 'SoundRewardCoin' || options.soundOnEnd;
+ //image.valueToAddToScore = 10 || options.valueToAddToScore;
imagesToScrollRescale.push(image);
}
} //fin createImages
/****
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.