An experiment to implement Atari's classic 1972 arcade game Pong with networked multiplayer support in Rust using Piston.
- install Rust
- clone this repository
> git clone https://github.com/sathwikmatsa/pong.git
- navigate to the source repository and cargo run
> cd pong/
> cargo run
- Step 1: Press 'S' or 'C' to act as a server or client respectively. None of which matters, unless you have a publicly routable IP address.
-
Step 2:
- if you press "S" (server), pass on the IP/PORT displayed on the screen to the other player
- if you press "C" (client), enter IP/PORT of the server and press ENTER. The game starts on both the computers as soon as client presses
ENTER
Note: If the server doesn't have a publicly routable IP address, ensure computers of both the players connected to the same LAN.
- Step 3: Use UP/DOWN arrow keys to move the paddle. Server gets the right paddle. Client gets the left paddle.
Tested locally on Windows.
- Add sound effects
- Gameplay: max points, endless
- Handle program flow when either of players quit
- Develop Pong AI for use in single player
- Provide native installers
Please file issues or bug reports at https://github.com/sathwikmatsa/pong/issues