https://github.com/hopson97/multi-pong
Multiplayer pong using UDP sockets and a client/server model.
https://github.com/hopson97/multi-pong
Last synced: about 1 year ago
JSON representation
Multiplayer pong using UDP sockets and a client/server model.
- Host: GitHub
- URL: https://github.com/hopson97/multi-pong
- Owner: Hopson97
- License: mit
- Created: 2019-09-28T16:47:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T20:13:34.000Z (over 3 years ago)
- Last Synced: 2025-03-29T11:51:40.239Z (about 1 year ago)
- Language: C++
- Homepage:
- Size: 41 KB
- Stars: 25
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# multi-pong
WIP Multiplayer pong using SFML and UDP.
## Log
### 02/10/19
Got 4 players able to run around a map, with the "ball" also there. All positions are calculated on the server and then broadcasted to the clients.

Later on, made it so it was like an actual game of pong:

## Building and Running
### Libraries
SFML is required.
These can be installed from your project manager. For example, on Debian/ Ubuntu:
```sh
sudo apt install libsfml-dev
```
If this is not possible (eg windows), you can install these manually from their respective websites:
https://www.sfml-dev.org/download.php
### Linux
To build, at the root of the project:
```sh
sh scripts/build.sh
```
To run, at the root of the project:
```sh
sh scripts/run.sh server
sh scripts/run.sh client
```
To build and run in release mode, simply add the `release` suffix:
```sh
sh scripts/build.sh release
sh scripts/run.sh release [client or server here]
```
You can also create a deployable build (that can be sent) by doing:
```sh
sh scripts/deploy.sh
```