Giter Site home page Giter Site logo

tautvilas / epoh Goto Github PK

View Code? Open in Web Editor NEW
16.0 3.0 5.0 606 KB

Multiplayer turn-based browser strategy game

Home Page: http://www.epoh.io

License: MIT License

Makefile 0.84% CSS 6.12% HTML 9.57% JavaScript 83.47%
multiplayer game web-game javascript turn-based isomorphic nodejs browser-strategy-game

epoh's Introduction

EPOH

Multiplayer turn-based browser strategy game

Try it!

Gameplay video: https://www.youtube.com/watch?v=Sj8hVMo-hfs

Multiplayer server: [Offline]

Singleplayer demo: https://tautvilas.github.io/epoh/

EPOH screenshot

Gameplay guide

###Your first turn:###

Click on your base. Base actions will appear at the bottom of the screen. There is one worker garrisoned in the base. You can ungarrison it by clicking ungarrison action and destination tile. All units move only by one tile so you can only ungarrison worker next to the base. Select base again, you can build a new worker by selecting 'worker' action and destination tile. Worker costs 100 iron. You can see your current resources in bottom left of the screen in format [resource amount]/[max storage] income.

###Discover resources & build a mine:###

Move workers around the map to discover resources on map tiles. Resource type is indicated by small circle on tile. Also tile & unit stats can be visible while hovering on tile in the top right section of the map. When you discover resource on tile with a worker you can build mine on it. To build a mine select worker and destination tile. Each building requires resources and you will not be allowed to build if you don't have enought of them. Building a mine on a tile with resource will increase your income of that resource. Building bigmine will allso increase storage capacity. You can see how much resources each building/unit costs by hoving on their build action image.

###Build units:###

Select base to build units. Your combat units can fight enemy units & takover enemy structures (except rover).

###Special worker buildings:###

Build amplifier to expand territory. Build teleport for fast unit transportation between tiles. Build powerplants on gas, oil or coal when you run out of power.

More about game mechanics can be found here

Local installation & Development

  1. npm install

2a) open index.html with browser for singleplayer

2b) run "node serve" and open local multiplayer server at localhost:8080

Change game settings in js/Config.js

To run unit tests:

$ make test

To lint code:

$ make lint

To build bundle.js, used when PRODUCTION is true in Config.js

$ make bundle.js

Misc

Map generation visualization (takes time to load)

Info about cube coordinates calculation

epoh's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.