/pingpong-game

Ping Pong game in HTML5, CSS3, JavaScript, Node JS, Docker

Primary LanguageJavaScript

Ping Pong Game

This is a ping pong game which was developed for a school project.

How to play ?

You can play :

  • against either the IA or other players by creating an online game.
  • using either the mouse or keypad.

Steps to create an online game :

  1. Player 1 : Create a room and choose for the number of players, 2 or 4.
  2. Other players : Join the room by giving the room id.
  3. Start the game by entering the spacebar or by clicking on the start button.
  4. The winner is the first to have 6 points.

Commands to run the application

In the project directory, you can :

  • Use npm package manager:
npm install
# You can also start the project with nodemon
npm start
docker-compose build
docker-compose up

Open http://localhost:8080 to view it in the browser.

Technologies

  • HTML5 (Canvas)
  • CSS3
  • Node JS (Express JS)
  • Socket.IO
  • Docker

Screenshots

gamepage