A multiplayer ping-pong game implemented using HTML Canvas, JavaScript classes, Socket.io, and Node.js.
- Clone the repository by running
git clone https://github.com/vikraj01/ping-pong.git
- Install the required dependencies by running
npm install
- Run the server by running
node server.js
- Open the game in your browser by navigating to http://localhost:3000
- To play with another player, share the room code with them and have them enter it on the main menu.
- To play against the AI, select the AI option on the main menu
Use the mouse pointer to move your paddle, the goal is to hit the ball past your opponent's paddle to score a point.
- Create and join rooms for multiplayer
- Play against AI
- Built with HTML canvas, JavaScript classes, Socket.io, and Node.js
- HTML Canvas - For rendering the game
- JavaScript - Programming language
- Socket.io - Real-time communication library
- Node.js - JavaScript runtime
- Vikraj - vikraj01
- Inspiration: classic ping-pong games