Skip to content

This repository contains a minimalist Pong game built with core web technologies: HTML for structure, CSS for styling, and JavaScript for game logic. The game features real-time two-player or bot gameplay on the same screen, with paddle controls and a bouncing ball.

Notifications You must be signed in to change notification settings

saad2134/pong-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pong Game

A minimalist recreation of the classic Pong game, built using HTML5, CSS, and JavaScript.

🚀 Features

  • Two-player gameplay: Compete against a friend or bot.
  • Responsive controls: Keyboard support for paddle movement.
  • Score tracking: Displays current score during gameplay.
  • Simple UI: Clean interface with retro aesthetics.

🛠️ Tech Stack

  • Frontend: HTML5, CSS3, JavaScript
  • Graphics: Canvas API
  • Controls: Keyboard event listeners

📥 Installation

  1. Clone the repository:

    git clone https://github.com/saad2134/pong-game.git
  2. Navigate to the project directory:

    cd pong-game
  3. Open index.html in your preferred web browser to start playing.

🎮 Controls

  • Player 1 (Left Paddle):

    • Move Up: W
    • Move Down: S
  • Player 2 (Right Paddle):

    • Move Up: Up Arrow
    • Move Down: Down Arrow

📸 Screenshots

Gameplay Screenshot

🤝 Contributing

Contributions are welcome. To contribute:

  1. Fork the repository.
  2. Create a new branch (feature/your-feature).
  3. Implement your changes.
  4. Submit a pull request for review.

📊 Project Stats

Repo Size Last Commit Open Issues Open PRs License Forks Stars Watchers Contributors Languages Top Language


✍️ Endnote

⭐ Star this repo if you found it helpful! Thanks for reading.


🏷 Tags

#PongGame #HTML5 #CSS3 #JavaScript #CanvasAPI #WebGame #BrowserGame #TwoPlayerGame #GameDevelopment #RetroGame #OpenSource #FrontendDevelopment #KeyboardControls #ClassicGame #GameUI #InteractiveGame #ScoreTracking #FunProject #GameDesign #MinimalistGame

About

This repository contains a minimalist Pong game built with core web technologies: HTML for structure, CSS for styling, and JavaScript for game logic. The game features real-time two-player or bot gameplay on the same screen, with paddle controls and a bouncing ball.

Topics

Resources

Stars

Watchers

Forks