User prompt
Fix Bug: 'TypeError: LK.gui.topCenter.getChildByName is not a function' in this line: 'LK.gui.topCenter.getChildByName('scoreText').setText(self.score);' Line Number: 35
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'incrementScore')' in this line: 'this.scoreManager.incrementScore();' Line Number: 105
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'incrementScore')' in this line: 'this.scoreManager.incrementScore();' Line Number: 104
User prompt
Fix Bug: 'ReferenceError: scoreManager is not defined' in this line: 'scoreManager.incrementScore();' Line Number: 104
User prompt
when a cookie is destroyed increase player score by 1
Code edit (1 edits merged)
Please save this source code
User prompt
create a text at top center: tap on ingredients to add them to the bowls, then tap to make cookies and eat them :)
Code edit (1 edits merged)
Please save this source code
User prompt
make a background image for whole scene
User prompt
give cookie random rotation on spaw
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: self.addBiteMark is not a function' in this line: 'self.addBiteMark();' Line Number: 107
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'push')' in this line: 'bowls.push(bowl);' Line Number: 104
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.addChild(egg);' Line Number: 172
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.addChild(egg);' Line Number: 172
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.addChild(egg);' Line Number: 172
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.addChild(egg);' Line Number: 174
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.addChild(egg);' Line Number: 173
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.addChild(butter);' Line Number: 183
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.addChild(egg);' Line Number: 188
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.addChild(egg);' Line Number: 173
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading '0')' in this line: 'self.addChild(eggs[eggs.length - 1]);' Line Number: 173
===================================================================
--- original.js
+++ change.js
@@ -137,9 +137,9 @@
var cookie = new Cookie();
cookie.bake();
cookie.x = bowl.x + bowl.width / 2;
cookie.y = bowl.y - cookie.height / 2;
- cookie.roation = Math.random() * (Math.PI * 2);
+ cookie.rotation = Math.random() * (Math.PI * 2);
self.addChild(cookie);
cookies.push(cookie);
cookie.flyToRandomPosition();
cookie.on('down', function () {
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.