Code edit (10 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Cannot read properties of null (reading 'sprite')' in or related to this line: 'this.vitesseEnCours = this.sprite.x < rocher.sprite.x ? this.vitessePS : -this.vitessePS; //on donne le sens du deplacement horizontal' Line Number: 634
Code edit (1 edits merged)
Please save this source code
Code edit (7 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'x')' in or related to this line: 'this.sprite.x = x;' Line Number: 439
Code edit (1 edits merged)
Please save this source code
Code edit (21 edits merged)
Please save this source code
User prompt
Migrate to the latest version of LK
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: rochers is not defined' in or related to this line: 'for (var i = 0; i < rochers.length; i++) {' Line Number: 956
Code edit (7 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: scoreZone is not defined' in or related to this line: 'victoireText.y = scoreZone.height;' Line Number: 798
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: 'TypeError: LK.getText is not a function' in or related to this line: 'var victoireText = game.addChild(LK.getText('Victoire', {' Line Number: 792
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 (8 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught ReferenceError: OrdiZone is not defined' in or related to this line: 'scoreOrdiText.x = OrdiZone.x + HumanZone.width / 2;' Line Number: 933
Code edit (1 edits merged)
Please save this source code
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: LK.Text2 is not a constructor' in or related to this line: 'var scoreHumainText = new LK.Text2('Score Humain: 0', {' Line Number: 912
Code edit (2 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -895,29 +895,28 @@
var buldos = createBuldos(); //Creation des Buldos
var rochers = generateRandomRock(nbRochers); //création des rochers
// Création de l'objet de texte pour le score du camp humain
var scoreHumainText = new Text2('0', {
- size: 50,
+ size: 70,
fill: "#0000ff",
anchorX: 0.5,
anchorY: 0
});
// Positionnement du score du camp humain dans la zone score au depart de la zone humaine
-LK.gui.topLeft.addChild(scoreHumainText);
scoreHumainText.x = HumanZone.x + HumanZone.width / 2;
-scoreHumainText.y = ScoreZone.y + ScoreZone.height / 2;
+scoreHumainText.y = ScoreZone.y + ScoreZone.height / 8;
+LK.gui.topLeft.addChild(scoreHumainText);
// Création de l'objet de texte pour le score du camp ordinateur
var scoreOrdiText = new Text2('0', {
- size: 50,
+ size: 70,
fill: "#ff0000",
anchorX: 0.5,
anchorY: 0
});
// Positionnement du score du camp ordinateur dans la zone score au depart de la zone ordi
+scoreOrdiText.x = HumanZone.width;
+//scoreOrdiText.y = ScoreZone.y + ScoreZone.height / 8;
LK.gui.topLeft.addChild(scoreOrdiText);
-//scoreOrdiText.x = ComputerZone.x;
-scoreOrdiText.x = ComputerZone.x + ComputerZone.width / 2;
-scoreOrdiText.y = ScoreZone.y + ScoreZone.height / 2;
// Fonction de rappel pour le tick
function onGameTick() {
// Autres mises à jour du jeu ici en cours de test..
}
A small rock
a rock without any shadow and four time smaller than the original.
Blue color
a rock is being crunched so there is smoke and peaces of rocks viewed from top.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Un trophée de victoire sous forme d'une coupe d'où s'échappe un feu d'artifice.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Red bulldozer viewed strictly from top. Top view as if we are a drone.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Remove yellow lines.