Original
Spin-Off
Galaxy Pong
Made using: Khan Academy Computer Science.
For this project, I chose a very simple user-created spin-off and spent some time on transforming it into an interactive game. First, I worked on creating all the variables that I would need. I then changed the large ellipse into a rectangle, which I moved to the side to turn into the paddle. I then made the small star into a bouncy ball that bounced off the walls. The hardest part was figuring out how to get the ball to bounce off the paddle. After making the ball not bounce off of the wall that the paddle was on, I made it re-appear on the other side of the court. Then I created a simple line of code to make the ball bounce off the paddle. The code did not work, so I submitted a help request. It turns out there were only a few minor issues in my code, which were fixed pretty quickly, giving you the game you see now!