◀ VibeCruiser

snake

A free snake game — play it in your browser, no install. 原生 HTML、CSS 和 JavaScript 实现的霓虹风贪吃蛇游戏,支持键盘与触屏操作、暂停和重新开始。

by @WWL0924 · WWL0924/snake on GitHubLANG HTMLHOSTED ON WWL0924.GITHUB.IOUPDATED 1 Dec 2026

Made this, @WWL0924? 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

一个使用原生 HTML、CSS 和 JavaScript 实现的贪吃蛇小游戏。页面采用霓虹街机风格,包含实时棋盘、长度显示、暂停与重开功能,也支持屏幕方向按钮操作。

蛇会自动移动,使用键盘方向键(↑、↓、←、→)改变行进方向。 点击棋盘旁的方向按钮也可以控制蛇移动,适合触屏设备。 吃到绿色果实后,蛇身会变长;页面会显示当前长度。 蛇撞到边界或自身时游戏结束。 使用“暂停”按钮暂停或继续游戏,使用“重开”按钮重新开始。

使用数组保存蛇身各节的棋盘坐标,并按固定间隔更新位置。 使用 50×50 的网格绘制棋盘、蛇身和果实。 检查蛇是否撞墙或碰到自身,并据此结束游戏。 支持暂停、继续、重新开始,以及键盘和屏幕按钮控制。

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 →