After selecting the number of balls to create, that many balls will be created in random colors. These balls will then bounce up and down across the browser at different heights as well as bounce off the walls.
- Download the zip file in github and load projectile.html in a browser.
- Enter the console and type
factory()
, inputting the number of balls within the parenthesis and pressing the "enter" key. For example, if you wanted to display 10 balls, you could typefactory(10)
. - Next, type
update()
and press "enter", and the balls should begin to bounce.
No improvements or fixes scheduled at this time.
- MIT Professional Certificate in Coding Staff:
- The framework for a balls to be created and bounce across the screen and off the walls.
- Brandon Tanner:
- Updating the program so each ball is randomly assigned a color when created instead of all being created as the same color.
- Completed as an assignment for the MIT Professional Certificate in Coding: Full Stack Development with MERN.