Skip to content

jhy354/Arena

Repository files navigation

Arena GitHub Release Date GitHub GitHub code size in bytes GitHub repo file count

Arena is a 2D platform LAN game based on pygame and socket

Language💭

简体中文 | English

Contents

  1. Dependencies⚙️
  2. Getting Started🛠️
  3. Build the Project💻
  4. Game Controls🎮
  5. Gameplay Screenshots🎞️
  6. Warning⚠️
  7. Developing🧩
  8. License GPL-3.0📄

Dependencies⚙️

Tip

Tested Environment: pygame 2.6.0 (SDL 2.28.4, Python 3.12.4) PyTMX 3.32 and: pygame 2.6.0 (SDL 2.28.4, Python 3.11.1) PyTMX 3.32

Note

The game has been tested on Python 3.11.x and 3.12.x. Other versions may work, but are not officially supported. If you encounter an unsolvable issue, please make sure that your environment matches the one mentioned above.
You can also ask questions in the Issue section.

Getting Started🛠️

Preparation

  1. It is recommended to run on Python 3.12 or higher.
# check your python version
python --version
  1. Ensure that the following packages are installed in your Python environment
pip install -r requirements.txt

or manually

pip install pygame~=2.6.0
pip install PyTMX~=3.32
pip install pyinstaller~=6.11.0 

Run Game

  1. Run server
# usage: python server.py [-a | --address] [-m | --map_index] [-b | background_index]
python server.py --address [SERVER IP]
  1. Run client
# usage: python server.py [-a | --address]
python main.py --address [SERVER IP]

Build the Project💻

You can build Arena by build.py

python build.py

Game Controls🎮

  • Use W/A/S/D or UP/LEFT/DOWN/RIGHT to move or attack.

Gameplay Screenshots🎞️

Game Screen:

Player Skins:

Warning⚠️

Warning

This project is currently implemented using pickle. Please avoid running it on public networks to prevent potential security risks.

Developing🧩

See CODE_OF_CONDUCT.md

License GPL-3.0📄

Project License is available here.


Made With ❤️ by jhy354