diff options
author | elioat <elioat@tilde.institute> | 2024-12-27 07:28:38 -0500 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2024-12-27 07:28:38 -0500 |
commit | 6ea87b4e0a8cddca95c0a4f2b36264e7430e74aa (patch) | |
tree | d92307cc6d7054bd2966cb16ff821a42442e40bf /html/rogue | |
parent | 1ae1729728f0907ddb17e9303edad19aa2ff143c (diff) | |
download | tour-6ea87b4e0a8cddca95c0a4f2b36264e7430e74aa.tar.gz |
*
Diffstat (limited to 'html/rogue')
-rw-r--r-- | html/rogue/js/game.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/html/rogue/js/game.js b/html/rogue/js/game.js index 29b5037..0dde858 100644 --- a/html/rogue/js/game.js +++ b/html/rogue/js/game.js @@ -3,6 +3,7 @@ const HEX_SIZE = 20; // Fixed hex size const HEX_WIDTH = HEX_SIZE * 2; const HEX_HEIGHT = Math.sqrt(3) * HEX_SIZE; const GRID_SIZE = 100; // Number of hexes in each dimension +const HEX_COLOR = '#333333'; // Off-black color for hex grid // Game state const state = { @@ -81,6 +82,8 @@ function drawHex(ctx, x, y) { return; } + ctx.strokeStyle = HEX_COLOR; + ctx.lineWidth = 1; ctx.beginPath(); for (let i = 0; i < 6; i++) { const angle = 2 * Math.PI / 6 * i; |