A free billiards game — play it in your browser, no install. 纯前端的八球台球小游戏:Canvas 绘制 + 原生 JavaScript,无框架、无构建、无后端、无外部资源。 双击 index.html 就能玩,断网也行,Windows / macOS 浏览器、手机平板网页都适配。
Made this, @heidouya? See how many people played it → or use email
Controls: Mouse
GitHub may ask you to sign in, then to let VibeCruiser “Verify your GitHub identity” and “Act on your behalf”. We only read your profile and email, and never post anything.
Open the live demo Source on GitHub两套规则可切:中式八球(默认) / 美式八球,袋口松紧、自由球范围、开球有效性都跟着变。 一方是本地双人对战,另一方是三档难度的电脑对手。 完整八球规则:开球定组、手中球、黑八(美式需指定袋)、犯规判罚。 台面上方的球号条实时显示双方球组归属与剩余数量。
进页面不会弹窗挡着台面:顶部只闪一条「比赛开始 · 玩家 1 开球 · 按住台面往回拉即可出杆」,第一次玩台面上还会画一条绿色「往回拉」箭头,打出一杆后永久消失。 电脑上用鼠标、手机上用手指在台面按下并拖动瞄准,松开即出杆。 需要换模式或难度,点右侧面板最上方的「对局设置」卡。
台面上的虚线只指母球出发方向(完整 档连同一处碰撞点,短线 档只有一小段方向,关闭 档不画),不做碰撞后的多段轨迹预测。
轮到玩家、手还没按下时,母球外面会有一圈很慢的呼吸光(约 3.8 秒一轮,亮度压得很淡,半径只轻轻外扩 4px),方便在满台球里一眼找到白球;开球、犯规后的手中球都是同一档,不做加强。一按下瞄准或摆位、出杆、电脑回合,这圈光立刻消失,静止画面不会一直动。
处于手中球(可以摆放母球)时,白球外面还有一圈淡绿提示环:2.8 秒一轮,淡入淡出走正弦(不会硬起硬停),半径从 18px 慢慢散到 26px,最亮时透明度只有 0.26,看起来像轻轻呼一口气而不是快速闪动。按下去拖动摆位后这圈环会跟着母球走。
Built something like this? Submit your vibe — free account, takes a minute. How listing works.
Claim it: create a free account, then press CLAIM THIS in the cruiser. Put the badge below in your README or on your demo page first; that link is how we know it's yours.
Your project is on the cruise, loaded live from your own site. Put the badge in your README or on the demo page: it shows your live play count, it links back to this page, and everyone who lands here is one click from running the real thing.