A one or two player pong game implemented in TypeScript and WebSockets
- Use
w, s, d
(up, down, idle) to control your paddle - Check "bot mode" if you want a bot to control your paddle for you
git clone https://github.com/buchowski/pong-websockets
cd pong-websockets/
npm install
nodemon index.js
ornode index.js
to start servernpm run dev
to watch forapp.ts
changes- Game is served at
localhost:3000
- Open
localhost:3000
in your browser - Choose Singleplayer
- Open
localhost:3000
in your browser - Choose Multiplayer -> New Multiplayer Game
- In a new browser tab open
localhost:3000
- Choose Multiplayer - Join Multiplayer Game
- Game will start immediately. The game creator controls the left paddle. The joiner controls the right paddle.