index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <Catalin.Mititiuc@gmail.com> | 2024-03-18 19:59:33 -0700 |
---|---|---|
committer | Catalin Mititiuc <Catalin.Mititiuc@gmail.com> | 2024-03-18 19:59:33 -0700 |
commit | 7a80e588b5702af0d652b6668108a2cc26f63367 (patch) | |
tree | f087a73aa52e532298d9e8a89b5791e18e759188 | |
parent | ee37c59946304bd2a71402ba4dd52ce6d22f1851 (diff) |
Fix uneven map scale
-rw-r--r-- | index.html | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -25,7 +25,7 @@ } image#img2 { - transform: scale(1.39) rotate(0.07deg); + transform: scale(1.39, 1.407) rotate(0.07deg); /* opacity: 0.33; */ } @@ -119,8 +119,8 @@ pointCoords = rowCoords.map(y => columnCoords.map(x => [x, y])); var xOffset = 0.25, - yOffset = 0.4; - calcY = Math.sqrt(3) * pointDistanceInInches / 2 * 0.99, + yOffset = 0.45; + calcY = Math.sqrt(3) * pointDistanceInInches / 2, alternatingOffset = pointDistanceInInches / 2; pointCoords.forEach((row, index) => row.forEach(([x, y]) => { |