https://github.com/joni2back/pong-multiplayer
Python table tennis 2D game with network multiplayer support using tcp sockets
https://github.com/joni2back/pong-multiplayer
hacktoberfest hacktoberfest2020
Last synced: 9 months ago
JSON representation
Python table tennis 2D game with network multiplayer support using tcp sockets
- Host: GitHub
- URL: https://github.com/joni2back/pong-multiplayer
- Owner: joni2back
- Created: 2014-03-17T19:17:32.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2020-11-03T13:38:04.000Z (about 5 years ago)
- Last Synced: 2025-04-12T06:52:23.449Z (9 months ago)
- Topics: hacktoberfest, hacktoberfest2020
- Language: Python
- Homepage:
- Size: 31.3 KB
- Stars: 14
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```bash
git clone https://github.com/joni2back/pong-multiplayer
cd pong-multiplayer
```
### Running server
```bash
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][nix]:
```bash
vim src/lib/settings.py # in order to define the server ip and port
nix-shell --pure --run './src/server.py'
```
### Running client
```bash
vim src/lib/settings.py # in order to define server connection ip and port
python src/client.py
```
Alternatively, with [Nix][nix]:
```bash
vim src/lib/settings.py # in order to define the server ip and port
nix-shell --pure --run './src/client.py'
```
[nix]: https://nixos.org/nix/