Skip to content

An experiment to implement Atari's classic 1972 arcade game Pong with networked multiplayer support in Rust using Piston.

Notifications You must be signed in to change notification settings

sathwikmatsa/pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pong

An experiment to implement Atari's classic 1972 arcade game Pong with networked multiplayer support in Rust using Piston.

Run

  1. install Rust
  2. clone this repository
> git clone https://github.com/sathwikmatsa/pong.git
  1. navigate to the source repository and cargo run
> cd pong/
> cargo run

Instructions

  • 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.

welcome screen


  • Step 2:

    • if you press "S" (server), pass on the IP/PORT displayed on the screen to the other player

    server screen

    • 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

    client screen

    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.

game play

Testing

Tested locally on Windows.

Todo

  • 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

About

An experiment to implement Atari's classic 1972 arcade game Pong with networked multiplayer support in Rust using Piston.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages