This a simple online multiplayer pingpong browser game that is build using socketio and express. The front-end uses html, css and vanilla javascript as I was just learning and playing around with socket.io
A client can connect to the server and won't be able to join a game until another client (player) is connected as well. Once there are any 2 players ready to play at any given time, the server will create a room and the 2 players will join that newly created room and start playing. The game doesn't end unless one of the player disconnects.
- First clone the repo
gh repo clone maxlar01/socketio-pingpong
- Navigate to the root directory and install project dependencies
npm i
- Open index.html and have fun π
You can read more about it here