Code edit (5 edits merged)
Please save this source code
User prompt
create a function that display a popup with title "Congratulations !" and a button "Next level".
Code edit (2 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: 'player.ball1.x = self.pathSteps[0].x;' Line Number: 170
Code edit (3 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: 'player.ball1.x = self.pathSteps[0].x;' Line Number: 169
Code edit (1 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: 'player.ball1.x = self.pathSteps[0].x;' Line Number: 169
Code edit (1 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: 'player.ball1.x = self.pathSteps[0].x;' Line Number: 169
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'x')' in or related to this line: 'player.ball1.x = self.pathSteps[0].x;' Line Number: 169
Code edit (3 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: 'player.ball1.x = self.pathSteps[0].x;' Line Number: 168
Code edit (1 edits merged)
Please save this source code
User prompt
if the path step is cleared (only the final step left), start a new level.
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: LK.showWin is not a function' in or related to this line: 'LK.showWin();' Line Number: 214
Code edit (2 edits merged)
Please save this source code
User prompt
when the user click, if a ball are on the last path step, the player win.
Code edit (5 edits merged)
Please save this source code
User prompt
the first and last path step should have different assets.
Code edit (3 edits merged)
Please save this source code
User prompt
the path step positions should be stored in an array and read progressively when creating a new step.
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'length')' in or related to this line: 'for (var i = 0; i < path.pathSteps.length; i++) {' Line Number: 74
===================================================================
--- original.js
+++ change.js
@@ -154,12 +154,14 @@
for (var i = 0; i < 10; i++) {
self.nextStep();
}
self.setupPlayer = function (player) {
- player.ball1.x = self.pathSteps[0].x;
- player.ball1.y = self.pathSteps[0].y;
- player.ball1.rotating = false;
- player.ball2.rotating = true;
+ if (self.pathSteps[0]) {
+ player.ball1.x = self.pathSteps[0].x;
+ player.ball1.y = self.pathSteps[0].y;
+ player.ball1.rotating = false;
+ player.ball2.rotating = true;
+ }
};
});
var PathStep = Container.expand(function () {
var self = Container.call(this);
tête de mort rouge. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
tête de mort coter droit en bleu coter gauche en rouge. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
tourbillon bleu et rouge. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
bone. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
tourbillon rouge et bleu. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.