Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
Migrate to the latest version of LK
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toString')' in this line: 'var scoreText = new Text2('You got ' + this.playerScore.toString() + ' out of 50\nfruits in the right baskets!', {' Line Number: 255
User prompt
change the scoretext before gameover to display actual playerscore, not 0
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toString')' in this line: 'var scoreText = new Text2('You got ' + this.playerScore.toString() + ' out of 50\nfruits in the right baskets!', {' Line Number: 255
User prompt
change scoreText to reference playerscore instead og scoreinstance
User prompt
change score to reference a playerscore value stored in game
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toString')' in this line: 'var scoreText = new Text2('You got ' + (scoreInstance ? scoreInstance.scoreValue.toString() : '0') + ' out of 50\nfruits in the right baskets!', {' Line Number: 254
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toString')' in this line: 'var scoreText = new Text2('You got ' + scoreInstance.scoreValue.toString() + ' out of 50\nfruits in the right baskets!', {' Line Number: 254
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'scoreValue')' in this line: 'var scoreText = new Text2('You got ' + this.scoreInstance.scoreValue.toString() + ' out of 50\nfruits in the right baskets!', {' Line Number: 254
Code edit (3 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'toString')' in this line: 'var scoreText = new Text2('You got ' + scoreInstance.scoreValue.toString() + ' out of 50\nfruits in the right baskets!', {' Line Number: 254
Code edit (1 edits merged)
Please save this source code
User prompt
before gameover, show a text label: you got X out of 50 fruits in the right baskets! where x is playerscore
User prompt
if spawncount is 100 and no balls exists, show game over text
User prompt
only create new balls while spawncount is less than 100
User prompt
increment spawncount by 1 each time a ball is spawned
User prompt
make a variable spawncount and set it to 0 at start
User prompt
move score label left so it always show all text
User prompt
on click anywhere, hide starttext and set game.gamestarted = true
===================================================================
--- original.js
+++ change.js
@@ -288,9 +288,9 @@
game.children[i]._update_migrated();
}
}
if (spawncount >= 10 && game.balls.length === 0) {
- var scoreText = new Text2('You got ' + game.playerScore.toString() + ' out of 10\nfruits in the right baskets!', {
+ var scoreText = new Text2('You got ' + game.playerScore.toString() + ' fruits\nin the right baskets!', {
size: 80,
fill: '#ffffff',
align: 'center'
});
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.