Code edit (1 edits merged)
Please save this source code
Code edit (6 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'x')' in or related to this line: 'var distance = obstacles[self.lineIndex][0].x - nextX;' Line Number: 173
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'x')' in or related to this line: 'var distance = obstacles[self.lineIndex][0].x - nextX;' Line Number: 171
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (22 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: deltaSpeed is not defined' in or related to this line: 'if (distance > 0 && distance <= 250) {' Line Number: 164
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: 'Script error.' in or related to this line: 'globalSpeedPerLine[line] = globalBaseSpeed;' Line Number: 621
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: 'if (!obstacles[line].length && !finishLine.isCut) {' Line Number: 836
Code edit (1 edits merged)
Please save this source code
Code edit (17 edits merged)
Please save this source code
User prompt
in updateProgress, when (finishLine.isCut) , reduce globalSpeedPerLine[line] to 0 progressievly
Code edit (1 edits merged)
Please save this source code
Code edit (4 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: clearInterval is not a function' in or related to this line: 'clearInterval(cutInterval);' Line Number: 351
Code edit (9 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: setInterval is not a function' in or related to this line: 'var cutInterval = setInterval(function () {' Line Number: 345
User prompt
in FinishLine, make the cut pregressive
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
===================================================================
--- original.js
+++ change.js
@@ -297,18 +297,20 @@
tint: 0x00ff00
});
self.centralRodLeft = self.attachAsset('finishLine', {
anchorX: 0.5,
- anchorY: 1,
- y: -200,
- rotation: Math.PI * 0.125,
- tint: 0x0000ff
+ anchorY: 0,
+ x: 190,
+ y: -660,
+ rotation: Math.PI * 1.125,
+ tint: 0x0000ff,
+ height: 450
});
self.rightRod = self.attachAsset('obstacle', {
anchorX: 0.5,
anchorY: 0.0,
- x: 95 + 200,
- y: -460 - 680
+ x: 95 + 260,
+ y: -460 - 660
});
self.speedX = globalSpeedPerLine[0];
self.update = function () {
self.speedX = globalSpeedPerLine[0];
@@ -609,8 +611,10 @@
game.addChild(debugMarker);
debugMarker.x = 0;
debugMarker.y = groundLevel;
}
+ cleanMenuState(); // TEMP DEBUG !!
+ initPlayingState();
}
function gamePlaying() {
//log("Game playing...");
// Update fields
Elongated elipse with black top half and white bottom half.
full close and front view of empty stands. retro gaming style
delete
delete
Basquettes à ressort futuriste. vue de profile. Retro gaming style
a blue iron man style armor flying. Retro gaming style
a blue iron man style armor flying horizontally. Retro gaming style
round button with a big "up" arrow icon and a small line under it. UI
A big black horizontal arrow pointing left with centred text 'YOU' in capital letters, painted on an orange floor.. horizontal and pointing left
remove
gold athletics medal with ribbon. retro gaming style
a black oval with a crying smiley face.