Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancements and Bug Fixes for Ping-Pong Game Code #162

Open
Amansingh0807 opened this issue Jan 12, 2025 · 0 comments
Open

Enhancements and Bug Fixes for Ping-Pong Game Code #162

Amansingh0807 opened this issue Jan 12, 2025 · 0 comments

Comments

@Amansingh0807
Copy link

The current Ping-Pong game code is functional but can be improved. Below are the issues and enhancement suggestions:

Bug:

  • Ball speed increases indefinitely without a cap, causing unnatural gameplay.

Enhancements:

  • Add a maximum limit for the ball speed.
  • Improve responsiveness of paddles (adjust the computer paddle's AI level for better difficulty balance).
  • Make the canvas dynamically resize based on the browser window.
  • Add sound effects for paddle hits, wall bounces, and scoring.
  • Include a game-over condition when a player reaches a predefined score.

Code Structure:

  • Modularize the code into functions or classes for better readability and maintainability.
  • Add comments for all major logic and functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant