Basically an excuse to experiment with cool stuff. A playable game might eventually emerge from this.
Right now the game is turn based, meaning base production(1) and fleet movement happens at predetermined intervals. A player can issue orders during these intervals.
(1) not actually happening
- Python 2.7
- MongoEngine ODM
MongoDB keeps the game state. A python script generates a playing area consisting of several stars randomly placed across a grid. A python service handles turns.
A nodejs app reads game state from the database and conveys it to the player on request. The nodejs app also writes to the database when the player issues orders, though this is undesireable and should be delegated to the backend.
Copy the files somewhere in your server. Then:
python backend/genesis.pyGenerate the playing area
python backend/ticker.pyGet the game running
node frontend/app.jsStart the front-end
- Point your browser to < server ip >:80 and enjoy