https://github.com/ryangrieb/openciv
An open source civilization-like game made for the web browser.
https://github.com/ryangrieb/openciv
4x 4x-strategy-game civ civilization civilization-5 civilization-games civilization-v game indiegame itch multiplayer openciv opensource-game rougelike strategy-game typescript-game
Last synced: 16 days ago
JSON representation
An open source civilization-like game made for the web browser.
- Host: GitHub
- URL: https://github.com/ryangrieb/openciv
- Owner: RyanGrieb
- Created: 2020-06-08T03:48:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-13T04:56:42.000Z (about 1 year ago)
- Last Synced: 2025-01-05T19:08:08.695Z (9 months ago)
- Topics: 4x, 4x-strategy-game, civ, civilization, civilization-5, civilization-games, civilization-v, game, indiegame, itch, multiplayer, openciv, opensource-game, rougelike, strategy-game, typescript-game
- Language: TypeScript
- Homepage:
- Size: 83.7 MB
- Stars: 130
- Watchers: 7
- Forks: 17
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenCiv 

[](https://sonarcloud.io/summary/new_code?id=RyanGrieb_OpenCiv)
[](https://discord.gg/WFteeen5fu)
## About
OpenCiv is a love letter to turn-based strategy games inspired by Sid Meier's Civilization. The game mainly focuses on Civ 5 features and strives to improve on certain aspects that were lacking in the series.
The main objective of this project is to allow players who enjoy Civilization games to play it **directly on a web browser.**
## How do I build and run this?
1. Install either '[Docker](https://www.docker.com/)' or '[Node.js](https://nodejs.org/) with npm installed'.
2. Clone the repo at:
https://github.com/RyanGrieb/OpenCiv.git#### 3. Using docker
Ensure Docker is installed, then run:
`docker compose up -d`#### 4. Using your local machine
Install dependencies and start the application:
`npm run install-all`
`npm start`Once running, open your browser and go to http://localhost:1234 to play.
## How do I play this?
Currently, the project is being rewritten so no playable version is available without building the project.
## How do I run tests?
1. From the root directory of the repository, run
`npm run install-all`
2. Navigate to the server directory
`cd server`
3. Execute the test command
`npm run test`## Keybinds
`ARROW KEYS` or `LEFT-CLICK DRAG` - Camera Movement
`SCROLL` - Zoom In/Out
`LEFT-CLICK` Unit `RIGHT-CLICK` Tile - Unit Movement
`SPACEBAR` - Skip turns
`ESC` - View settings
## Special thanks to the following:
Contributors -
[Will Pewitt](https://github.com/willpewitt)Artists -
[lucasyoung988](https://www.fiverr.com/lucasyoung988?source=order_page_summary_seller_link)
[brysia](https://www.fiverr.com/brysia?source=order_page_summary_seller_link)
[pratamacam](https://www.fiverr.com/pratamacam?source=order_page_summary_seller_link)
[CharlesGabriel](https://opengameart.org/content/10-basic-message-boxes)