Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.11 KB

README.md

File metadata and controls

54 lines (40 loc) · 1.11 KB

2PFG - 2 Player Fighter Game

A 2 player 2D Fighter Game built via python


Insallation

  1. Clone the repository to your local machine
git clone https://github.com/bakayu/2PFG.git
cd 2PFG
  1. 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

Usage

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

Controls

  • w/SPACE - jump
  • d - move right
  • a - move left
  • j - punch
  • k - kick
  • l - dash

Preview