User prompt
Randomize the color of the background each game
User prompt
Make the ‘background' asset apply to the entire background
User prompt
Add a “background” asset that applies to the background
User prompt
Make the hoop 2x bigger
User prompt
Do not start the stopwatch until the player has moved
User prompt
Make the background have some detail, like a basketball court
User prompt
Allow the hoop to appear anywhere on the screen each game
User prompt
Do not let obstacles hit the player until the player moves
User prompt
Crear a half-circle around the spawn point adjacent to the bottom of the screen
User prompt
The ball cannot hit obstacles in the bottom 0.1 of the scren
User prompt
Obstacles do not appear within 200 pixels of the ball
User prompt
The spawn point of the ball does not have any obstacles near it
User prompt
If the hoop is on the top half of the screen, the “+1” is changed to “+3”
User prompt
If the hoop is on the bottom half of the screen, the goal is worth 2 points
User prompt
If the hoop is on the to half of the screen, the goal is worth 3 points
User prompt
If the hoop is more than halfway across the screen, the goal is worth 3 points
User prompt
If the player exceeds the screen boundary, end the game
User prompt
Allow the player to pause the game with a button in the top right corner
User prompt
Add a pause button in the top right corner
User prompt
Only end the game if an obstacle is hit
User prompt
If the game is ended, display the time survived
User prompt
Add a stopwatch in the top left corner
User prompt
Make the score numbers yellow
User prompt
Make the “+1” fade away rather than vanish
User prompt
Make the “+1” 2x larger
===================================================================
--- original.js
+++ change.js
@@ -67,9 +67,9 @@
var obstacle = game.addChild(new Obstacle());
do {
obstacle.x = Math.random() * game.width;
obstacle.y = Math.random() * game.height;
- } while (Math.abs(obstacle.x - ball.x) < 300 || Math.abs(obstacle.y - ball.y) < 300);
+ } while (Math.abs(obstacle.x - ball.x) < 200 || Math.abs(obstacle.y - ball.y) < 200);
obstacles.push(obstacle);
}
var scoreTxt = new Text2('0', {
size: 150,