Skip to content

This simple and interactive game is built using HTML, CSS, and JavaScript. Challenge the computer opponent in a thrilling ping pong match

License

Notifications You must be signed in to change notification settings

sanchiitvijay/ball_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ping Pong Ball Game

Welcome to the Ping Pong Ball Game! This simple and interactive game is built using HTML, CSS, and JavaScript. Challenge the computer opponent in a thrilling ping pong match and see if you can emerge victorious!

How to Play

  1. Start the Match:

    • Click on the "Start" button to begin the match.
  2. Move Your Paddle:

    • Hover your cursor over the paddle to control its movement.
    • The paddle will follow the movement of your cursor.
  3. Collision Speed Boost:

    • With each collision between the ball and the paddles, the speed of the ball increases.
    • Be ready for faster and more challenging gameplay as the match progresses.
  4. Score 5 Points to Win:

    • The first player to score 5 points wins the match.
    • Keep an eye on the score display to track your progress.
  5. Restart the Match:

    • If you want to replay or restart the match, click on the "Restart" button.
    • This allows you to start a new game and try to beat the computer opponent once again.

Technology Used

  • HTML:

    • Structured the basic layout of the game.
    • Created the start button, restart button, and score display.
  • CSS:

    • Styled the game elements to make it visually appealing.
    • Designed the paddles, ball, buttons, and overall layout.
  • JavaScript:

    • Implemented the game logic and dynamics.
    • Managed paddle movement, ball collision, scoring, and game progression.
    • Integrated speed increment for added excitement.

How to Run

Visit the Ping Pong Ball Game hosted on the repository.

Enjoy the Ping Pong Ball Game, and may the best player win!

About

This simple and interactive game is built using HTML, CSS, and JavaScript. Challenge the computer opponent in a thrilling ping pong match

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published