
Planning
​
Our group thoughtfully considered how best to create our code. We followed the following steps to successfully create Gravity Pong:
​
​
1. We wanted to find a simple Pong game on the internet that we could make all of our specific modifications to. (Version 1.0)
​
2. After finding our Pong game, we wanted to make these modifications: UI (color/text), making it repeatable, making it faster and having variable deflection, and creating a “gravity” function.
​
3. UI: We changed the background color and changed the name on Repl (it doesn’t show up on Canopy).
​
4. Making it repeatable.
-
We deleted the “Game Over” function screen, which made the game stop and the ball disappear once you died. (Version 2.0)
-
Next, we made the ball regenerate on the screen after you died. (Version 2.1)
-
We modified the ball to regenerate in the same spot in the middle of the screen after you died. (Version 2.2)
​​
5. Making the gravity effect.
-
We first created a gravity effect so the ball wouldn’t bounce off all of the walls, it instead rose and fell like it would with real gravity. (Version 3.0)
-
We increased the speed of the ball and paddle.
-
We created different “zones” on the paddle that decreased or maintained the speed of the ball (Variable Energy Return). (Versions 4.0 and 4.1)
​
6. Debugging.
-
We fixed an issue that made the ball roll inside the paddle when you hit it on the very corner. (Version 4.2)
​
​