Homework 6

Functions & Game, 2/26/2021

I created neon pong. I was inspired by neon arcades and computer games I would play as a kid including: https://m.twoplayergames.org/neon-pong.html and https://www.ponggame.org/.

I used a function ballbounces() in order to make sure the ball stayed within the bounds. I named which paddle was the player paddle and I named the ball ping pong. I used color (‘#’) to create neon hex colors. To control the player paddle I used mouseY. I did struggle with creating a collision detection. Below is the codepen and then the art references.

Here are my art references:

--

--