Initial prompt
Soccer
User prompt
Add background asset
User prompt
Add timer in game
User prompt
Remove timer
User prompt
Limit the score until 5
User prompt
Spawn game over when the score is already 5
User prompt
Make the ball fast
User prompt
Reduce the speed of the ball a bit
User prompt
Make the player a bit fast
User prompt
Reduce lag from AI
User prompt
Remove lag from AI
User prompt
Make the ball fast +5
User prompt
The ball is going only to the middle in the start
User prompt
Player and AI's movement is fast
User prompt
Remove AI from becoming lag because of movement speed
User prompt
Background asset improve resolution
User prompt
High resolution of the background
User prompt
AI in normal mode
User prompt
AI in easy mode
User prompt
Normal mode AI
===================================================================
--- original.js
+++ change.js
@@ -48,16 +48,20 @@
}
LK.on('tick', function () {
ball.move();
if (ball.x <= 0) {
- aiScore++;
- updateScore();
+ if (aiScore < 5) {
+ aiScore++;
+ updateScore();
+ }
ball.x = 2048 / 2;
ball.y = 2732 / 2;
}
if (ball.x >= 2048) {
- playerScore++;
- updateScore();
+ if (playerScore < 5) {
+ playerScore++;
+ updateScore();
+ }
ball.x = 2048 / 2;
ball.y = 2732 / 2;
}
if (ball.y <= 0 || ball.y >= 2732) {