Daniel and Jason’s Ball Trouble Game

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. 

Gallery
Video
Attachments
AttachmentTypeSize
workingsplittingball_582a300e91026working splitting ball.vi29.89 KB
Video

Leave a Reply

Your email address will not be published. Required fields are marked *