Variable name changes for more clarity
Closed this issue · 1 comments
-
In the
Paddle
interface, theleft
andright
variables are boolean values that indicate whether the paddle is moving left or right. However, it's not immediately clear what these values represent, since the name of the interface isPaddle
and not something likePaddleInput
. To make the purpose of these variables more clear, you might consider renaming them to something likeisMovingLeft
andisMovingRight
. -
In the
Ball
interface, thexVel
andyVel
variables represent the velocity of the ball in the x and y directions, respectively. However, the name of the variables doesn't make it immediately clear what they represent. To make the purpose of these variables more clear, you might consider renaming them to something likexVelocity
andyVelocity.
Unnecessary.