User prompt
The buckets should be reshuffled by the player to allow the player to collect balls
User prompt
Game ends when a ball is not collected
User prompt
RedBall should be collected by RedBucket
User prompt
BlueBall should be collected by BlueBucket
User prompt
GreenBall should be collected by the GreenBucket
User prompt
Add the green ball to the screen to fall down
User prompt
Allow the player to drag the buckets only horizontally
User prompt
Allow the player to drag the buckets
User prompt
Once the player collects ten balls, add the speed of dropping the balls
User prompt
Change the colors of the balls falling to their respective bucket colors and make them round
User prompt
Add click event on the GreenBucket
User prompt
Allow the player to move the GreenBucket to either it's left or right
User prompt
Stop the other balls from falling down and only drop the blue balls
User prompt
Make the blue ball to drop at random intervals and to be captured using the blue bucket
User prompt
Add the RedBucket to the screen
User prompt
Allow the player to move the buckets on the left or right side
User prompt
Add click event on the BlueBucket and allow the player to move the bucket on the canvas
User prompt
Add click event on all the buckets on the screen
User prompt
Allow the player to drag the BlueBucket, GreenBucket and RedBucket to avoid different colors of balls from falling inside
User prompt
Add the red ball onto the screen to fall down and allow the player to collect the red ball using the red bucket
User prompt
Add the BlueBucket onto the canvas
User prompt
Add the buckets to the canvas
User prompt
Allow the player to move the buckets
User prompt
Change the canvas color to turquoise
User prompt
Add the buckets at the bottom of the game canvas
===================================================================
--- original.js
+++ change.js
@@ -120,23 +120,10 @@
y: y,
width: 1,
height: 1
})) {
- if (buckets[j].color === 'Blue') {
- buckets[j].x = x - buckets[j].width / 2;
- buckets[j].y = 2600;
- console.log("BlueBucket was clicked and moved");
- }
- if (buckets[j].color === 'Green') {
- buckets[j].x = x - buckets[j].width / 2;
- buckets[j].y = 2600;
- console.log("GreenBucket was clicked and moved");
- }
- if (buckets[j].color === 'Red') {
- buckets[j].x = x - buckets[j].width / 2;
- buckets[j].y = 2600;
- console.log("RedBucket was clicked and moved");
- }
+ buckets[j].x = x - buckets[j].width / 2;
+ buckets[j].y = 2600;
}
}
};
game.move = function (x, y, obj) {
A red ball with the words bonus. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A Green ball written bonus. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Metallic marron clear background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.