Code edit (7 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'x')' in this line: 'self.x = bowl.x + bowl.width / 2;' Line Number: 30
Code edit (3 edits merged)
Please save this source code
User prompt
all eggs should spawn at x 200 to 1800
User prompt
all butters should spawn at x 200 to 1800
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: sugars is not defined' in this line: 'var bowlIndex = sugars.indexOf(self);' Line Number: 27
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: sugars is not defined' in this line: 'var bowlIndex = sugars.indexOf(self);' Line Number: 27
User prompt
Fix Bug: 'ReferenceError: sugars is not defined' in this line: 'var bowlIndex = sugars.indexOf(self);' Line Number: 27
User prompt
Fix Bug: 'ReferenceError: sugars is not defined' in this line: 'var bowlIndex = sugars.indexOf(self);' Line Number: 27
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: sugars is not defined' in this line: 'var bowlIndex = sugars.indexOf(self);' Line Number: 27
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: sugars is not defined' in this line: 'var bowlIndex = sugars.indexOf(self);' Line Number: 27
User prompt
Fix Bug: 'ReferenceError: sugars is not defined' in this line: 'var bowlIndex = sugars.indexOf(self);' Line Number: 27
User prompt
Fix Bug: 'ReferenceError: sugars is not defined' in this line: 'var bowlIndex = sugars.indexOf(self);' Line Number: 27
User prompt
Fix Bug: 'ReferenceError: sugars is not defined' in this line: 'var bowlIndex = sugars.indexOf(self);' Line Number: 27
User prompt
Fix Bug: 'ReferenceError: sugars is not defined' in this line: 'var bowlIndex = sugars.indexOf(self);' Line Number: 27
User prompt
when player taps on the sugar all the sugars go to a difrent bowl each
User prompt
Fix Bug: 'ReferenceError: butters is not defined' in this line: 'butters.forEach(function (butter, index) {' Line Number: 39
User prompt
when player taps on the butter all the butters go to a difrent bowl each
User prompt
player should still be able to tap butter and sugar
User prompt
Fix Bug: 'TypeError: egg.containsPoint is not a function' in this line: 'if (egg.containsPoint(pos)) {' Line Number: 46
User prompt
when player taps egg all the eggs go in a difrent bowel each
===================================================================
--- original.js
+++ change.js
@@ -58,11 +58,13 @@
egg.y = bowls[index % bowls.length].y - egg.height / 2;
}
});
butters.forEach(function (butter, index) {
- var targetBowl = bowls[index % bowls.length];
- butter.x = targetBowl.x + targetBowl.width / 2;
- butter.y = targetBowl.y - butter.height / 2;
+ if (butter.containsPoint(pos)) {
+ var targetBowl = bowls[index % bowls.length];
+ butter.x = targetBowl.x + targetBowl.width / 2;
+ butter.y = targetBowl.y - butter.height / 2;
+ }
});
});
var bowls = [];
var sugars = [];
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.