User prompt
the fruit destroy trigger is still looping
User prompt
make it so that with each fruit destroyed the pencil becomes faster
User prompt
the speed difference is still very slow
User prompt
make it so that for each fruit destroyed, the pencil speed increases by 15%
User prompt
make the pencil speed increase by 50% for each fruit destroyed
User prompt
make the pencil speed double with each fruit destroyed, the difference in speed is still very slow
Code edit (1 edits merged)
Please save this source code
User prompt
It's not working
Code edit (1 edits merged)
Please save this source code
User prompt
After destroying 10 fruits you go to level 2, level two has two fruits, one real and one fake.
User prompt
The fake fruit is also appearing in the middle, make the fake one to the right of the real one, and switch between real and fake from time to time
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'x')' in or related to this line: 'var tempX = realFruit.x;' Line Number: 110
User prompt
make the fruit move too
User prompt
make the fruit move back and forth too. to make it harder
User prompt
make the fruit faster than the pencil
User prompt
add LK score
User prompt
make the initial movement of the fruit change randomly
User prompt
Add sound
User prompt
make the bg change from time to time
User prompt
make it so that when you level up, the screen goes dark, and adds light to the fruit
User prompt
make it so that when you destroy 10 fruits, this happens. and the screen goes black to make it difficult
User prompt
when it gets dark, the fruits give a dash
===================================================================
--- original.js
+++ change.js
@@ -87,10 +87,10 @@
LK.showGameOver();
} else if (fruit.lastWasIntersecting === false && pencil.intersects(fruit)) {
// Destroy the pencil after it touches a fruit
pencil.destroy();
- // Increase pencil speed by 50%
- pencil.speed *= 1.50;
+ // Double the pencil speed with each fruit destroyed
+ pencil.speed *= 2;
// Create a new pencil
pencil = game.addChild(new Pencil());
// Bounce animation on fruit hit
tween(fruit, {
Pencil. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
picnic bg. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
heart icon. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
mango fruit with eye and mouth animation.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
Banana with eye and mouth animation.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
picnic bg in a night sky. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows