Content
The goal of the game was to move the small red ball and touch the bouncing purple balls. The purple ball started at one, then split to two, then to three, and then into four balls. We connected two motors to the EV3 brick. The one connected to port A controlled horizontal animations and port B controlled vertical animations of the red ball. There was a timer to track how fast the user could beat the game.
We modified professor Danahy's code by taking the radius of the balls and halfed the purple balls each time the red ball eliminated the other balls on screen. We also doubled the speed at each interval. We added a for loop around the entire code to make sure multiple balls spawn each time.
Video
Attachments
Video