vpbasile / hex-game

A Hexagonal Game Board Generator

Home Page:https://vpbasile.github.io/hex-game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hex-game

A Hexagonal Game Board Generator

To define a hex: new Hex(q-coordinate, r-coordinate, class-string)

This checks whether a hex exists at q,r and if not, it will create one and insert it into Hexes[q,r] The class string gets put on the polygon so that your CSS can select it.

To draw the hexes: Hexes.forEach(element => { element.draw() })

About

A Hexagonal Game Board Generator

https://vpbasile.github.io/hex-game


Languages

Language:HTML 50.5%Language:JavaScript 42.6%Language:CSS 6.9%