Below is an example README that you can use for your game. You can copy this text into a file named README.md at the root of your repository.
Open source real time strategy empire building game
Example game hosted at:
https://enochlev.com/empire-game
open_empires_rts is a browser-based real time strategy game where players build and upgrade their own empire. As a player, you will:
• Manage resources such as money, stone, iron, gold, diamond, wood, and hay
• Upgrade and construct various buildings (e.g., Castle, Smithy, Barracks, Stables, Dock, Lumber Mill, Quarry, Mine)
• Train and upgrade units including citizens, soldiers, archers, cavalry, and ships
• Assign workers to production buildings to boost resource generation
• Watch ongoing progress through dynamic progress bars and live updates
The game uses a Python web framework (rendering via Jinja templates) and is reverse-proxied with Nginx. It is designed to offer both production-level play and ease of further development.
-
Clone the repository:
git clone https://github.com//open_empires_rts.git
-
Install the required dependencies (e.g., using pip):
pip install -r requirements.txt
-
Configure your application and reverse proxy settings. A sample Nginx configuration is available in the repository for your reference.
-
Run the application:
python run.py
-
Visit http://localhost in your browser (or your production URL) to start playing.
• Use databases to store game state:
Implement a robust storage solution to permanently save player progress and game data.
• Create a more structured rules engine:
Enhance the game mechanics by formalizing the rules for building upgrades, unit training, and resource generation.
• Develop an enhanced UI and global map for each city:
Introduce a more user-friendly interface along with a global view of each city to improve game navigation and strategic planning.
We welcome contributions! If you'd like to improve the game, please feel free to fork the repository and submit a pull request with your changes. For major changes, please open an issue first to discuss what you would like to change.
Happy building, and enjoy expanding your empire!