Last Days of Rome
This is a simple web-based game where you play as a citizen in the failing Roman Empire. The emperor is trying to burn the city to the ground, and you must escape before it's too late.
How to Play
The goal of the game is to escape the city by reaching a Relocation score of 10. You lose if your Flames or Desolation score reaches 10.
Each turn, you roll the dice to see what happens in the city. The events will affect your scores.
You can also try to assassinate the emperor. This is a risky move, but if you succeed, you win the game (though you die a martyr).
Configuration
This project uses a SQLite database to store game data and configuration.
You can modify the game's configuration by clicking on the "Configuration" button on the main page. This will take you to a page where you can edit the score thresholds, win conditions, and event descriptions.
Technical Details
This project is built using:
- Frontend: HTML, CSS, JavaScript
- Backend: PHP
- Database: SQLite
How to Run Locally
To run this project locally, you need a PHP server with the pdo_sqlite extension enabled. You can use a local development environment like XAMPP or MAMP, or you can use the built-in PHP server.
-
Clone this repository.
-
Make sure the
pdo_sqliteextension is enabled in yourphp.inifile. -
Start a PHP server in the project directory. For example, you can run the following command:
php -S localhost:8000 -
Open your web browser and go to
http://localhost:8000.