WizardWars.IO Python Server
Switch branches/tags
Nothing to show
Clone or download
Latest commit fc1b661 Nov 5, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
wizard-wars Merge pull request #77 from hissalht/fix-hacky-masterloop Nov 6, 2018
README.md Readme update Nov 6, 2018
screenshot.png README Oct 2, 2018

README.md

http://WizardWars.IO A Roguelike Deathmatch.

WizardWars.io is a turn-based combat game running on a 1-second clock.

Game logic/server written in Python. Uses Libtcod and Flask. Client uses React.js.

Screenshot

1:26 Player Tutorial Video

58:58 Code Overview Video

(Optional but recommended) Use a virtual environment

For more informations on virtualenv, check its documentation.

Start by creating a virtual environment folder.

$ virtualenv env

A good place for it is next to the repository folder.

.
├── env/
└── wiz-server/

Make sure to use python 2, this can be achieved with the --python option like so :

$ virtualenv --python=/usr/bin/python2.7 env

Finally, you have to "activate" the environment by sourcing env/bin/activate.

$ source env/bin/activate
(env) $

The prompt should change to indicate the current virtual environment.

Install tcod dependencies

The tcod package requires some additionnal dependencies. See the tcod installation instructions.

Install Python dependencies

The dependencies are listed in requirements.txt, to install them, just run

$ pip install -r requirements.txt

Start the server + turn timer:

$ cd wizard-wars
$ screen -S server
$ ./run.sh
ctrl+A,D
$ screen -S socket
$ python socketclient.py
$ ./run.sh
ctrl+A,D

Written by R. Riley Holmes and Quantum Potato, May-October 2018