An 开源 类似文明游戏,专为网页浏览器打造。
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.
Clone the repo at: https://github.com/RyanGrieb/OpenCiv.git
Ensure Docker is installed, then run:
docker compose up -d
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.
Currently, the project is being rewritten so no playable version is available without building the project.
npm run install-allcd servernpm run testcd client or cd server, then npx tsc -p tsconfig.typecheck.json --noEmit. This is the same check CI runs.server/, npm start -- --no-allowBarbarians --numCityStates=0 sets game options at launch instead of toggling them in the client's UI. npm start -- --help lists every option with its default and range. The same overrides can be passed as GAME_OPTIONS="allowBarbarians=false,numCityStates=0" when argv is awkward (root npm start, docker compose up).npm run format (Prettier, run from the root)..png under client/assets/sprites//.png, then run npm run generate-sprites from the root and commit the regenerated client/src/generated/SpriteManifest.ts.npm run generate-docs (Typedoc for both projects, output in documentation/).See CLAUDE.md for more on the project's architecture and conventions.
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
Contributors - Will Pewitt
| Artist | Contribution |
|---|---|
| lucasyoung988 | Commissioned game art |
| brysia | Commissioned game art |
| pratamacam | Commissioned game art |
| CharlesGabriel | Message boxes |
| BatzelChaos | Shield icon |
暂无开放 Issues,或尚未同步最近议题。