Code edit (4 edits merged)
Please save this source code
User prompt
if ball bounces twice on the same rim, reduce gravity to 0.
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'call')' in this line: 'if (ball.x + ball.width / 2 < 0 || ball.x - ball.width / 2 > 2048) {' Line Number: 309
User prompt
if ball bounces twice with the same rim, exit tick event, wait for 2 seconds, and do game over.
User prompt
if ball bounce twice with the same rim it should not move downwards anymore.
Code edit (6 edits merged)
Please save this source code
User prompt
If the ball bounces on the same rim more than once, then freeze the ball in that position.
User prompt
do not reduce alpha when scored
Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
when ball is scored reduce its size and keep it in the same x and y as when it scored. Game should then continue as normal.
Code edit (3 edits merged)
Please save this source code
User prompt
when ball scores reduce its speed by 100%
User prompt
change effect when ball is scored. instead of dim reduce its size fast
User prompt
after ball has scored keep it in the same spot until time for next shot
User prompt
when the ball scores, replace ball dim efect after score for an effect to reduce the ball size. also keep the ball still in the same place while reducing its size.
User prompt
replace ball dim efect after score for an effect to reduce the ball size.
Code edit (5 edits merged)
Please save this source code
User prompt
after ball stars scaling down and reaches 0 it should not appear again until next shot
Code edit (2 edits merged)
Please save this source code
User prompt
if ball has scored decrease the size of the ball very fast until it disappears
Code edit (2 edits merged)
Please save this source code
User prompt
move score 50 pixels up
User prompt
make score font white
===================================================================
--- original.js
+++ change.js
@@ -37,9 +37,9 @@
self.move = function () {
if (self.bounceCount < 2) {
self.speed.y += 3.2;
} else {
- self.speed.y += 0;
+ self.speed.y += 1;
}
self.x += self.speed.x;
self.y += self.speed.y;
self.rotation += self.speed.x * 0.01;
Cartoon. Grass background. Backyard. Top view. In game asset Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Cartoon. Wood board. In game asset. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
stars particles. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.