Basketball

Objective: To make an entertaining program for people to play with, and understand how to make objects move with Javascript.

Problem: Figuring out how the basketball move “realistically”, changing direction once it bounces a certain way, since in real life it doesn’t just eternally spin in one direction the entire time.

Solution: We made the basketball spin in the opposite direction when hitting certain sides of the walls.

Copyright © Konan Le 2019