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
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
User prompt
Please fix the bug: 'ReferenceError: pathSteps is not defined' in or related to this line: 'for (var i = 0; i < pathSteps.length; i++) {' Line Number: 74
Code edit (2 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: self.nextStep is not a function' in or related to this line: 'self.nextStep();' Line Number: 43
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught ReferenceError: addPathStep is not defined' in or related to this line: 'addPathStep(1024, 2400 - curStep * 2 * 100);' Line Number: 32
User prompt
Please fix the bug: 'Uncaught TypeError: self.addPathStep is not a function' in or related to this line: 'self.addPathStep(1024, 2400 - curStep * 2 * 100);' Line Number: 32
User prompt
Please fix the bug: 'Uncaught TypeError: self.addPathStep is not a function' in or related to this line: 'self.addPathStep(1024, 2400 - curStep * 2 * 100);' Line Number: 42
Code edit (2 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught ReferenceError: addPathStep is not defined' in or related to this line: 'addPathStep(1024, 2400 - curStep * 2 * 100);' Line Number: 42
Code edit (3 edits merged)
Please save this source code
User prompt
ensure the player balls are always displayed on top of the path steps.
Code edit (2 edits merged)
Please save this source code
User prompt
create a function which add a path step
User prompt
Please fix the bug: 'TypeError: pathSteps.removeIndex is not a function' in or related to this line: 'pathSteps.removeIndex(smallPathStep);' Line Number: 70
User prompt
Please fix the bug: 'ReferenceError: min is not defined' in or related to this line: 'smallPathStep = min(smallPathStep, i);' Line Number: 63
===================================================================
--- original.js
+++ change.js
@@ -18,14 +18,14 @@
};
});
var Path = Container.expand(function () {
var self = Container.call(this);
- var pathSteps = [];
+ self.pathSteps = [];
self.addPathStep = function (x, y) {
var step = game.addChild(new PathStep());
step.x = x;
step.y = y;
- pathSteps.push(step);
+ self.pathSteps.push(step);
};
var curStep = 0;
self.nextStep = function () {
self.addPathStep(1024, 2400 - curStep * 2 * 100);
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.