Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1008 Bytes

README.md

File metadata and controls

46 lines (35 loc) · 1008 Bytes

Pong multiplayer

Pong multiplayer is a Table-Tennis game that supports LAN multiplayer (and singleplayer).

  • Written in python with pyglet
  • Using socket connections to share data with the server

TODO

  • Game pause
  • GUI to define server

Running

Before running anything, clone the repository:

git clone https://github.com/joni2back/pong-multiplayer
cd pong-multiplayer

Running server

sudo pip install pyglet
vim src/lib/settings.py # in order to define the server ip and port
python ./src/server.py

Alternatively, with Nix:

vim src/lib/settings.py # in order to define the server ip and port
nix-shell --pure --run './src/server.py'

Running client

vim src/lib/settings.py # in order to define server connection ip and port
python src/client.py

Alternatively, with Nix:

vim src/lib/settings.py # in order to define the server ip and port
nix-shell --pure --run './src/client.py'