A 2 player 2D Fighter Game built via python
- Clone the repository to your local machine
git clone https://github.com/bakayu/2PFG.git
cd 2PFG
- Required dependencies can be found in requirements.txt, run the following code to install them on your machine/python envrionment
pip install -r requirements.txt
Note: Before running the game, the following code should be executed inside the game folder to ensure the clients connect to the server as intended.
python3 getip.py
Additionally, run the following code should be executed on the machine running the server.
python3 server.py
Finally, run the following code in both the computers to launch the Client (they should be connected to the same network/WIFI).
python3 client.py
- w/SPACE - jump
- d - move right
- a - move left
- j - punch
- k - kick
- l - dash