Skip to content

MDJAmin/pong-game-html5-canvas-javascript-browser-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo

Check out the live demo: GitHub Pages Demo

Pong Game

A simple and interactive Pong game built with HTML5, CSS, and JavaScript. The game features a player vs. player mode where you control paddles to hit the ball back and forth. The game includes a score counter, pause, start, stop, and restart buttons for full control over the gameplay.

Project Features

  • Player vs. Player Mode: Two players control paddles to play against each other.
  • Score Display: Displays the current score for both players.
  • Control Buttons:
    • Start: Starts a new game.
    • Stop: Pauses the game.
    • Restart: Restarts the game from the beginning.
  • Pause Icon: A button to pause the game.

Libraries Used

  • Boxicons: For the pause button icon.

Installation

  1. Navigate to the project folder:
cd pong-game
  1. Open the index.html file in your browser to play the game.

Usage

  • The game starts when you click on the Start button and stops with the Stop button.

  • To restart the game, click the Restart button.

  • Use the paddles to hit the ball back and forth and score points.

  • The Pause button allows you to pause the game.

Author

Created by MDJAmin. Check out more projects on GitHub.

Releases

No releases published

Packages

 
 
 

Contributors