Skip to content

A multiplayer ping-pong game implemented using HTML Canvas, JavaScript classes, Socket.io, and Node.js.

Notifications You must be signed in to change notification settings

vikraj66/ping-pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ping Pong

A multiplayer ping-pong game implemented using HTML Canvas, JavaScript classes, Socket.io, and Node.js.

Getting Started

  1. Clone the repository by running git clone https://github.com/vikraj01/ping-pong.git
  2. Install the required dependencies by running npm install
  3. Run the server by running node server.js
  4. Open the game in your browser by navigating to http://localhost:3000
  5. To play with another player, share the room code with them and have them enter it on the main menu.
  6. To play against the AI, select the AI option on the main menu

Gameplay

Use the mouse pointer to move your paddle, the goal is to hit the ball past your opponent's paddle to score a point.

Features

  • Create and join rooms for multiplayer
  • Play against AI
  • Built with HTML canvas, JavaScript classes, Socket.io, and Node.js

Built With

Authors

Acknowledgments

  • Inspiration: classic ping-pong games

About

A multiplayer ping-pong game implemented using HTML Canvas, JavaScript classes, Socket.io, and Node.js.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published