A client-server game written in Python (game engine), Django(game server), HTML5 + AngularJS (client code) and some C++.
It is based on bioweb library written by Robert Nowak with some modifications. Project is splitted into three modules:
- game - (python) - module that is a tank-game library.
- web - (python/django) - web server
- client - (javascript/angular) - front-end of game
Game is working under Linux and Windows. Instructions, how to install dependencies are descripted in file README_EN.
Once you have installed dependencies, just type in your console to build whole project:
scons
It will construct python modules and build production version of client interface.
Application is running on two local web servers:
- ExpressJS (default on 127.0.0.1:9001) is configured to serve static client files and redirect ajax queries into backend
- Gunicorn is a WSGI to Django (default on 127.0.0.1:9000)
To run servers, just type:
scons r=n
Next, open your webbrowser and type to open client game interface:
127.0.0.1:9001
WebServer queries are available under path:
127.0.0.1:9000/tank-game/ajax/{module}/{function}