Skip to content

A classic Ping Pong game built using HTML5, CSS, and JavaScript. This simple, interactive game lets you play against the computer or a friend in a two-player mode.

License

Notifications You must be signed in to change notification settings

ramazancetinkaya/ping-pong-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ping Pong Game

A modern and visually appealing ping pong game implemented using HTML5, CSS, and JavaScript. This project offers an engaging experience with realistic physics, customizable gameplay options, and a sleek user interface.

Ping Pong Game Logo

⭐️ If you find this project useful, consider giving it a star to show your support. ⭐


Demo

Demo

Features

Game Modes

  • Human vs AI: Play against an AI opponent with dynamic behavior for a challenging experience.
  • Player vs Player: Compete with another player using keyboard controls.

Gameplay Settings

  • Choose from three match types: First of 1, First of 3, and First of 5.
  • Realistic physics engine that adapts ball speed dynamically based on paddle interactions.

Controls

  • Human vs AI:
    • Human: Move the paddle using the mouse.
  • Player vs Player:
    • Player 1: Use W and S keys to move up and down.
    • Player 2: Use Arrow Up and Arrow Down keys to move up and down.

Installation

  1. Clone this repository:
    git clone https://github.com/ramazancetinkaya/ping-pong-game.git
  2. Navigate to the project directory:
    cd ping-pong-game
  3. Open index.html in your preferred browser.

Usage

  1. Launch the game by opening index.html.
  2. Select a game mode (Human vs AI or Player vs Player).
  3. Choose a match type (First of 1, First of 3, First of 5).
  4. Start playing and enjoy!

File Structure

ping-pong-game/
├── index.html         # Main HTML file
├── style.css          # Game styles
├── script.js          # Game logic and physics engine
└── README.md          # Project documentation

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue for any enhancements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

A classic Ping Pong game built using HTML5, CSS, and JavaScript. This simple, interactive game lets you play against the computer or a friend in a two-player mode.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published