Player Control Challenge
Use your array and random number generation skills to program this challenge where balls are randomly falling from the sky and you have to send your dog out to catch them before they hit the ground. To complete this challenge, you will have to make sure your variables are assigned properly, your if-statements are programmed correctly, your collisions are being detected perfectly, and that objects are being generated randomly.
Video
Assignment
1. Make the balls spawn from the top of the screen
2. Make the player spawn dogs
3. The balls should only be destroyed when they come into direct contact with a dog
4. Balls should be destroyed when they leave the bottom of the screen and dogs should be destroyed when they leave the left side of the screen
5. Ball 1, 2, and 3 should spawn randomly
2. Make the player spawn dogs
3. The balls should only be destroyed when they come into direct contact with a dog
4. Balls should be destroyed when they leave the bottom of the screen and dogs should be destroyed when they leave the left side of the screen
5. Ball 1, 2, and 3 should spawn randomly