-
Download Gogo2 zip and extract
or
Clone Gogo2 git repository
$ git clone https://github.com/shaharyi/gogo2.git
$ cd gogo2
-
Install python 3
$ apt get install python3
-
Install Pip
$ apt get install pip3
-
Optional: create Python virtual-env
$ python3 -m venv myenv
$ source myenv/bin/activate
-
Install dependencies:
$ pip install pygame multimethod
python main.py
-
Copy
config_template.py
toconfig.py
and edit as follows. -
Set
MODE_INDEX
:
0 - Unicast, 1 - Broadcast, 2 - Multicast -
Set
LOCAL_IP
to your local ip.
Find what is your local ip usingifconfig
on Linux oripconfig
on Windows. -
python server.py
-
python client.py [server ip]
-
Use arrows to move around, space to shoot, m to lay mines.
- On multiple machins, sometimes hangs
gogo2/pypyvenv/site-packages/pygame/examples