TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How would you build an interactive hex-grid for web?

2 点作者 r2b2超过 1 年前
I&#x27;m working on a board game and would like to build dynamic board builder&#x2F;generator for the web.<p>Do you know of any JavaScript OSS libraries for working with clickable hexagon grids in HTML?<p>Or would go straight to something more custom like D3 &#x2F; SVG?<p>Thanks!

2 条评论

acemarke超过 1 年前
Start with the canonical resource for how to draw hexes in code:<p><a href="https:&#x2F;&#x2F;www.redblobgames.com&#x2F;grids&#x2F;hexagons&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.redblobgames.com&#x2F;grids&#x2F;hexagons&#x2F;</a>
surprisetalk超过 1 年前
I made an online hexagonal chess game a few months ago. You can see how I did it with plain HTML&#x2F;CSS&#x2F;JS:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;surprisetalk&#x2F;chexs">https:&#x2F;&#x2F;github.com&#x2F;surprisetalk&#x2F;chexs</a>