Basic-Python-Programs
Basic-Python-Programs copied to clipboard
Pong_Game.py
Issue:
line 95, in
game crashes moments after starting. Paddle appears on left hand side but there is no paddle on the right hand side of the game
hi, can i work on this issue
The error you are facing in the Pong game is because the ball_dx variable is not being found. Instead, there is a variable called ballxdirection. To fix the error you will need to replace all instances of ball_dx with ballxdirection.
the peddle appears on the opposite side because the number has to be negative to be on the right.
However, keep in mind that this correction may lead to another error in the score part. This is because the game still needs other fixes, like the logic of how the ball will hit the walls and also the logic to not let the paddles leave the screen.
You can make the changes yourself to fix it or if you want I can clone the project create a new branch and ask for a PR or I can make the corrections directly in the project, you know, I'm looking for my first issue on github.
hi, can i work on this issue?I'm looking for my first issue on github.