Code edit (1 edits merged)
Please save this source code
Code edit (3 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 'includes')' in this line: 'if (child instanceof Text2 && child.text.includes('Tap on ingredients')) {' Line Number: 76
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'setText')' in this line: 'self.parent.instructionText.setText('Good job! Bon appetit!\nGame Completed');' Line Number: 75
Code edit (4 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: instructionsText is not defined' in this line: 'instructionsText.visible = false;' Line Number: 131
Code edit (2 edits merged)
Please save this source code
User prompt
before gameover create and show an image
Code edit (1 edits merged)
Please save this source code
User prompt
when 80 cookieseaten, show gameover
User prompt
Fix Bug: 'ReferenceError: scoreManager is not defined' in this line: 'var cookie = new Cookie(scoreManager);' Line Number: 125
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught ReferenceError: ScoreManager is not defined' in this line: 'var scoreManager = new ScoreManager();' Line Number: 180
Code edit (1 edits merged)
Please save this source code
User prompt
make a global int called cookiesEaten
User prompt
Fix Bug: 'ReferenceError: scoreText is not defined' in this line: 'scoreText.setText(self.score);' Line Number: 35
User prompt
Fix Bug: 'ReferenceError: scoreText is not defined' in this line: 'scoreText.setText(self.score);' Line Number: 35
===================================================================
--- original.js
+++ change.js
@@ -66,9 +66,9 @@
self.removeChild(cookieGraphics);
self.addChild(biteMarkGraphics);
} else {
cookiesEaten++;
- if (cookiesEaten >= 80) {
+ if (cookiesEaten >= 24) {
LK.showGameOver();
} else {
self.destroy();
}
@@ -124,9 +124,9 @@
stage.on('down', function (obj) {
var pos = obj.event.getLocalPosition(self);
bowls.forEach(function (bowl, index) {
if (bowl.containsPoint(pos) && bowl.hasEgg && bowl.hasSugar && bowl.hasButter) {
- for (var j = 0; j < 10; j++) {
+ for (var j = 0; j < 3; j++) {
var cookie = new Cookie();
cookie.bake();
cookie.x = bowl.x + bowl.width / 2;
cookie.y = bowl.y - cookie.height / 2;
egg. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
sugar in a bag. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a butter stik in its wrapper. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a pink kithen bowl. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pile of sugar. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cracked egg white and yolk seeping. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
soft butter stick. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A delicious plain vanilla cookie. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A delicious plain vanilla cookie, where three bites have been taken. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A cute kawaian bakery interior with strawberry tiles. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A cute girl happily eating way too many vanilla cookies. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.