Giter Site home page Giter Site logo

hexgame's Introduction

A 4X game with no waiting. Closer to CivClicker than Civilization.

Initially intended as a learning experiment for both HTML5 Canvas and Javascript. Now also helping me learn to use Git better.

The game will be self-explanatory later, for now you just have to know.

How to play so far:

Settler

  • Blue and pink square is a settler.
  • Click him to select him.
  • Click inside his range to move.
  • Don't run out of food!
  • Put him on the yellow dots to get more food.

Towns

  • Click him again to turn into a town.
  • You need 10 wood to do so.
  • Put him on brown dots to get more food.
  • Towns can make settlers if they have 30 food.
  • Select them and click inside their range to do so.
  • Towns can grow bigger if they have 30 wood.
  • Select them and click them again to do so.

CREDITS All Hex code learned from RedBlogGames' great article on hex grids: http://www.redblobgames.com/grids/hexagons/

LIBRARIES Using SimplexNoise.js to generate Perlin Noise. Using Queue.js from code.stephenmorley.org

hexgame's People

Contributors

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