User prompt
Make the green darkish.
User prompt
Make the background green.
User prompt
Make the opponent's paddle moving.
User prompt
Make it able so I can actually hit the ball. It's not working for me.
User prompt
Actually, don't make it faster.
User prompt
Make it harder
User prompt
Whenever I try to score on the opponent, the ball goes in the middle of the paddle and it kind of gets stuck. Can you fix that?
User prompt
But whenever the ball passes the player's paddle, that counts as a point for the opponent.
User prompt
Make it when the ball doesn't hit the player's paddle, it counts as the opponent's point. But when you do the same thing to the opponent, it counts as a point for you.
Initial prompt
classic pong
===================================================================
--- original.js
+++ change.js
@@ -7,10 +7,10 @@
var ballGraphics = self.attachAsset('ball', {
anchorX: 0.5,
anchorY: 0.5
});
- self.speedX = 5;
- self.speedY = 5;
+ self.speedX = 10;
+ self.speedY = 10;
self.update = function () {
self.x += self.speedX;
self.y += self.speedY;
};
@@ -25,9 +25,9 @@
anchorY: 0.5
});
self.width = 200;
self.height = 20;
- self.speed = 10;
+ self.speed = 15;
self.update = function () {
// Paddle update logic if needed
};
});