Code edit (6 edits merged)
Please save this source code
User prompt
add a Text2 in the Billboard class
Code edit (4 edits merged)
Please save this source code
User prompt
add a Billboard class
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: jumpButtonHelpText is undefined' in or related to this line: 'jumpButtonHelpText.visible = true;' Line Number: 1686
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
implement setRoundColors use a random color for the tint except the 1st color '0x1188FF' which is fixed for the player (line 0)
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: athlete is undefined' in or related to this line: 'usedColors.push(opponents[i] ? opponents[i].tint : athlete.tint);' Line Number: 1624
Code edit (3 edits merged)
Please save this source code
User prompt
in getRunnerColor, ensure that runners don't get the same color
Code edit (1 edits merged)
Please save this source code
User prompt
in Athlete class, use a random color for the tint except the 1st color '0x1188FF' which is fixed for the player (line 0)
User prompt
add more unique colors to the colorsArray
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: 'TypeError: LK.gameover is not a function' in or related to this line: 'LK.gameover();' Line Number: 1008
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 (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -970,9 +970,8 @@
function gameMenuDown(x, y, obj) {
log("gameMenuDown...");
cleanMenuState();
initHurdlesStartingState();
- LK.showGameOver();
}
function hurdlesStartingPlayingDown(x, y, obj) {
cleanHurdlesStartingState();
initPlayingState();
@@ -1004,9 +1003,9 @@
difficultyLevel++;
globalBaseSpeed = -20 - 5 * difficultyLevel;
if (difficultyLevel > 3) {
// TODO SWITCH TO SCORE STATE
- LK.gameover();
+ LK.showGameOver();
}
}
// Return to menu
cleanPlayingHurdlesState();
@@ -1499,8 +1498,10 @@
if (!obstacles[0].length && !finishLine.isCut) {
var isReached = athlete.x > finishLine.x;
if (isReached) {
raceFinishTime = Date.now();
+ var raceTime = (raceFinishTime - raceStartTime) / 1000;
+ scoreTxt.setText("Time:" + raceTime.toFixed(2) + " sec");
finishLine.isCut = true;
finishLine.cut();
bonusManager.endBonus();
hideRunButtons();
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.