Giter Site home page Giter Site logo

hotwar's Introduction

HOTWAR

The day when the cold war stopped being cold has come. This is the time to show your army commander skills! Fight between the mountains or among the seas - and achieve the glorious victory!

Written in JavaScript using p5.js

How to play

  • You can place various structures on your land. To capture land just hire a soldier or a tank, clicking on city and then pressing a button in right menu.
  • Each turn you get money. Cities give 10$ each, farms - 2$ each. Each soldier or tank cost 1$ to maintain.
  • You can repair or delete almost everything (except the landscape).
  • Units have health (white bar) and energy (blue bar). Actions take up energy (Attack, hire - 2๐Ÿ—ฒ, move, repair - 1๐Ÿ—ฒ). Soldiers can move 1 tile vertically or horizontally. Tanks capture more land and can move 2 tiles vertically or horizontally, 1 tile diagonally.
  • Water blocks your way - not a problem! Just build a platform.
  • The goal is simple - to destroy all enemy's cities.

How do I start the game?

You have to launch a local server for textures and sounds to load. Or you can visit this site

hotwar's People

Contributors

asdf2107 avatar

Watchers

 avatar

hotwar's Issues

Review

  • Use constants instead of magic numbers
  • Rewrite duplicate code, where code looks like columns
  • Decompose complex conditions in if-statement
  • Use data structures (even global ones) instead of separate global variables
  • Use collections instead of multiple if-statements

Add bridges

Bridges are necessary to make most world generations playable.

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.