◀ VibeCruiser

match3 canvas engine

A free match 3 game — play it in your browser, no install. Pure Canvas 2D Match-3 engine. Zero dependencies, zero image assets, 21.5 KB. 51 unit tests + 10 headless tests passing.

by @gem3match-dev · gem3match-dev/match3-canvas-engine on GitHubLANG JavaScriptHOSTED ON GEM3MATCH-DEV.GITHUB.IOUPDATED 28 Nov 2026✓ CLAIMED BY THE CREATOR

▶ Play full screen ▲ Vote: free account with email ▲ Or sign in with GitHub

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

From the README

在线站点(可直接看效果): 买完整源码 · $19 USD → 引擎源码 MIT 开源,可先看代码、跑 61 项测试再决定是否购买完整包。

纯 Canvas 2D 手写三消引擎,零第三方依赖、零图片资源,整包仅 21.5 KB。 可直接作为微信小游戏、H5、桌面游戏的通用三消匹配层。

多数三消实现依赖游戏引擎或第三方库,代码量与包体都大。这个实现只有两个源文件, 全部图形由 Canvas 2D 绘制,逻辑与渲染彻底解耦,可以直接抽取 Match3Module 复用到任意项目,不需要拖入任何构建工具。

_hasPossibleMove() 会真的执行交换来判断是否成三连。如果忘了交换回去, 棋盘状态被永久污染,玩家会看到图形凭空变化。第一版我就在这里翻过车。

洗牌后棋盘仍可能无解。必须递归重洗直到有解,并且做成静默操作(不弹提示), 否则玩家会遇到"点了没反应"或有奇怪的提示。

微信小游戏 / 抖音小游戏 的休闲三消玩法底座。 H5 网页小游戏,无构建工具直接引入。 需要「消除」机制的其他品类(如合成、连线)的匹配层复用。 教学示例:想读一份小而完整的游戏循环实现。

独立开发者,微信小游戏《宝石三连》作者。

如果这份引擎帮你省下了重写匹配算法的时间,欢迎 star;需要完整实现与商业授权请走上方 $19 链接。

Read the full README on GitHub →

Built something like this? Submit your vibe — free account, takes a minute. How listing works.

More like this

More match 3 games →

Made this?

✓ Claimed by the creator.

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.

On VibeCruiser

How listing, the badge and claiming work →