This is our entry for the pyweek 39 with the topic downstream.
Battle it out with your sword against either a bot (offline) or against other players online.
| Key | Action |
|---|---|
| WASD | Move |
| Left Mouse | Sweep |
| Right Mouse | Block |
| Shift | Stab/Dash |
| Space | Jump |
When playing online, keep in mind that there aren't many players. You may want to queue at the same time as a friend. The matchmaking system does not use an MMR system but instead matches players as quickly as possible.
You can edit and persist your username in the settings. :)
To change the network configuration (e.g., switching to a self-hosted server), edit ./game/const/networking.py. (Host and whether or not to use ssl when connecting)
Note: Our resources are limited. We will be hosting the game server for a while, but there will only be an EU instance. You can still play from other parts of the world, but you may experience latency issues.
Install the requirements
python3 -m pip install -r requirements.txtRun the game
python3 ./run_game.pyHonestly it's easiest to just start the docker compose :)
docker-compose up -dFor development just install the additional server requirements
python3 -m pip install -r server/requirements.txtRun the server
python3 ./run_server.py