Code edit (22 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'var countdownInterval = setInterval(function () {' Line Number: 55
User prompt
Add a new countdown class to the game, which goes "Ready" "Set" "Go" to start the game
Code edit (1 edits merged)
Please save this source code
Code edit (3 edits merged)
Please save this source code
User prompt
In BonusIndicator update the call to rgbToHsv to correctly calculate the R,g,b values from color
Code edit (6 edits merged)
Please save this source code
User prompt
the hsv calculation on BonusIndicator seems in correct, add a RGB to HSV method in the game code
Code edit (4 edits merged)
Please save this source code
User prompt
Update outlineColor in BonusIndicator such that it's a 180degrees rotated HSV color from the color parsed to BonusIndicator
Code edit (2 edits merged)
Please save this source code
User prompt
In bonus indicator add white drop shadow to scoreLabel
Code edit (1 edits merged)
Please save this source code
Code edit (4 edits merged)
Please save this source code
User prompt
Add drop shadow to scoreLabel
Code edit (7 edits merged)
Please save this source code
User prompt
Add white stroke outline to BonusIndicator label
User prompt
in BonusIndicator, use color for the color of the text. Note you have to convert from int color to string color with the format #xxxxx
Code edit (3 edits merged)
Please save this source code
User prompt
Add a label to OverhangPlate which shows the value of score.
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
Insert place sound at //Play sound here
Code edit (1 edits merged)
Please save this source code
User prompt
Migrate to the latest version of LK
===================================================================
--- original.js
+++ change.js
@@ -43,14 +43,14 @@
self.countdown = function () {
var countdownTexts = ['Ready', 'Set', 'Go'];
var index = 0;
var countdownInterval = LK.setInterval(function () {
- countdownLabel.setText(countdownTexts[index]);
- index++;
if (index >= countdownTexts.length) {
LK.clearInterval(countdownInterval);
self.destroy();
}
+ countdownLabel.setText(countdownTexts[index]);
+ index++;
}, 1000);
};
});
var OverhangPlate = Container.expand(function (width, direction, color) {