diff options
| author | Tom Harley | 2017-12-02 19:43:44 +0000 |
|---|---|---|
| committer | Tom Harley | 2017-12-02 19:43:44 +0000 |
| commit | 50cc91d3343401d081557114469eed64306c6db3 (patch) | |
| tree | 1d5d6a02cd2360c5fae3fa5d3edf0622108a4d7e /README.md | |
| parent | yes (diff) | |
| parent | Documentation (diff) | |
| download | longpong-50cc91d3343401d081557114469eed64306c6db3.tar.gz longpong-50cc91d3343401d081557114469eed64306c6db3.zip | |
Merge branch ‘master’ of https://github.com/magnostherobot/longpong
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -1 +1,27 @@ # longpong + +longpong is a game of Pong that spans multiple screens and computers. + +## Starting a game of longpong + +First, start a server: + + node server/server.js <port> + +Now start one client on each computer: + + python3 client/longpong.py <server_ip> <server_port> <index> <num_windows> + +- `<index>` is the client's index in the list of clients, starting at 0, from left to right. +- `<num_windows>` is the number of windows that this client should have. + +In each client, position the windows as desired, typing the window's number (see its title) to make it fullscreen on its current screen. Press `return` when the windows are positioned. + +When all of the clients are ready, press `space` on one of the clients to tell the server that the clients are all ready to start. The game then begins. + +Control your paddle with the up and down arrow keys. + +## Dependencies + +- `python3` +- `PySDL2` |
