1 Star 0 Fork 30

追梦66 / Civitas

加入 Gitee
与超过 600 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README.md

Civitas

Main game area

Description

Civitas is a free-to-play strategy empire-building browser game written in Javascript with the help of the jQuery library. Players develop and maintain their settlement from initial village to a fully grown metropolis, influencing and conquering the neighbouring settlements.

There is no set goal, game is played on an infinite-round basis and there is a server component planned. The focus of the game is to manufacture and trade resources in order to raise the level of your city.

Features

  • Over 80 types of buildings, each intertwined in the chain of production.
  • Custom climate zones, each with specific buildings.
  • Global market, player can trade goods with other settlements.
  • Army! Navy! Soldiers! Ships!
  • Fame system that allows your city to level up via trades, conquers and special buildings.
  • Prestige system that affects diplomacy.
  • Each city in the game world is linked via an influence system that needs to be maintained for diplomacy to work.
  • Random events that can change your diplomacy status with the other cities, give you coins or random resources.
  • Espionage, influence cities, destroy buildings, sabotage.
  • Ranking screen, where cities get ranked according to their status in the world.
  • Declare war, propose alliances and pacts, ask other settlements to join your city, propose cease fire.
  • Heroes, unique classes and items, attributes.
  • Server component, no actual data is saved externally, only in your browser's localStorage.
  • Jailer component that assures game data integrity (no cheating).
  • Any player interaction since no data is transmitted to the server component.
  • Artificial Intelligence (AI) for computer-controlled cities.

特性

超过 80 种类型的建筑,每个建筑物在生产链中交织在一起。

定制气候区,每个区都有特定的建筑物

全球市场,玩家可以与其他定居点进行商品交易。

军队! 海军! 士兵!船舶!

成名系统,让您的城市通过贸易,征服和特殊建筑升级

影响外交的威望体系

游戏世界中的每个城市都通过影响系统相互联系,需要保持外交工作

随机事件可以改变你与其他城市的外交状态,给你硬币或随机资源

间谍活动,影响城市,破坏建筑物,破坏活动。

排名屏幕,根据城市在世界上的状态排名

宣战,提出联盟和协议,要求其他定居点加入你的城市,提出停火

英雄,独特物品,属性。

服务器组件,外部没有保存实际数据,仅在浏览器的localStorage中保存

Jailer组件,确保游戏数据完整性(不作弊)

任何玩家互动不需要与服务器进行数据传输

人工智能控制的计算机玩家

Playing

In development, Civitas is using several assets that are copyrighted by Bluebyte, so I cannot redistribute them with the game. In the future, the game will have a brand new set of graphics but for now those will be enough for testing. You can find a link to the said assets in this Gitee or this GitHub issue. All the other game resources are freely distributed under the GPLv3 license, same as the code.

Playing 在开发过程中,Civitas使用了Bluebyte拥有版权的几种资产,因此我无法通过游戏重新分发这些资产。 您可以在此Gitee Issue中找到指向所述资产的链接。 所有其他游戏资源都是在GPLv3许可下自由分发的,与代码相同。

1. With Docker

$ docker-compose up --build

And point your browser to http://localhost (or even better, add the line below to your /etc/hosts file and browse http://civitas.test.

127.0.0.1	civitas.test

2. Local

Choose an archive format from below, download and uncompress it. Point your browser to dist/index.html, you don't need a game server to play.

Development

Start by installing all the prerequisites:

$ npm install

Run the main script that will load gulp and proxy the requests from civitas.test to localhost:3000.

$ npm start

Releases

License

Civitas is written by sizeof(cat) and distributed under the GPLv3 license.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

Contributing

Pull requests are always welcome!

I am always thrilled to receive pull requests, and do my best to process them as fast as possible. Not sure if that typo is worth a pull request? Do it! I will probably appreciate it.

If your pull request is not accepted on the first try, don't be discouraged! If there's a problem with the implementation, hopefully you received feedback on what to improve.

Always sign your commits and make sure you read the Coding Style and the Code of Conduct.

Source code

Civitas is written using Javascript, has ~22000 lines of code (including comments and whitespace), ~340Kb minified and can be downloaded from GitHub.com, Gitee.com or by using git to clone the repository:

GitHub:

git clone git@github.com/sizeofcat/civitas.git

Gitee

git clone git@gitee.com/sizeofcat/civitas.git

Dependencies

Thanks

The music/track1.mp3 song is named Glandula Pinealis by Shantifax.

Screenshots

仓库评论 ( 0 )

你可以在登录后,发表评论

简介

Civitas is an empire-building game written in Javascript with the help of the jQuery library. 展开 收起
JavaScript
GPL-3.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/zh1201/civitas.git
git@gitee.com:zh1201/civitas.git
zh1201
civitas
Civitas
master

搜索帮助

161121 f78d6d6f 1850385 154831 86f8c370 1850385