User prompt
When setting score text also update LK.setScore
User prompt
Make sure the highscore text value is initialized with a zero
User prompt
Make sure the highscore value is initialized with a zero
User prompt
Reste ball speed when computer misses
User prompt
If computer misses the ball I should get a point
User prompt
If I miss the ball the game should game over
User prompt
Make score a simple int value on how many times the ai missed the ball
User prompt
Make paddles twice as fast
User prompt
Only bounce ball on paddles if it’s moving towards the paddle
User prompt
Instead of setting y speed on paddle hit, add the new value to the existing y speed
User prompt
Make ball move 2x as fast
User prompt
Don’t subtract 5 from hit ratio
User prompt
Modify the ball speed based on where on the paddle the ball hits
User prompt
Limit how fast the computer can move its paddle to the same speed as my paddle
User prompt
Also set the paddle target position on mouse down
User prompt
My paddle stop moving if I stop moving my finger on the screen. Cache my fiber position and move the paddle toward that spot
User prompt
The paddle should move towards my finger even when I am not moving my finger on the acreen
User prompt
Make my paddle move towards my finger at all times
Initial prompt
Pong
===================================================================
--- original.js
+++ change.js
@@ -24,8 +24,9 @@
var aiPaddle = self.addChild(new Paddle());
var ball = self.addChild(new Ball());
var paddles = [playerPaddle, aiPaddle];
var score = 0;
+ var highscore = 0;
playerPaddle.x = 100;
playerPaddle.y = 2732 / 2;
aiPaddle.x = 2048 - 100;
aiPaddle.y = 2732 / 2;