User prompt
change the color of the black squares that disappear each turn, do not use the yellow color
User prompt
every hundred points change the color of the black squares to another color except yellow
User prompt
stopwatch background color in blue
User prompt
stopwatch dark blue background
User prompt
stopwatch a little lower on the top right side, clearly visible
User prompt
stopwatch put on right side top number in red color and black background
User prompt
ten second timer and it comes back after cleaning
User prompt
turn the timer back twenty seconds after cleaning
User prompt
set the timer to just twenty seconds
User prompt
Then, after each cleaning, reset the top left timer to thirty seconds
Initial prompt
small thirty second timer in a black square top left timing
===================================================================
--- original.js
+++ change.js
@@ -68,8 +68,11 @@
// Change the color of the black squares to another color except yellow every hundred points
if (LK.getScore() % 100 == 0) {
var colors = [0xFF0000, 0x00FF00, 0x0000FF, 0xFF00FF, 0x00FFFF, 0xFFFFFF];
var randomColor = colors[Math.floor(Math.random() * colors.length)];
+ for (var i = 0; i < blackSquares.length; i++) {
+ blackSquares[i].asset.color = randomColor;
+ }
}
}
}
if (blackSquares.length === 0) {