User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'length')' in this line: 'for (var i = 0; i < this.balls.length; i++) {' Line Number: 156
User prompt
Fix Bug: 'ReferenceError: balls is not defined' in this line: 'for (var i = 0; i < balls.length; i++) {' Line Number: 156
User prompt
Fix Bug: 'ReferenceError: balls is not defined' in this line: 'for (var i = 0; i < balls.length; i++) {' Line Number: 156
User prompt
Fix Bug: 'ReferenceError: balls is not defined' in this line: 'balls.splice(balls.indexOf(ball), 1);' Line Number: 67
User prompt
also remove destroyed balls from balls array
Code edit (3 edits merged)
Please save this source code
User prompt
if a ball hits a goal of another color, destroy the ball
User prompt
Fix Bug: 'TypeError: self.getChildByName is not a function' in this line: 'var scoreInstance = self.getChildByName('scoreInstance');' Line Number: 152
User prompt
if a ball hits a goal remove ball and give 1 point if goal and ball have same color
User prompt
Fix Bug: 'Timeout.tick error: countdownClock is not defined' in this line: 'countdownClock.setText(countdownTime.toString());' Line Number: 143
User prompt
delete gui
User prompt
clock seems invisible, why?
User prompt
position clock in center of screen
User prompt
move clock down slightly
User prompt
show clock top center of screen
Code edit (1 edits merged)
Please save this source code
User prompt
move clock to the right
User prompt
make sure whole clock is visible on screen
User prompt
move clock display to top left
User prompt
move clock to top left and score to top right
User prompt
set score to display starting score of 0
User prompt
make score counter in top right corner
User prompt
make four goal areas along top, bottom, left and right game edges, corresponsing to colors red, blue, green, yellow
User prompt
make a clock counting down from 60 seconds top centre of screen
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -147,9 +147,9 @@
}
}, 2000);
}
function reset() {
- for (var i = 0; i < this.balls.length; i++) {
+ for (var i = 0; i < self.balls.length; i++) {
balls[i].reset();
}
}
LK.on('tick', function () {
raspberry Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
lemon slice. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
black currant. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
green apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
yellow plastic tray. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
green plastic tray. topdown view. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
blue plastic tray. topdown view. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
red plastic tray. topdown view. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
top down forest clearing with small bushes.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
lighter color blue.
A little farmer that is comically square shaped.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.