Giter Site home page Giter Site logo

civilization-like's Introduction

TP : Civilization-like

XO code style

Welcome to the project page for our civ-like game

Team :

img1 img2

Summary

  1. Goal
  2. Setup Guide
    1. Install
    2. Play
    3. Environment variables
  3. Gameplay
    1. The divinity
    2. The polis
    3. The units
  4. More

1 - Goal

The game should consist in a multiplayer mode. the different player controls a city in ancient Greece. Each city is linked to a Divinity and has two main ressources :

  • Corn
  • Gold

Moreover, each city has units that will be used for attack and defense.

Each Divinity needs its followers to make offerings, which can contains either gold, corn, or both. Please your God, and it will act kindly towards your city. Every once in a while a special event called Benediction might happen. This will give you bonuses to ressources. On the other hand, your god might treat you with contempt, and a Retribution will happen, which will most likely scar your city.

If you fail to please your god, it will wrath the earth.

2 - Setup Guide

I. Install :

To install this game:

git clone https://github.com/alexConts/Civilization-like.git
cd Civilization-like
yarn

II. Play :

yarn start

III. Environment variables

The program uses dotenv, and need an .env file at the root of the project. Here is an exemple :

TIME_FACTOR = 1
INTEREST = 0.1
DAILY_EARNING_CORN = 100
DAILY_EARNING_GOLD = 1

3. Gameplay

I. The Divinity

A divinity coud help th city with different action. Indeed, it could by flavor, give to your city some gold and corn

II. The Polis

Each player have his own city where he could :

  • buy different type of units
  • put some of them in defense
  • to a trade with another city to earn corns and golds
  • launch an attack to another city and maybe win 70% of its ressources
  • sell corn to earn gold and vice versa

III. The Units

There are three types of units:

  • Rider
  • Light Soldier
  • Heavy Soldier Each unit have its own attack value, attack speed and HP. The cost of each kind of units is not the same.

4. More

We use TDD to realise our project. You can check this out :

yarn test

Our code also is xo verified but you can check this out with this commande:

xo

civilization-like's People

Contributors

a1c0 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.