Giter VIP home page Giter VIP logo

finalgamedesign's People

Contributors

futurename avatar kishanpat07 avatar passe-partout avatar

Watchers

 avatar

finalgamedesign's Issues

Card:

after the attacking stage.

  1. one successful attack in a round can get a card(random)
  2. vector for the player
  3. check cards at the end of the attack.

deployment stage.
4. if there are 3 same cards and 3 different cards of different types, the player can exchange.
5. must exchange: if the player has more than 5 cars.

Move stage;

  1. validate the player drag from one owned country to an adjacent owned country.
  2. how to display??
  3. A button to confirm finish move.

AttackFrom:

  1. check whether the army num >1
  2. check the defender country is adjacent of the attacking country.
  3. check the owner of defending country is different from the attacking country.
  4. call attackFrom()
  5. updateWorldmap();

Graphic design: deploy army at each round

  1. init undeployed army numbers: 3 by default + bonus from the player attr.
  2. after the player selects a country and a certain number, add the army num to the country and subtract this from the total undeployed army number.
  3. the function is called repeatedly until there is no more undeployed army.
  4. updateWholeSreen()

Finish deployment logic:

  1. validate the dragged number is equal to or less than the remaining number.
  2. add army num to the country.
  3. subtract from the undeployed number
  4. updatewoldmap.
  5. if undeployed army number to 0, to attack stage.

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.