about summary refs log tree commit diff stats
path: root/html/rogue/js/hexGrid.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/rogue/js/hexGrid.js')
-rw-r--r--html/rogue/js/hexGrid.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/html/rogue/js/hexGrid.js b/html/rogue/js/hexGrid.js
index c45c981..0d4d81f 100644
--- a/html/rogue/js/hexGrid.js
+++ b/html/rogue/js/hexGrid.js
@@ -1,13 +1,12 @@
 // Hex grid utilities and calculations
 const HexGrid = {
-    SIZE: 40,
+    get SIZE() { return Config.hex.SIZE },
+    get WIDTH() { return Config.hex.WIDTH },
+    get HEIGHT() { return Config.hex.HEIGHT },
+    get GRID_SIZE() { return Config.hex.GRID_SIZE },
     COLOR: Config.colors.GRID,
-    GRID_SIZE: 10,
     IMPASSABLE_COLOR: Config.colors.BACKGROUND,
 
-    get WIDTH() { return this.SIZE * 2 },
-    get HEIGHT() { return Math.sqrt(3) * this.SIZE },
-
     // Convert hex coordinates to pixel coordinates
     toPixel(hex) {
         const x = this.SIZE * (3/2 * hex.q);