◀ VibeCruiser

snake

A free snake game — play it in your browser, no install. 建这个仓库是为了熟悉整个git操作流程,内容是一个贪吃蛇游戏. 建这个仓库是为了熟悉整个 git 操作流程,内容是一个霓虹视觉风格的贪吃蛇游戏。 打开页面先选模式,也可以直接按 1 或 2。 长方形棋盘:活动区按窗口比例铺满整个屏幕,短边固定 20 格、长边随窗口延伸(宽屏下横向格子明显更多),格子大小与光效同步等比缩放;棋盘越大食物越多,避免在空旷地图里找不到吃的。 开局等待:进入对局后蛇不会立刻移动,画面上会提示「按方向键开始」;单人按一次即可,双人对战需要两位玩家各按一次方向键才一起出发,避免还没反应过来就被蛇带着走。 单人模式:方向键或 WASD 控制,吃到食物加 10 分,每累计…

by @UCAS-yangxb · UCAS-yangxb/snake on GitHubLANG HTML★ 2HOSTED ON UCAS-YANGXB.GITHUB.IOUPDATED 22 Sep 2026

Vote and save it — free account with email or sign in with GitHub

Made this, @UCAS-yangxb? See how many people played it → or use email

Controls: Arrow keys

▶ 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

建这个仓库是为了熟悉整个 git 操作流程,内容是一个霓虹视觉风格的贪吃蛇游戏。

打开页面先选模式,也可以直接按 1 或 2。

长方形棋盘:活动区按窗口比例铺满整个屏幕,短边固定 20 格、长边随窗口延伸(宽屏下横向格子明显更多),格子大小与光效同步等比缩放;棋盘越大食物越多,避免在空旷地图里找不到吃的。 开局等待:进入对局后蛇不会立刻移动,画面上会提示「按方向键开始」;单人按一次即可,双人对战需要两位玩家各按一次方向键才一起出发,避免还没反应过来就被蛇带着走。 单人模式:方向键或 WASD 控制,吃到食物加 10 分,每累计 50 分升一级并自动提速,撞墙或咬到自己结束。 双人对战:两人共用一把键盘,玩家 1 用 W A S D(青色),玩家 2 用方向键(橙色),棋盘上同时有 3 个食物。 谁先撞墙、咬到自己或撞到对手的身体就算输,两个蛇头正面相撞判平局。 对战速度固定,升级机制只在单人模式生效,保证公平。 游戏中按 Esc 可随时回到模式选择,退出对局不会写入成绩。

概览:总场次、单人最高分、对战战绩(玩家 1 胜 / 玩家 2 胜 / 平局). 记录明细:按时间倒序列出每一场,显示时间、模式与成绩,可按「全部 / 单人 / 对战」筛选。 单人排行榜:所有单人成绩按分数从高到低排序,前三名带金、银、铜配色。

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 snake games →

Made this?

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.

On VibeCruiser

How listing, the badge and claiming work →