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
- MongoDB
- 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.
- server
- MongoDB
- NodeJS
- Mongoose
- Express
- client
- Underscore.js
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.py
Generate the playing areapython backend/ticker.py
Get the game runningnode frontend/app.js
Start the front-end- Point your browser to < server ip >:80 and enjoy