User prompt
slightly reduce the frequency of bad items
User prompt
show lifes based on how many lifes you have left
User prompt
give 3 lifes
User prompt
put life at the top right
User prompt
show lifes in the middle at the bottom instead
User prompt
Please fix the bug: 'ReferenceError: scoreTxt is not defined' in or related to this line: 'scoreTxt.setText(LK.getScore());' Line Number: 140
User prompt
show lifes at the top right
User prompt
swap the lives number with the life class, show the number of lives based on how many lives you have
User prompt
create life class and attach the asset
User prompt
put lives at the top right
User prompt
add 3 lives
User prompt
Please fix the bug: 'ReferenceError: bucketGraphics is not defined' in or related to this line: 'bucketGraphics.visible = false;' Line Number: 50
User prompt
Please fix the bug: 'ReferenceError: bucketGraphics is not defined' in or related to this line: 'bucketGraphics.visible = false;' Line Number: 49
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'visible')' in or related to this line: 'if (bucket.bucketGraphics.visible) {' Line Number: 117
User prompt
only increment points when the mouth is open, if the mouth is closed and you touch the food, game over
User prompt
Please fix the bug: 'ReferenceError: closedGraphics is not defined' in or related to this line: 'closedGraphics.visible = true;' Line Number: 45
User prompt
when the mouth is closed, hide the other one. WHen the mouth is open, hide the closed
User prompt
when no noise make the mouth closed, when volume and noise, make the mouth closed ↪💡 Consider importing and using the following plugins: @upit/facekit.v1
User prompt
Please fix the bug: 'TypeError: self.swapAsset is not a function' in or related to this line: 'self.swapAsset('bucket');' Line Number: 40
User prompt
make the mouth closed by default, when theres volume, swap to the bucket asset and make it open
User prompt
make the game over when a good falling object hits the bottom
User prompt
make bad items appear more frequently, every few seconds
User prompt
make the bad items game over when it touches the mouth as opposed to touching the bottom
User prompt
make bad items appear much rarer, once every 10-20 seconds sequentially
User prompt
add bad items that game over if they hit the bottom
===================================================================
--- original.js
+++ change.js
@@ -157,9 +157,9 @@
fallingObjects.push(newObject);
game.addChild(newObject);
}
// Spawn bad items every few seconds
- if (LK.ticks % (60 + Math.floor(Math.random() * 60)) == 0) {
+ if (LK.ticks % (80 + Math.floor(Math.random() * 80)) == 0) {
var newBadItem = new BadItem();
newBadItem.x = Math.random() * 2048;
newBadItem.y = 0;
badItems.push(newBadItem);